Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/werdl/sniff
- Owner: werdl
- Created: 2024-05-21T18:37:14.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-05-22T10:42:04.000Z (6 months ago)
- Last Synced: 2024-05-22T19:59:21.564Z (6 months ago)
- Topics: networking, packet-sniffer, packet-sniffing, pnet, security-tools
- Language: Rust
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.