Packet Sniffer is a Python-based network analysis tool that captures and inspects network packets using the Scapy library.
The project demonstrates how packets traverse a network by allowing users to observe protocols, source and destination addresses, and payload information in real time. It serves as an educational tool for learning network protocols and packet analysis techniques.
This project is intended for cybersecurity education, defensive research, and authorized network monitoring.
- Capture live network packets
- Display packet information
- Inspect protocol headers
- Analyze source and destination addresses
- Lightweight implementation
- Built with Scapy
- Python 3
- Scapy
- Linux
Packets_Sniffer/
│
├── packet_sniffer.py
├── requirements.txt
└── README.md
- Python 3.9+
- Scapy
- Root/Administrator privileges
Install dependencies:
pip install -r requirements.txtor
pip install scapyRun the sniffer:
sudo python3 packet_sniffer.pyCaptured packets will be displayed in the terminal as they are received.
This project demonstrates:
- Packet sniffing fundamentals
- Network protocol analysis
- TCP/IP packet structures
- Scapy packet manipulation
- Real-time traffic monitoring
- Cybersecurity research techniques
Depending on the implementation, captured packets may include:
- Ethernet
- ARP
- IPv4
- IPv6
- ICMP
- TCP
- UDP
- DNS
- HTTP
Source: 192.168.1.5
Destination: 8.8.8.8
Protocol: UDP
Length: 78 bytes
This project is intended only for:
- Educational purposes
- Authorized penetration testing
- Defensive cybersecurity research
- Laboratory environments
Do not capture or inspect traffic on networks without proper authorization.
- Protocol filtering
- Interface selection
- Packet logging
- PCAP export
- Colorized terminal output
- Command-line arguments
- Statistics dashboard
- Unit tests
Contributions are welcome through pull requests or issue reports.
Rhema Great
GitHub: https://github.com/RhemaGreat
Licensed under the MIT License.