Skip to content

4lyingli0n/netgraph

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

netgraph

Capture and analyze http and tcp streams

一个B/S架构的HTTP抓包工具。
抓包和组包使用 github.com/google/gopacket
前后端通信使用 golang.org/x/net/websocket

截图

请确保你的浏览器支持 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.

有任何疑问请及时联系我,期待您的反馈。

About

Capture and analyze http and tcp streams

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 97.0%
  • JavaScript 1.3%
  • HTML 1.1%
  • Other 0.6%