{"id":46349699,"url":"https://github.com/0x4bs3nt/gosniff","last_synced_at":"2026-06-08T03:31:28.107Z","repository":{"id":225502885,"uuid":"765923514","full_name":"0x4bs3nt/gosniff","owner":"0x4bs3nt","description":"CLI Network Analyzer Tool / Packet Sniffer","archived":false,"fork":false,"pushed_at":"2025-03-30T21:14:03.000Z","size":14,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"development","last_synced_at":"2026-03-05T02:44:01.036Z","etag":null,"topics":["cobra-cli","golang","gopacket"],"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/0x4bs3nt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-03-01T22:17:08.000Z","updated_at":"2025-03-30T21:16:56.000Z","dependencies_parsed_at":"2024-08-21T17:27:04.585Z","dependency_job_id":"367b7c61-2e70-4158-bfe7-3fae74e6df59","html_url":"https://github.com/0x4bs3nt/gosniff","commit_stats":null,"previous_names":["tumpa02/gosniff","72mins/gosniff","real4bs3nt/gosniff","0x4bs3nt/gosniff"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/0x4bs3nt/gosniff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x4bs3nt%2Fgosniff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x4bs3nt%2Fgosniff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x4bs3nt%2Fgosniff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x4bs3nt%2Fgosniff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0x4bs3nt","download_url":"https://codeload.github.com/0x4bs3nt/gosniff/tar.gz/refs/heads/development","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x4bs3nt%2Fgosniff/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34047266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cobra-cli","golang","gopacket"],"created_at":"2026-03-04T22:32:51.705Z","updated_at":"2026-06-08T03:31:28.101Z","avatar_url":"https://github.com/0x4bs3nt.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# GoSniff\n\n[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/)\n\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\nA CLI Network Analyzer Tool / Packet Sniffer written 100% in Golang.\nMainly utilizes the `gopacket` library for packet sniffing and `cobra` for CLI.\n\n## Important\n\nThis project is heavily inspired by WirePenguin, a packet sniffer written in Golang by pwdz.\nIf you are looking for a more mature project to use, definitely check out [WirePenguin](https://github.com/pwdz/WirePenguin).\n\nNevertheless, this project was solely created by me to learn more about packet sniffing and Golang. \nIt is not meant to be a replacement for WirePenguin or any other packet sniffer.\n\n## Usage\n\n```\nA CLI Network Analyzer Tool / Packet Sniffer written in Go\n\nUsage:\n  gosniff [command]\n\nAvailable Commands:\n  capture     Capture packets on a network interface\n  completion  Generate the autocompletion script for the specified shell\n  help        Help about any command\n  list        List all network devices, their addresses, and their netmasks\n\nFlags:\n  -h, --help   help for gosniff\n\nUse \"gosniff [command] --help\" for more information about a command.\n```\n\nUse the `gosniff` as the main command to access the subcommands. Currently,\nthere are two subcommands: `capture` and `list`.\n\n### List\n\nList is used to list all network devices, their addresses, and their netmasks.\n\nUsage: `gosniff list`\n\n### Capture\n\nCapture is used to capture packets on a network interface in real-time.\n\nUsage and flags:\n```\nUsage:\n  gosniff capture [flags]\n\nFlags:\n  -c, --count int            The number of packets to capture before stopping (by default, it captures indefinitely)\n  -h, --help                 help for capture\n  -i, --interface string     The network interface to sniff for packets (default \"any\")\n  -p, --promiscuous string   Whether to capture packets in promiscuous mode (default \"false\")\n```\n\n## Version info\n\nCurrently, there is no support for offline packet analysis and reading/writing to pcap files.\nPerhaps sometime in the future, I will add support for this.\n\nOther notable features that might be added in the future:\n- Reverse DNS lookup for IP addresses\n- More detailed packet analysis\n- TCP packet reassembly\n- Better CLI interface\n- Reading and writing to pcap files\n- Packet filtering options\n\n## Possible caveats\n\nWindows users might have to install Npcap for the sniffer to work. Npcap can\nbe downloaded from [here](https://npcap.com/).\n\nLinux users might have to install libpcap-dev.\n\nDebian-based systems:\n```\nsudo apt-get install libpcap-dev -y\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x4bs3nt%2Fgosniff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0x4bs3nt%2Fgosniff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x4bs3nt%2Fgosniff/lists"}