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

https://github.com/darshanime/netpeek

Layer 7 sniffer
https://github.com/darshanime/netpeek

Last synced: 7 months ago
JSON representation

Layer 7 sniffer

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

[![netpeek-demo](https://asciinema.org/a/GYXAvHeC0kKrNtRN9VlZsaJ2j.svg)](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.