{"id":37151872,"url":"https://github.com/virb3/tcp-packet-parser","last_synced_at":"2026-01-14T17:56:13.672Z","repository":{"id":83273763,"uuid":"273561341","full_name":"ViRb3/tcp-packet-parser","owner":"ViRb3","description":"A PCAP analyzer that filters TCP packets and dumps them with appropriate labels","archived":true,"fork":false,"pushed_at":"2023-04-08T22:21:10.000Z","size":9,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T00:31:55.083Z","etag":null,"topics":["analyzer","dump","filter","label","packet","parser","pcap","tcp"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ViRb3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-06-19T18:27:53.000Z","updated_at":"2025-04-06T01:16:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"fafacce1-b81c-4278-870e-4f9f7fb49519","html_url":"https://github.com/ViRb3/tcp-packet-parser","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ViRb3/tcp-packet-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ViRb3%2Ftcp-packet-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ViRb3%2Ftcp-packet-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ViRb3%2Ftcp-packet-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ViRb3%2Ftcp-packet-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ViRb3","download_url":"https://codeload.github.com/ViRb3/tcp-packet-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ViRb3%2Ftcp-packet-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28429060,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["analyzer","dump","filter","label","packet","parser","pcap","tcp"],"created_at":"2026-01-14T17:56:13.120Z","updated_at":"2026-01-14T17:56:13.665Z","avatar_url":"https://github.com/ViRb3.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TCP Packet Parser\n\u003e A PCAP analyzer that filters TCP packets and dumps them with appropriate labels.\n\n## Introduction\nWhen reverse-engineering custom TCP protocols, you usually begin with a log of the\ncommunication (e.g.WireShark). You then label each client and server TCP packet, and\nfinally reconstruct the application-level packets from those individual packets.\nThis project aims to automate all of this work for you.\n\n## Features\n- Parses a PCAP file (can be exported from WireShark)\n- Given IP addresses and/or ports as hints:\n  - Distinguishes client and server communication\n  - Merges consequent, same-source packets into a single packet\n  - Performs packet re-ordering based on TCP sequence id\n- Creates dump of new packets\n\n## Limitations\n- Client-server detection works only on serial communication\n\n## Requirements\n- Requires a `libpcap`-compatible library - `libpcap-dev` on Linux, or [npcap](https://nmap.org/npcap/) on Windows\n\n## Download\nCheck out the [Releases](https://github.com/ViRb3/tcp-packet-parser/releases).\n\n## Usage\n```bash\n$ ./tcp-packet-parser -help\n```\n```bash\n  -clientIp string\n        Optional client IP filter for packets.\n  -clientPort uint\n        Optional client port filter for packets.\n  -destDir string\n        Destination directory where to dump packets. (default \"capture-dump\")\n  -pcapFile string\n        Pcap file to parse. (default \"capture.pcap\")\n  -serverIp string\n        Optional server IP filter for packets.\n  -serverPort uint\n        Optional server port filter for packets.\n```\n\n### Example 1\nThe following command will filter all packets that contain the\nport `1234` and dump them with appropriate client-server labels.\n```bash\n$ ./tcp-packet-parser -pcapFile \"capture.pcap\" -serverPort 1234\n```\n### Example 2\nThe following command will do the same as before, except that\nthe client-server labels will be inverted.\n```bash\n$ ./tcp-packet-parser -pcapFile \"capture.pcap\" -clientPort 1234\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirb3%2Ftcp-packet-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvirb3%2Ftcp-packet-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirb3%2Ftcp-packet-parser/lists"}