Skip to content

一个网络抓包程序,基于libpcap和gopacket

License

Notifications You must be signed in to change notification settings

MartinDai/net-capture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

net-capture

参考goreplay,基于gopacket+libpcap实现的网络抓包项目,可以通过配置目标IP和端口,抓取TCP和UDP协议的内容

本地启动

运行cmd目录下的main.go,添加如下启动参数

--config-file=./pkg/script/config.yml

构建Linux编译环境容器

make build-container

构建全平台执行文件

make build-all