A multi-threading tool to sniff TCP flow statistics and embedded HTTP headers from PCAP file. Each TCP flow carrying HTTP is exported to text file in json forma
A multi-threading tool to sniff TCP flow statistics and embedded HTTP headers from PCAP file. Each TCP flow carrying HTTP is exported to text file in json forma
A multi-threading tool to sniff HTTP header records beyond TCP flow statistics.
MIT licensed.
# Install dependencies
sudo apt-get install cmake libpcap-dev libjson-c-dev build-essential # Ubuntu/Debian
brew install cmake libpcap json-c # macOS
# Build and run
make
./bin/http-sniffer -i make # Standard build
make debug # Debug build
make nfm # With NFM support
make clean-build # Clean then build
make test # Run unit tests
make test-debug # Build debug and run tests# Live capture
./bin/http-sniffer -i en0
# PCAP file analysis
./bin/http-sniffer -r capture.pcap
# Save to JSON
./bin/http-sniffer -i en0 -o output.json[20120921 16:40:09]10.187.179.28:53196-->180.149.134.229:80 1335164797.208360 0.0 0.0 167 5/3 0/0 0 0…Note: If you encounter json-c unused params errors on Linux, try the alternative version.
Xiaming Chen
SJTU, Shanghai, China
2012-04-01
No open issues yet, or sync has not completed.