MCPcopy Index your code
hub / github.com/asmcos/sniffer

github.com/asmcos/sniffer @V1.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release V1.0.1 ↗ · + Follow
53 symbols 119 edges 3 files 18 documented · 34%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

httpdump

Httpdump capture http packet in gopacket(libpcap).

install libpcap

for ubuntu/debian:

sudo aptitude install libcap-dev

for centos/redhat/fedora:

sudo yum install libpcap-devel

depend

go get github.com/gin-gonic/gin
go get github.com/jinzhu/gorm
go get github.com/jinzhu/gorm/dialects/sqlite

make

make

run

nohup ./sniffer -i eth0 &

Core symbols most depended-on inside this repo

Debug
called by 11
sniffer.go
Error
called by 6
sniffer.go
HeaderToDB
called by 2
sniffer.go
Read
called by 2
sniffer.go
Info
called by 2
sniffer.go
printHeader
called by 2
sniffer.go
isRequest
called by 2
sniffer.go
isResponse
called by 2
sniffer.go

Shape

Function 25
Method 18
Struct 10

Languages

Go100%

Modules by API surface

sniffer.go35 symbols
db_orm.go15 symbols
server.go3 symbols

For agents

$ claude mcp add sniffer \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page