A Python-based network packet sniffer built using Scapy to capture and analyze network traffic.
📌 Overview
This project is a simple Network Packet Sniffer developed using Python and the Scapy library. It captures live network packets and displays important packet information such as Source IP, Destination IP, Protocol, Ports, and Packet Length.
This project was created as part of a Cyber Security Internship to understand network traffic analysis and packet inspection.
🚀 Features
- Capture live network packets
- Display Source IP Address
- Display Destination IP Address
- Detect TCP and UDP protocols
- Display Source and Destination Ports
- Display Packet Length
- Lightweight and easy to understand
🛠 Technologies Used
- Python 3
- Scapy Library
📦 Installation
Install Scapy using pip:
pip install scapyRun the following command:
py network_sniffer.pyThe program will start capturing live network packets.
Press Ctrl + C to stop the program.
📷 Sample Output
Add your screenshot here after uploading it to GitHub.
images/output.png
Then display it using:
📁 Project Structure
Basic-Network-Sniffer/
│
├── network_sniffer.py
├── README.md
├── requirements.txt
├── LICENSE
└── images/
└── output.png
🎯 Learning Outcomes
- Understood packet capturing using Scapy.
- Learned about IP, TCP, and UDP protocols.
- Analyzed source and destination addresses.
- Observed how network packets travel through a network.
👨💻 Author
Manoj Kumar S
Cyber Security Internship Project