CyberLearn
← Back to beginner
Beginner

Network Traffic Analyzer

Capture and analyze packets

Log in to track progress
3–5hPythonC++

What you'll learn

  • Packet capture
  • Protocol analysis
  • Traffic visualization

Network Traffic Analyzer

Two implementations of the same network traffic analyzer — one in Python, one in C++. Both capture packets at the kernel level, parse protocol headers, and display real-time statistics.

Screenshots & demo →

Implementations

ImplementationStackHighlights
C++C++20 • libpcap • FTXUIInteractive TUI, polymorphic IP parser, mutex-protected stats engine
PythonPython 3.14 • Scapy • RichProducer-consumer threading, BPF filter builder, Matplotlib chart export

Quick Start

C++ — high-performance interactive TUI:

cd cpp
./install.sh
just run -i eth0

Python — scriptable with chart export:

cd python
uv sync
sudo netanal capture -i eth0

Both require root or CAP_NET_RAW capability for packet capture.