{"id":23867276,"url":"https://github.com/ybigsur5/wireless-network-analyzer-in-cpp","last_synced_at":"2025-02-22T15:49:26.431Z","repository":{"id":192062503,"uuid":"685981229","full_name":"ybigsur5/Wireless-Network-Analyzer-in-Cpp","owner":"ybigsur5","description":"This Wireless Network Analyzer is developed in C++ that enables user to capture and analyze wireless network traffic. In example, capturing packets, dissecting network protocols, and displaying critical information (packet timestamps, lengths, source, and destination MAC addresses). This code also added with error handling, packet parsing, etc.","archived":false,"fork":false,"pushed_at":"2024-10-25T03:30:51.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-26T17:09:15.713Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/ybigsur5.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-09-01T13:02:58.000Z","updated_at":"2024-10-25T03:30:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"2d8abe11-9a79-4c02-b2d5-6508642597f6","html_url":"https://github.com/ybigsur5/Wireless-Network-Analyzer-in-Cpp","commit_stats":null,"previous_names":["ybigsur5/wireless-network-analyzer-in-cpp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ybigsur5%2FWireless-Network-Analyzer-in-Cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ybigsur5%2FWireless-Network-Analyzer-in-Cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ybigsur5%2FWireless-Network-Analyzer-in-Cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ybigsur5%2FWireless-Network-Analyzer-in-Cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ybigsur5","download_url":"https://codeload.github.com/ybigsur5/Wireless-Network-Analyzer-in-Cpp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232320254,"owners_count":18504976,"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":"2025-01-03T10:17:37.119Z","updated_at":"2025-01-03T10:17:38.663Z","avatar_url":"https://github.com/ybigsur5.png","language":"C++","readme":"# 🌐 Wireless Network Analyzer/ Network Packet Sniffer\n\nA C++ program that captures and analyzes network packets using the libpcap library. This tool displays packet information including timestamps, packet length, and MAC addresses.\n\n## ✨ Features\n\n- 📡 Real-time packet capture\n- 🔍 MAC address extraction and formatting\n- ⏱️ Packet timestamp logging\n- 📊 Packet size analysis\n- 🔄 Continuous packet monitoring\n\n## 📋 Prerequisites\n\n- 🖥️ Linux/Unix Operating System\n- ⚡ GCC/G++ Compiler\n- 📦 libpcap-dev package\n- 👑 Root/Administrative privileges\n\n## 🚀 Installation\n\n1. Install libpcap development package:\n```bash\nsudo apt-get install libpcap-dev\n```\n\n2. Clone this repository:\n```bash\ngit clone https://github.com/ybigsur5/packet-sniffer.git\n```\n\n3. Compile the program:\n```bash\ng++ packet_sniffer.cpp -o packet_sniffer -lpcap\n```\n\n## 💻 Usage\n\n1. Run the program with root privileges:\n```bash\nsudo ./packet_sniffer\n```\n\nThe program will:\n- 🔍 Automatically detect network interface\n- 📡 Start capturing packets\n- 📊 Display packet information in real-time\n- 🔄 Continue until manually stopped (Ctrl+C)\n\n## 📝 Output Format\n\nFor each captured packet, the program displays:\n```\nPacket captured!\nTimestamp: [seconds].[microseconds]\nPacket length: [length] bytes\nSource MAC: xx:xx:xx:xx:xx:xx\nDest MAC: xx:xx:xx:xx:xx:xx\n```\n\n## ⚠️ Limitations\n\n- 👑 Requires root privileges\n- 🐧 Linux/Unix systems only\n- 🔌 Depends on libpcap library\n\n## 🔒 Security Considerations\n\n- ⚠️ Only run on networks you have permission to monitor\n- 🛡️ Be aware of privacy and legal implications\n- 🔐 Handle captured data responsibly\n\n## 🚀 Future Enhancements\n\n1. Add protocol analysis (TCP/IP, UDP)\n2. Implement packet filtering\n3. Add packet payload inspection\n4. Create packet statistics\n5. Add GUI interface\n\n## 👨‍💻 Author\n\n**Vira**\n- 🌐 GitHub: [@ybigsur5](https://github.com/ybigsur5)\n- 📧 Email: vira.cehoscp@gmail.com\n\n## 🙏 Acknowledgments\n\n- 📚 libpcap documentation\n- 🛡️ Network Security Community\n- 👥 Open Source Contributors\n\n## ⚠️ Disclaimer\n\nThis tool is for educational purposes only. Ensure you have proper authorization before capturing network traffic. Use responsibly and ethically.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fybigsur5%2Fwireless-network-analyzer-in-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fybigsur5%2Fwireless-network-analyzer-in-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fybigsur5%2Fwireless-network-analyzer-in-cpp/lists"}