{"id":13509221,"url":"https://github.com/ga0/netgraph","last_synced_at":"2025-12-14T22:57:54.635Z","repository":{"id":36787451,"uuid":"41094226","full_name":"ga0/netgraph","owner":"ga0","description":"A cross platform http sniffer with a web UI","archived":false,"fork":false,"pushed_at":"2023-07-21T19:53:49.000Z","size":5471,"stargazers_count":949,"open_issues_count":3,"forks_count":91,"subscribers_count":37,"default_branch":"master","last_synced_at":"2024-11-01T09:34:17.021Z","etag":null,"topics":["http","network-analysis","network-monitoring","pcap-analyzer","sniffer"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ga0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-08-20T12:23:31.000Z","updated_at":"2024-10-15T04:42:58.000Z","dependencies_parsed_at":"2024-01-07T22:49:46.279Z","dependency_job_id":"d14ccd1d-7865-4910-8c77-0abc8b6eaa80","html_url":"https://github.com/ga0/netgraph","commit_stats":{"total_commits":62,"total_committers":4,"mean_commits":15.5,"dds":"0.25806451612903225","last_synced_commit":"69b72fb7588df950f28bcbb94fc696eb8b3d68e4"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ga0%2Fnetgraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ga0%2Fnetgraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ga0%2Fnetgraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ga0%2Fnetgraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ga0","download_url":"https://codeload.github.com/ga0/netgraph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246323932,"owners_count":20759051,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["http","network-analysis","network-monitoring","pcap-analyzer","sniffer"],"created_at":"2024-08-01T02:01:04.785Z","updated_at":"2025-12-14T22:57:54.568Z","avatar_url":"https://github.com/ga0.png","language":"Go","readme":"![](https://travis-ci.com/ga0/netgraph.svg?branch=master)\n[![Go Report Card](https://goreportcard.com/badge/github.com/ga0/netgraph)](https://goreportcard.com/report/github.com/ga0/netgraph)\n[![codecov](https://codecov.io/gh/ga0/netgraph/branch/master/graph/badge.svg)](https://codecov.io/gh/ga0/netgraph)\n![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)\n\n# Netgraph\n\nNetgraph is a packet sniffer tool that captures all HTTP requests/responses, and display them in web page.\n\n\n![Screenshot](https://raw.githubusercontent.com/ga0/netgraph/master/screenshot.png)\n\nYou can run Netgraph in your linux server without desktop environment installed, and monitor http requests/responses in your laptop's browser.\n\n## Compile, Install, Run\n\n      1. go get github.com/ga0/netgraph\n      2. run $GOPATH/bin/netgraph -i INTERFACE -p PORT\n      3. open the netgraph web page in your browser (for example: http://localhost:9000, 9000 is the PORT set in step 2)\n\n      Windows user need to install winpcap library first.\n\n## Options\n\n      -bpf string\n            Set berkeley packet filter (default \"tcp port 80\")\n      -i string\n            Listen on interface, auto select one if no interface is provided\n      -input-pcap string\n            Open a pcap file\n      -o string\n            Write HTTP requests/responses to file, set value \"stdout\" to print to console\n      -output-pcap string\n            Write captured packet to a pcap file\n      -output-request-only\n    \t      Write only HTTP request to file, drop response. Only used when option \"-o\" is present. (default true)\n      -p int\n            Web server port. If the port is set to '0', the server will not run.  (default 9000)\n      -s\tSave HTTP event in server\n      -v\tShow verbose message (default true)\n\n\nExample: print captured requests to stdout:\n\n      $ ./netgraph -i en0 -o=stdout\n      2018/07/26 10:33:24 open live on device \"en0\", bpf \"tcp port 80\"\n      [2018-07-26 10:33:34.873] #0 Request 192.168.1.50:60448-\u003e93.184.216.34:80\n      GET / HTTP/1.1\n      Host: www.example.com\n      Connection: keep-alive\n      Pragma: no-cache\n      Cache-Control: no-cache\n      Upgrade-Insecure-Requests: 1\n      User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36\n      Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\n      Accept-Encoding: gzip, deflate\n      Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,zh-TW;q=0.7\n\n      content(0)\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT)\n\n\n","funding_links":[],"categories":["Misc","Go","\u003ca id=\"79499aeece9a2a9f64af6f61ee18cbea\"\u003e\u003c/a\u003e浏览嗅探\u0026\u0026流量拦截\u0026\u0026流量分析\u0026\u0026中间人","\u003ca id=\"7bf0f5839fb2827fdc1b93ae6ac7f53d\"\u003e\u003c/a\u003e工具","http"],"sub_categories":["\u003ca id=\"99398a5a8aaf99228829dadff48fb6a7\"\u003e\u003c/a\u003e未分类-Network","\u003ca id=\"32739127f0c38d61b14448c66a797098\"\u003e\u003c/a\u003e嗅探\u0026\u0026Sniff"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fga0%2Fnetgraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fga0%2Fnetgraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fga0%2Fnetgraph/lists"}