MCPcopy Index your code
hub / github.com/burpheart/GoNetCapture

github.com/burpheart/GoNetCapture @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
4 symbols 14 edges 3 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

GoNetCapture

不依赖驱动的跨平台抓包工具

使用

windows 平台

GoNetCapture -a -f -x
-a 捕获网卡ip  默认127.0.0.1
-f pcap文件保存位置 默认 ./cap.pcap  文件已存在时会覆盖文件
-x 只打印HEXDUMP 不保存到文件

 * windows平台使用了winsock进行抓包 raw socket SIO_RCVALL
 * 抓包没有Eth头 固定全 00 MAC地址

linux 平台

GoNetCapture -f -x
-f pcap文件保存位置 默认 ./cap.pcap 文件已存在时会覆盖文件
-x 只打印HEXDUMP 不保存到文件

* linux平台使用的raw socket进行抓包

~~玩具项目 丢包很正常 能用就行~~

Core symbols most depended-on inside this repo

Htons
called by 1
cap_linux.go
cappacp
called by 1
cap_linux.go
cappacp
called by 0
cap_windows.go
main
called by 0
main.go

Shape

Function 4

Languages

Go100%

Modules by API surface

cap_linux.go2 symbols
main.go1 symbols
cap_windows.go1 symbols

For agents

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

⬇ download graph artifact