A Python-based Network Packet Analyzer developed as part of the CodSoft Cyber Security Internship. This project captures live network packets, extracts important information such as Source IP, Destination IP, Protocol, Packet Length, and displays them in a well-formatted console. It also stores the captured packet details in TXT and CSV files for future analysis.
- 📡 Capture live network packets
- 🌐 Display Source IP Address
- 🌐 Display Destination IP Address
- 📦 Detect Protocol (TCP / UDP / ICMP)
- 📏 Display Packet Length
- ⏰ Show Packet Capture Time
- 🎨 Colored Console Output
- 📊 Live Packet Statistics
- 📝 Save logs in
packets.txt - 📄 Export packet details to
packets.csv - 📋 Menu-based packet capture
- 🛑 Graceful exit with packet summary
- Python 3
- Scapy
- Colorama
- CSV Module
- OS Module
- Datetime Module
CODSOFT_TASK1/
│
├── main.py
├── README.md
├── requirements.txt
├── .gitignore
├── output/
│ ├── packets.txt
│ └── packets.csv
├── screenshots/
└── venv/
git clone <repository-link>cd CODSOFT_TASK1\pip install -r requirements.txtpython main.pyAfter running the program, the following files will be created automatically:
output/
├── packets.txt
└── packets.csv
- GUI Version using Tkinter
- Live Dashboard
- Graphical Statistics
- JSON Export
- HTML Report
- Packet Search
- Network Traffic Graphs
Saurabh Prasad Gupta
Computer Science & Engineering Student
CodSoft Cyber Security Internship
This project is created for educational and internship purposes.


