httpcap

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

README

#httpcap A simple network analyzer that captures http network traffic.

  • support Windows/MacOS/Linux
  • colorful output

screenshot

#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

  1. download Msys2

  2. 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
  1. 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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
tls

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL