This project is a Basic Network Sniffer developed using Python and Scapy as part of the Horizon TechX Cyber Security Internship.
The application captures network packets in real time and extracts useful information such as source IP address, destination IP address, and protocol type. Captured packet information is displayed on the console and saved to a log file for further analysis.
- Understand how network packets travel through a network.
- Learn the fundamentals of packet sniffing.
- Analyze packet structure and protocol information.
- Gain practical experience with network monitoring tools.
- Captures live network traffic.
- Displays source and destination IP addresses.
- Identifies common protocols such as TCP, UDP, and ICMP.
- Stores captured packet information in a text file.
- Real-time packet monitoring through the terminal.
- Python 3
- Scapy
- Npcap (for Windows packet capture)
- Install Python.
- Install Scapy:
pip install scapy
- Install Npcap with WinPcap compatibility enabled.
- Run the program as Administrator.
Execute the following command:
python network_sniffer.py
The program will start capturing packets and display network information in real time.
Packet #1 Source IP: 192.168.1.10 Destination IP: 142.250.xxx.xxx Protocol: TCP
HorizonTechX_BasicNetworkSniffer/
├── network_sniffer.py
├── captured_packets.txt
├── README.md
└── screenshots/
- Understanding packet capture techniques.
- Identifying network protocols.
- Working with Scapy for cybersecurity applications.
- Logging and analyzing network traffic.
This project successfully demonstrates the fundamentals of packet sniffing and network traffic analysis. It provides practical exposure to cybersecurity concepts and helps build a foundation for advanced network security tools and techniques.