| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
jopen
8年前发布

Go编写的B/S架构HTTP抓包工具

原文  https://github.com/ga0/netgraph
 

netgraph

Capture and analyze http and tcp streams

一个B/S架构的HTTP抓包工具。

抓包和组包使用 github.com/google/gopacket

前后端通信使用 golang.org/x/net/websocket

Go编写的B/S架构HTTP抓包工具

请确保你的浏览器支持 websocket。

编译,安装,运行

  1. go get github.com/ga0/netgraph    2. 执行 $GOPATH/bin/netgraph -e 网卡名称(比如eth0) -p 服务器端口(默认9000)    3. 用浏览器打开运行 netgraph 的服务器地址(比如 http://localhost:9000)

windows下需要先安装winpcap库。

如果你修改过client下的前端文件:

1. 在源码根目录下执行 go generate    2. go build    3. 运行 netgraph

选项

-bpf string  Berkeley Packet Filter (default "tcp port 80")  -f string  Open pcap file  -i string  Device to capture, auto select one if no device provided  -o string  Output captured packet to pcap file  -p int  Web server port (default 9000)  -s    save network event in server

说明

This project is licensed under the terms of the MIT license.

 本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1447473228475.html
Google Go/Golang开发 Go