Go編寫的B/S架構HTTP抓包工具
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.
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!