https://github.com/darshanime/netpeek
Layer 7 sniffer
https://github.com/darshanime/netpeek
Last synced: 7 months ago
JSON representation
Layer 7 sniffer
- Host: GitHub
- URL: https://github.com/darshanime/netpeek
- Owner: darshanime
- License: mit
- Created: 2020-03-07T14:57:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-06T16:58:04.000Z (about 4 years ago)
- Last Synced: 2025-03-18T18:45:52.934Z (7 months ago)
- Language: Go
- Homepage:
- Size: 50.8 KB
- Stars: 58
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# netpeek
`netpeek` is a layer 7 sniffer. Like `tcpdump`, but at the application layer.
It has support for the HTTP protocol currently, so it can reconstruct the HTTP request and response from the packets flowing thru the network interface and display it with latency, packet level stats.
Some flags for filtering the packets based on host and ports:
- `sport`
Source port of the packet- `dport`
Destination port of the packet- `shost`
Source host of the packet- `dhost`
Destination host of the packet- `i`
Network interface to sniff on- `protocol`
One of `http`, `drain`, `dump`
-- `http`
will dump the request and response on stdout
-- `drain`
will dump the packet metadata on stdout
-- `dump`
will dump the packet payload on stdout- `v`
Verbose logging- `cui` (experimental)
Use CUI (character user interface) mode## Demo
[](https://asciinema.org/a/GYXAvHeC0kKrNtRN9VlZsaJ2j?autoplay=1&speed=2)
### Credits
I've liberally taken inspiration and code from the [JulienBreux/pody](https://github.com/JulienBreux/pody/) project for the CUI interface.