rust protocol analyzer (early dev)
first make sure rust is installed then clone the project then in the root of the
project
cargo run
and the basic window should show up.
cargo build --release \
&& sudo setcap cap_net_raw,cap_net_admin+eip target/release/cnote
cargo build --release
sudo ./target/release/cnote
If you are linux, you may have to install the following dependencies:
dbus-x11
libgtk-3-dev
Ethernet, IPv4, UDP, and TCP right now
#[derive(Default, Debug)]
pub struct EthernetFrame {
pub id: i32,
pub timestamp: String,
pub header: EthernetHeader,
pub payload: Option<Box<dyn Layer>>,
}
Layer is a trait object that gets implemented further down the line. Ever protocol it encapsulates
implements the trait Layer
so
Ethernet -> IP -> TCP
Every packet implements the layer trait, layer implements the Send
marker
Sniffers are the packet capture logic.
This is just a rough outline for anyone who reads this/myself so i know what im doing.
Each packet that implements layer handles the logic for the layer it encapsulates.
- Establish a general framework for the backend that is a reasonable approach
šµšµšµšµšµā¬ā¬ā¬ā¬ā¬ 50% - Logging -
ā¬ā¬ā¬ā¬ā¬ā¬ā¬ā¬ā¬ā¬ 0 % - Set up basic gui -
šµšµā¬ā¬ā¬ā¬ā¬ā¬ā¬ā¬ 0 % - Figure out how to handle 802.11 frame -
ā¬ā¬ā¬ā¬ā¬ā¬ā¬ā¬ā¬ā¬ 0% - Figure out how to highlight problem packets -
ā¬ā¬ā¬ā¬ā¬ā¬ā¬ā¬ā¬ā¬ 0%