Finished adding a basic flake
It can now build the Linux C2 beacon
This commit is contained in:
@@ -10,10 +10,12 @@ ecies-ed25519 = { version = "0.5.1", features = ["serde"] }
|
||||
ed25519-dalek = "1.0.1"
|
||||
libc = "0.2.147"
|
||||
rand = "0.7"
|
||||
raw_tty = "0.1.0"
|
||||
rmp-serde = "1.1.2"
|
||||
serde = { version = "1.0.188", features = ["derive"] }
|
||||
sparse-05-common = { version = "0.1.0", path = "../sparse-05-common" }
|
||||
structopt = { version = "0.3.26", features = ["paw"] }
|
||||
tempfile = "3.8.0"
|
||||
tokio = { version = "1.32.0", features = ["io-std", "net", "fs", "macros", "rt"] }
|
||||
|
||||
[target.'cfg(unix)'.dependencies]
|
||||
raw_tty = "0.1.0"
|
||||
|
||||
@@ -16,13 +16,13 @@ catconf = "0.1.2"
|
||||
sparse-05-common = { version = "0.1.0", path = "../sparse-05-common" }
|
||||
ecies-ed25519 = { version = "0.5.1", features = ["serde"] }
|
||||
packets = { path = "../../packets" }
|
||||
|
||||
[target.'cfg(unix)'.dependencies]
|
||||
pcap-sys = { path = "../../pcap-sys" }
|
||||
pcap-sys = { path = "../../pcap-sys", optional = true }
|
||||
|
||||
[build-dependencies]
|
||||
cc = "1.0"
|
||||
|
||||
[features]
|
||||
default = ["pcap"]
|
||||
docker-breakout = []
|
||||
exit = []
|
||||
pcap = ["dep:pcap-sys"]
|
||||
|
||||
@@ -9,7 +9,7 @@ use packets::{self, EthernetPkt};
|
||||
use sparse_05_common::messages::TransportType;
|
||||
|
||||
pub enum Interface {
|
||||
#[cfg(target_os = "linux")]
|
||||
#[cfg(feature = "pcap")]
|
||||
RawUdp(pcap_sys::Interface<pcap_sys::DevActivated>, u16),
|
||||
Udp(UdpSocket, u16),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user