一个多线程工具,用于从 PCAP 文件中捕获 TCP 流量统计信息和嵌入的 HTTP 头。每个携带 HTTP 的 TCP 流量都会以 JSON 格式导出到文本文件中。
一个多线程工具,用于从 PCAP 文件中捕获 TCP 流量统计信息和嵌入的 HTTP 头。每个携带 HTTP 的 TCP 流量都会以 JSON 格式导出到文本文件中。
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
暂无开放 Issues,或尚未同步最近议题。