Comfortably monitor your Internet traffic 🕵️‍♂️ https://sniffnet.app
Find a file
2022-11-17 12:18:30 +01:00
.github Update issue templates 2022-09-10 23:01:03 +02:00
fonts included icons from Glyphter.ttf, added colors to connections (incoming/outgoing) 2022-11-07 12:05:37 +01:00
resources updated badges and window dimensions 2022-11-14 21:59:39 +01:00
src fixed linux commands 2022-11-16 22:15:56 +01:00
.gitignore restructured bottom part of GUI run page and added selection to display different kinds of report 2022-11-06 13:13:14 +01:00
Cargo.toml updated badges and window dimensions 2022-11-14 21:59:39 +01:00
CHANGELOG.md updated CHANGELOG and README 2022-10-02 23:32:41 +02:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2022-09-10 22:25:21 +02:00
CONTRIBUTING.md Update CONTRIBUTING.md 2022-11-10 13:20:22 +01:00
LICENSE-APACHE Create LICENSE-APACHE 2022-08-22 15:19:11 +02:00
LICENSE-MIT added footer, added bordered containers, fixed output report write after reinitialization 2022-10-28 18:09:24 +02:00
README.md updated README (troubleshooting TODO) 2022-11-17 12:18:30 +01:00

Sniffnet


Application to comfortably monitor your network traffic

Multithreaded, cross-platform, reliable

 


Sniffnet is a simple yet robust packet sniffer developed with the aim to let people have a glance into their network traffic without pain, in a straightforward and comprehensible way


Install & Run

If you have Rust installed on your machine, the application binary can be installed with cargo install sniffnet

Otherwise, you can install Sniffnet through the installers available in the latest release

Windows dependencies 

In order to correctly run Sniffnet on Windows systems you need to:

  • Install Npcap.

  • Download the Npcap SDK.

  • Add the SDK's /Lib or /Lib/x64 folder to your LIB environment variable.

Linux dependencies 

In order to correctly run Sniffnet on Linux systems, install the libraries and header files for the libpcap library:

sudo apt-get install libpcap-dev

Note that if you are not running as root, you need to set capabilities to inspect a network adapter:

sudo setcap cap_net_raw,cap_net_admin=eip <YOUR/SNIFFNET/EXECUTABLE/PATH>

MacOS dependencies 

MacOS natively has all the dependencies you need to build and run Sniffnet!

Features

  • choose a network adapter to inspect
  • select filters to apply to the observed traffic:
    • IP version
    • transport protocol
    • application protocol
  • view real-time charts about traffic intensity (bytes and packets per second, incoming and outgoing)
  • view overall statistics about the filtered traffic
  • view most relevant connections (most recent, most packets, most bytes)
  • save textual report with detailed information for each connection:
    • source and destination IP addresses
    • source and destination ports
    • carried protocols
    • amount of exchanged packets and bytes
    • initial and final timestamp of information exchange

Supported application layer protocols

See details

Please, note that application layer protocols are just inferred from the transport port numbers.


Port number(s) Application protocol Description
20, 21 FTP File Transfer Protocol
22 SSH Secure Shell
23 Telnet Telnet
25 SMTP Simple Mail Transfer Protocol
49 TACACS Terminal Access Controller Access-Control System
53 DNS Domain Name System
67, 68 DHCP Dynamic Host Configuration Protocol
69 TFTP Trivial File Transfer Protocol
80, 8080 HTTP Hypertext Transfer Protocol
109, 110 POP Post Office Protocol
123 NTP Network Time Protocol
137, 138, 139 NetBIOS NetBIOS
143, 220 IMAP Internet Message Access Protocol
161, 162, 199 SNMP Simple Network Management Protocol
179 BGP Border Gateway Protocol
389 LDAP Lightweight Directory Access Protocol
443 HTTPS Hypertext Transfer Protocol over SSL/TLS
636 LDAPS Lightweight Directory Access Protocol over TLS/SSL
989, 990 FTPS File Transfer Protocol over TLS/SSL
993 IMAPS Internet Message Access Protocol over TLS/SSL
995 POP3S Post Office Protocol 3 over TLS/SSL
1900 SSDP Simple Service Discovery Protocol
5222 XMPP Extensible Messaging and Presence Protocol
5353 mDNS Multicast DNS

Troubleshooting

See details

Pcap permission denied error

You may incur in this error if you have not the privilege to open a network adapter. Full error is reported below.

To solve this error you can execute the following command: sudo chown username /dev/bp*

Where username can be retrieved with the command whoami

Alternatively, you can run the application as root: sudo sniffnet [OPTIONS]

In both cases you will be requested to insert your system password.

Textual report contains just the header

If the textual output is not reporting packets statistics, make sure you are sniffing the correct network adapter (use the -d option to see the full list of your network adapters' names and addresses). To inspect a network adapter of your choice, remember to specify the -a option followed by the name of the adapter to be analyzed. If you don't include such option a default adapter is chosen by the application, but it may not be the one you expected to sniff.

Note that to see report updates while Sniffnet is running you may have to close and re-open the report file.

If you are still not able to see any packet statistic, then it probably means that you are just not receiving packets from the network: surf the web to receive some packets.

Contribute

Do you want to improve Sniffnet? Check here

Stargazers