Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/werdl/sniff

Packet-collating, logging and detailed packet sniffer
https://github.com/werdl/sniff

networking packet-sniffer packet-sniffing pnet security-tools

Last synced: about 7 hours ago
JSON representation

Packet-collating, logging and detailed packet sniffer

Awesome Lists containing this project

README

        

# sniff
> A packet-collating, logging and simple packet sniffer, written in Rust
## Usage
```bash
Usage: sniff [OPTIONS]

Arguments:
Protocol to filter (note that this is either TCP, UDP, or ICMP, not application layer protocols)

Options:
-v, --verbose
Verbose mode - prints MAC addresses
-l, --log-file
Path to the log file, if not provided, the program will not log
-X, --exclude-ips
Exclude IP addresses from the output
-x, --exclude-macs
Exclude MAC addresses from the output
-F, --filter-ips
Filter IP addresses
-f, --filter-macs
Filter MAC addresses
-I, --highlight-ips
Highlight IP addresses
-i, --highlight-macs
Highlight MAC addresses
-L, --load-from-file
Load from a previously saved log file
-r, --real-time-playback
Real-time playback from the log file
-h, --help
Print help
```

Note: The program must be run as root to access the network interface.

## Notes
- `sniff` only supports IPv4 packets, but should be OS-agnostic.
- `libpnet` should be installed to run a pre-compiled executable, along with `libpnet-dev` for compiling said executable.