{"id":20833012,"url":"https://github.com/lakshayd02/network_protocol_analyzer_python","last_synced_at":"2025-04-10T08:54:09.537Z","repository":{"id":250443608,"uuid":"834493149","full_name":"LakshayD02/Network_Protocol_Analyzer_Python","owner":"LakshayD02","description":"A Python-based Network Protocol Analyzer using Scapy to capture and log network traffic in real-time. Gain insights into network communications for monitoring, analysis, and troubleshooting. 🔍","archived":false,"fork":false,"pushed_at":"2025-02-01T14:07:09.000Z","size":8,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T08:11:10.600Z","etag":null,"topics":["network-analyzer","network-protocol-analyzer","packet-sniffer","python","scapy","scapy-library"],"latest_commit_sha":null,"homepage":"","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/LakshayD02.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":"2024-07-27T12:40:11.000Z","updated_at":"2025-02-01T14:08:22.000Z","dependencies_parsed_at":"2024-07-27T14:06:59.269Z","dependency_job_id":null,"html_url":"https://github.com/LakshayD02/Network_Protocol_Analyzer_Python","commit_stats":null,"previous_names":["lakshayd02/network_protocol_analyzer_python"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LakshayD02%2FNetwork_Protocol_Analyzer_Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LakshayD02%2FNetwork_Protocol_Analyzer_Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LakshayD02%2FNetwork_Protocol_Analyzer_Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LakshayD02%2FNetwork_Protocol_Analyzer_Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LakshayD02","download_url":"https://codeload.github.com/LakshayD02/Network_Protocol_Analyzer_Python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248190407,"owners_count":21062277,"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-analyzer","network-protocol-analyzer","packet-sniffer","python","scapy","scapy-library"],"created_at":"2024-11-18T00:13:57.764Z","updated_at":"2025-04-10T08:54:09.529Z","avatar_url":"https://github.com/LakshayD02.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Network Protocol Analyzer Using Python and Scapy 🌐\n\n## Description\n\nThis Network Protocol Analyzer captures and logs network traffic in real-time using Python and the Scapy library.  It provides detailed information about network packets, including timestamps, source/destination IP addresses, protocol details (TCP/UDP), and port numbers.  The analyzer automatically selects the best available network interface and logs a configurable number of packets to prevent excessive log file sizes.  This tool is invaluable for network monitoring, analysis, and troubleshooting.\n\n## Features\n\n* **Real-time Packet Sniffing:** Captures network traffic in real-time using Scapy. 📡\n\n* **Automatic Interface Selection:**  Automatically selects the optimal network interface for capturing packets. 💻\n\n* **Detailed Logging:** Logs essential packet details (timestamp, summary, source/destination IPs, protocol, ports) to `network_traffic.log`. 📝\n\n* **Packet Type Identification:** Identifies IP, TCP, and UDP packets and extracts relevant information.  🔎\n\n* **Configurable Logging Limit:** Limits the number of logged packets (default 20) to manage log file size. 🔢\n\n* **Informative Packet Summaries:**  Provides brief summaries of each captured packet. ℹ️\n\n## Technologies Used\n\n* **Python:** The core programming language for the analyzer. 🐍\n\n* **Scapy:** A powerful Python library for network packet manipulation and analysis. 📡\n\n## Ideal For\n\n* **Network Administrators:** Monitoring and analyzing network traffic for troubleshooting and security. 🧑‍💻\n\n* **Security Researchers:**  Investigating network communications and potential threats. 🕵️‍♀️\n\n* **Network Engineers:**  Analyzing network protocols and performance. 👨‍💼\n\n* **Python Developers:** Learning about network programming and packet analysis with Scapy. 🧑‍🎓\n\n## How to Run\n\n1. **Clone the repository:** `git clone \u003crepo url\u003e`\n\n2. **Install Scapy:** `pip install scapy`\n\n3. **Run the program (with appropriate permissions):** `python network_analyzer.py` (or `python3 network_analyzer.py`)  You may need administrator or root privileges to capture network traffic.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flakshayd02%2Fnetwork_protocol_analyzer_python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flakshayd02%2Fnetwork_protocol_analyzer_python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flakshayd02%2Fnetwork_protocol_analyzer_python/lists"}