{"id":20010203,"url":"https://github.com/activecm/sniffer-template","last_synced_at":"2025-05-04T20:30:45.173Z","repository":{"id":43783153,"uuid":"460909703","full_name":"activecm/sniffer-template","owner":"activecm","description":"Template for building a packet sniffer","archived":false,"fork":false,"pushed_at":"2024-03-25T23:21:27.000Z","size":25,"stargazers_count":14,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-30T22:42:00.428Z","etag":null,"topics":["pcap","pcap-analyzer","pcap-files","pcap-library","python","python3","scapy","template"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/activecm.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}},"created_at":"2022-02-18T15:42:01.000Z","updated_at":"2024-10-15T10:58:10.000Z","dependencies_parsed_at":"2022-09-22T15:14:08.813Z","dependency_job_id":null,"html_url":"https://github.com/activecm/sniffer-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activecm%2Fsniffer-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activecm%2Fsniffer-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activecm%2Fsniffer-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activecm%2Fsniffer-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/activecm","download_url":"https://codeload.github.com/activecm/sniffer-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252395179,"owners_count":21740978,"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":["pcap","pcap-analyzer","pcap-files","pcap-library","python","python3","scapy","template"],"created_at":"2024-11-13T07:18:50.130Z","updated_at":"2025-05-04T20:30:44.860Z","avatar_url":"https://github.com/activecm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sniffer-template\nTemplate for building a packet sniffer\n\nThis is a ready-to-go base for building your custom packet sniffer.\n# Steps\n- Make sure python3 and scapy are installed\n- Copy this script to your script name\n- Edit any sections marked \"REPLACEME\".  This will include the trivial \"...description='__sniffer_template version '...\" and the processpacket function\n\n\n# processpacket\n- \"processpacket\" is handed each sniffed packet one at a time as the object \"p\".\n- Scapy has already identified the headers in the packet.  To see what's been identified, run \"p.show()\"\n- The lines that are currently in processpacket are examples, and can be deleted.\n- You can:\n\t1. Print information about each packet\n\t2. Collect statistics on the entire packet stream\n\t3. Save some packets to an output file\n\t4. Do a test (like \"if p.haslayer(TCP) and p[TCP].dport == 443:\") and process those differently\n\n\n# Features\n- Can sniff from an interface, one or more pcap files, or stdin.\n- If reading from stdin, it saves all packets to a file and processes that, so it's not processing them live.\n- Automatically decompresses gzip and bzip2 compressed pcap files.\n- Code is in place to save packets that you feel should be saved\n\n\n# Requirements\nScapy\nPython3\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factivecm%2Fsniffer-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factivecm%2Fsniffer-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factivecm%2Fsniffer-template/lists"}