real-time network packet visualizer
- Python 3.8+
- Npcap (Windows packet capture driver)
- Administrator privileges
Download and install Npcap from https://npcap.com/
Make sure to enable "WinPcap API-compatible mode" during installation.
pip install -r requirements.txtRun as Administrator:
python main.pyYou can optionally provide a BPF capture filter when prompted, for example:
tcp port 443
udp port 53
host 8.8.8.8Controls while running:
- P: pause/resume packet processing
- R: reset statistics counters and graph history
- C: clear live graph history only
- Q: quit cleanly
- Ctrl+C: force stop
Run the focused unit tests with:
python -m unittest discover -s tests- Protocol identification (HTTP/Green, UDP/Blue, Encrypted/Red)
- Color-coded pulses based on traffic type
- Interface selection