Crates.io | packet_snooper |
lib.rs | packet_snooper |
version | 1.0.2 |
source | src |
created_at | 2022-09-04 16:16:17.665069 |
updated_at | 2022-09-04 16:54:25.443738 |
description | A crossplatform multithreaded framework to capture and analyze packets. |
homepage | |
repository | https://github.com/XXmorpheusX/PacketSnooper.git |
max_upload_size | |
id | 658356 |
size | 3,580,898 |
packet_snooper
is a cross-platform library to analyze network traffic data written using the Rust Programming Language.
It's available on Windows and UNIX-like Operating Systems such as Linux and macOS.
It was developed as part of a University project (Politecnico of Turin, Italy. "System and Device Programming". Year 2022).
Install WinPcap.
Download the WinPcap Developer's Pack.
Add the /Lib or /Lib/x64 folder to your LIB environment variable.
Install the libraries and header files for the libpcap library. For example:
On Debian based Linux: install libpcap-dev.
On Fedora Linux: install libpcap-devel.
Note: If not running as root, you need to set capabilities like so: sudo setcap cap_net_raw,cap_net_admin=eip path/to/bin.
libpcap should be installed on Mac OS X by default.
Note: A timeout of zero may cause pcap::Capture::next to hang and never return (because it waits for the timeout to expire before returning). This can be fixed by using a non-zero timeout (as the libpcap manual recommends) and calling pcap::Capture::next in a loop.
full-support: EthernetII
identification: Ethernet802.3
future support: ()
full-support: IPv4, (IPv6), IPv6HopByHop
identification: ARP
future support: ()
full-support: UDP, (TCP)
identification: (). Others: IGMP, ICMPv4, ICMPv6
future support: ()
full-support: ()
identification: FTP=20, SSH=22, SMPT=23, DNS=53, HTTP=80, POP3=110
SFTP=115, SNMP=161, BGP=179, HTTPS=443
future support: ()