https://github.com/martindai/net-capture
一个网络抓包程序,基于libpcap和gopacket
https://github.com/martindai/net-capture
gopacket libpcap
Last synced: 17 days ago
JSON representation
一个网络抓包程序,基于libpcap和gopacket
- Host: GitHub
- URL: https://github.com/martindai/net-capture
- Owner: MartinDai
- License: mit
- Created: 2023-09-26T07:23:05.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-31T12:02:19.000Z (over 2 years ago)
- Last Synced: 2025-02-22T04:42:23.726Z (over 1 year ago)
- Topics: gopacket, libpcap
- Language: Go
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# net-capture
参考[goreplay](https://github.com/buger/goreplay),基于gopacket+libpcap实现的网络抓包项目,可以通过配置目标IP和端口,抓取TCP和UDP协议的内容
## 本地启动
运行`cmd`目录下的main.go,添加如下启动参数
```text
--config-file=./pkg/script/config.yml
```
## 构建Linux编译环境容器
```shell
make build-container
```
## 构建全平台执行文件
```shell
make build-all
```