{"id":20292520,"url":"https://github.com/mauricelambert/packetanalysis","last_synced_at":"2025-03-04T05:13:43.369Z","repository":{"id":57450186,"uuid":"343912041","full_name":"mauricelambert/PacketAnalysis","owner":"mauricelambert","description":"This package implement Packet Analysis with network sniffer or pcap file reader.","archived":false,"fork":false,"pushed_at":"2022-01-31T07:29:29.000Z","size":98,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-14T09:14:45.086Z","etag":null,"topics":["network","network-analysis","network-programming","pcap","pypi-package","python3","scapy","sniffer"],"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/mauricelambert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-02T21:03:58.000Z","updated_at":"2022-03-02T02:16:30.000Z","dependencies_parsed_at":"2022-08-26T06:42:29.399Z","dependency_job_id":null,"html_url":"https://github.com/mauricelambert/PacketAnalysis","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/mauricelambert%2FPacketAnalysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FPacketAnalysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FPacketAnalysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FPacketAnalysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mauricelambert","download_url":"https://codeload.github.com/mauricelambert/PacketAnalysis/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241787485,"owners_count":20020101,"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":["network","network-analysis","network-programming","pcap","pypi-package","python3","scapy","sniffer"],"created_at":"2024-11-14T15:17:37.347Z","updated_at":"2025-03-04T05:13:43.348Z","avatar_url":"https://github.com/mauricelambert.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![PacketAnalysis logo](https://mauricelambert.github.io/info/python/security/PacketAnalysis/logo_small.png \"PacketAnalysis logo\")\r\n\r\n# PacketAnalysis\r\n\r\n## Description\r\n\r\nThis package prints and sniffs the packets.\r\n\r\n## Requirements\r\n\r\nThis package require:\r\n - python3\r\n - python3 Standard Library\r\n - Scapy\r\n\r\n## Installation\r\n\r\n```bash\r\npip install PacketAnalysis\r\n```\r\n\r\n## Examples\r\n\r\n### Command lines\r\n\r\n```bash\r\npython3 -m PacketAnalysis\r\npython3 -m PacketAnalysis.Sniffer\r\npython3 PacketAnalysis.pyz\r\nPacketAnalysis -h\r\nPacketAnalysis --help\r\nPacketAnalysis\r\nPacketAnalysis -v -H -s -d -D -p -r -i -f \"tcp port 80 or udp\" -S capture.pcap -I 172.16.10.\r\nPacketAnalysis -R capture.pcap\r\n```\r\n\r\n### Python3\r\n\r\n```python\r\nfrom PacketAnalysis import PacketPrinter, Sniffer\r\n\r\nsniffer = Sniffer(PacketPrinter())\r\nsniffer.start()\r\nsniffer.stop()\r\n\r\nsniffer = Sniffer(PacketPrinter(), \"tcp port 80 or udp\", \"capture.pcap\", None, \"172.16.10.\")\r\n\r\nsniffer = Sniffer(PacketPrinter(), filetoread=\"capture.pcap\")\r\n```\r\n\r\n## Links\r\n - [Github Page](https://github.com/mauricelambert/PacketAnalysis)\r\n - [Pypi](https://pypi.org/project/PacketAnalysis/)\r\n - [Documentation PacketPrinter](https://mauricelambert.github.io/info/python/security/PacketAnalysis/PacketPrinter.html)\r\n - [Documentation Sniffer](https://mauricelambert.github.io/info/python/security/PacketAnalysis/Sniffer.html)\r\n - [Download as python executable](https://mauricelambert.github.io/info/python/security/PacketAnalysis/PacketAnalysis.pyz)\r\n\r\n## Help\r\n\r\n```text\r\nusage: PacketAnalysis.pyz [-h] [--verbose] [--no-hexa-printer] [--summary-printer] [--details-printer] [--details2-printer] [--python-printer] [--raw-printer] [--info-printer] [--filter FILTER]\r\n                          [--savefilename SAVEFILENAME] [--packet-file PACKET_FILE] [--iface IFACE]\r\n\r\noptional arguments:\r\n  -h, --help            show this help message and exit\r\n  --verbose, -v         Mode verbose (print debug message)\r\n  --no-hexa-printer, -H\r\n                        Do not print the hexadecimal packet\r\n  --summary-printer, -s\r\n                        Print the packet summary\r\n  --details-printer, -d\r\n                        Print packet details\r\n  --details2-printer, -D\r\n                        Print packet details type 2\r\n  --python-printer, -p  Print the scapy command to build the package.\r\n  --raw-printer, -r     Print raw packet\r\n  --info-printer, -i    Print packet information\r\n  --filter FILTER, -f FILTER\r\n                        Scapy filter to select packets\r\n  --savefilename SAVEFILENAME, -S SAVEFILENAME\r\n                        Pcap file to save packets\r\n  --packet-file PACKET_FILE, -R PACKET_FILE\r\n                        Pcap file to read for analysis\r\n  --iface IFACE, -I IFACE\r\n                        Part of the IP, MAC or name of the interface\r\n```\r\n\r\n## Licence\r\n\r\nLicensed under the [GPL, version 3](https://www.gnu.org/licenses/).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmauricelambert%2Fpacketanalysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmauricelambert%2Fpacketanalysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmauricelambert%2Fpacketanalysis/lists"}