#httpcap
A simple network analyzer that captures http network traffic.
- support Windows/MacOS/Linux
- colorful output

#Usage
NAME:
httpcap - A new cli application
USAGE:
A simple network analyzer that capture http network traffic. [global options] command [command options] [arguments...]
VERSION:
unknown
COMMANDS:
list show all interfaces
run run capture
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help (default: false)
--version, -v print the version (default: false)
#Example
httpcap run # capture default interface
httpcap run -i eth0 -p 80 # capture [eth0] interface with port 80
#Compile on windows
-
download Msys2
-
Download WinPcap developer pack and extract to C:\WpdPack, make sure the directory is same with gopacket/pcap/pcap.go:
#cgo windows CFLAGS: -I C:/WpdPack/Include
- execute command
go build main.go capture.go input_raw.go output_http.go reader.go sort.go writer.go
Packet Capture, Injection, and Analysis with Gopacket
#Run on windows
when run on windows vista or windows 7+, must turn off windows firewall and run with Administrator.
#Format Variables