A simple but powerful GUI tool to monitor and analyze network traffic in real-time. Built with Python, Tkinter, and Scapy.
- Live Packet Capture: Capture network traffic from any interface
- Protocol Analysis: Identify TCP, UDP, ICMP, and ARP traffic
- Anomaly Detection: Machine learning-based detection of suspicious traffic
- Real-time Stats: Live counters for packets, bytes, and protocols
- Dark/Light Theme: Toggle between dark and light modes
- Packet Details: Inspect individual packets with hex/ASCII view
Make sure you have Python 3.8 or higher installed.
Open terminal/command prompt and run:
pip install scapy matplotlib pandas numpy scikit-learn psutilpython network_analyzer.py- Click "Select Interface" button
- Choose your network interface from the list (e.g., "Wi-Fi", "Ethernet")
- Click "Select"
- Click "▶ Start Capture" button
- Watch packets appear in real-time
- View Packets: See captured packets in the main list
- Packet Details: Click any packet to see detailed information
- Statistics: Monitor packet counts in the dashboard
- Anomalies: Look for
⚠️ marks next to suspicious packets
- Click "⏹ Stop Capture" when done
- Use "Clear" button to reset
- Data is automatically saved for this session
- Run as administrator (Windows) or use sudo (Linux/Mac)
- Make sure you're connected to a network
On Windows, install Npcap (not WinPcap): https://npcap.com/
- Reduce captured packets using filters
- Close other network-intensive apps
- Network Troubleshooting: See what's happening on your network
- Security Monitoring: Detect unusual traffic patterns
- Learning Tool: Understand how networks work
- Application Debugging: Monitor app network usage
- Use filters to focus on specific IPs or ports
- Double-click packets for detailed view
- Toggle theme with the sun/moon button
- Start with small captures to learn the interface
Only capture traffic on networks you own or have permission to monitor. Respect privacy laws in your area.
- Check the troubleshooting section above
- Make sure all packages are installed
- Try running as administrator
- Restart the application
Simple Command to Run:
python network_analyzer.pyThat's it! Start analyzing your network traffic in minutes.