{"id":23138296,"url":"https://github.com/jim3/packet-analyzer-fastapi","last_synced_at":"2025-07-12T04:34:29.030Z","repository":{"id":181463091,"uuid":"666812383","full_name":"jim3/Packet-Analyzer-FastAPI","owner":"jim3","description":"Analyzes Wireshark network packets using Python","archived":false,"fork":false,"pushed_at":"2023-07-26T17:47:48.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T20:27:06.373Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/jim3.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":"2023-07-15T16:52:55.000Z","updated_at":"2023-07-15T16:56:01.000Z","dependencies_parsed_at":"2024-12-17T13:10:32.072Z","dependency_job_id":"4039b783-ebd2-46b8-9743-4d0a60d7a74e","html_url":"https://github.com/jim3/Packet-Analyzer-FastAPI","commit_stats":null,"previous_names":["jim3/packet-analyzer-fastapi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jim3%2FPacket-Analyzer-FastAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jim3%2FPacket-Analyzer-FastAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jim3%2FPacket-Analyzer-FastAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jim3%2FPacket-Analyzer-FastAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jim3","download_url":"https://codeload.github.com/jim3/Packet-Analyzer-FastAPI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247157133,"owners_count":20893210,"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":[],"created_at":"2024-12-17T13:10:26.336Z","updated_at":"2025-04-04T09:43:57.558Z","avatar_url":"https://github.com/jim3.png","language":"Python","readme":"### Packet Analyzer\n\nAnalyzes Wireshark network packets using Python and FastAPI to display the results in a web browser.\n\nPretty much the same app as the Node.js version except this uses Python and FastAPI. \n\n\u003eNote: The app has only been tested to work on Linux (Ubuntu 22.04)\n\n## Installation\n\nUse `requirements.txt` to install the required packages.\n\n```bash\npip install -r requirements.txt\n```\n\n## Usage\n\n0. Capture some Wireshark packets and export them as a `.json` file.\n\n1. Run the following command to start the server: `uvicorn app:app --reload`\n\n2. Visit the upload page at `http://127.0.0.1:8000/` and upload your exported .json file.\n\n3. The results will be displayed at the `/packets` endpoint.\n\n## Example Output:\n\n```json\n\n{\n    \"ip\": [\"108.166.149.2\", \"152.199.4.33\"],\n    \"mac\": [\"02:10:18:84:63:f3\", \"8c:dc:d4:38:0e:52\"],\n    \"udp\": [\"58326\", \"37309\", \"53\", \"41177\", \"53487\"],\n    \"tcp\": [\"57008\", \"443\", \"35116\", \"48718\"],\n    \"iplocation\": [\n        {\n            \"ip\": \"108.166.149.2\",\n            \"country_code\": \"US\",\n            \"country_name\": \"United States of America\",\n            \"region_name\": \"New York\",\n            \"city_name\": \"New York City\",\n            \"latitude\": 41.353013,\n            \"longitude\": -74.2637,\n            \"zip_code\": \"10918\",\n            \"time_zone\": \"-04:00\",\n            \"asn\": \"30036\",\n            \"as\": \"Mediacom Communications Corp\",\n            \"is_proxy\": false\n        },\n        {\n            \"ip\": \"152.199.4.33\",\n            \"country_code\": \"US\",\n            \"country_name\": \"United States of America\",\n            \"region_name\": \"California\",\n            \"city_name\": \"Los Angeles\",\n            \"latitude\": 33.97207,\n            \"longitude\": -118.43031,\n            \"zip_code\": \"90094\",\n            \"time_zone\": \"-07:00\",\n            \"asn\": \"15133\",\n            \"as\": \"Edgecast Inc.\",\n            \"is_proxy\": false\n        }\n    ],\n    \"dns_query\": [\n        [\n            [\"mobile.events.data.microsoft.com\", \"api.ip2location.io\"],\n            [\n                \"mobile.events.data.microsoft.com\",\n                \"onedscolprdcus01.centralus.cloudapp.azure.com\",\n                \"mobile.events.data.trafficmanager.net\",\n                \"api.ip2location.io\"\n            ]\n        ]\n    ],\n    \"dns_response\": [\n        [\n            [\"mobile.events.data.microsoft.com\", \"api.ip2location.io\"],\n            [\n                \"mobile.events.data.microsoft.com\",\n                \"onedscolprdcus01.centralus.cloudapp.azure.com\",\n                \"mobile.events.data.trafficmanager.net\",\n                \"api.ip2location.io\"\n            ]\n        ]\n    ],\n    \"http_requests\": []\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjim3%2Fpacket-analyzer-fastapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjim3%2Fpacket-analyzer-fastapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjim3%2Fpacket-analyzer-fastapi/lists"}