A packet sniffer that intercepts the network traffic and analyzes the raw data packets. Further these packets will be analyzed using a packet sniffing software that presents these raw data packets to the user in a user friendly format.
To use this packet sniffer use the following commands on you pc -
- Clone this repository -
git clone https://github.com/suraj-singh127/pcap-explore
- Now once inside the repository write the following command to build the crate -
cargo build
- To list all the available interfaces -
cargo run list
- To capture packets from the above mentioned list of interfaces(device no should be no listed above) -
cargo run capture device_number
- To save packets to a file -
cargo run save device_no file_name_here