Cybersecurity-Projects/PROJECTS/beginner/network-traffic-analyzer
CarterPerez-dev c319960bbb ci(network-traffic-analyzer): drop ruff preview to keep lint green across versions
The lint job installs ruff unpinned (pip install ruff), which reached 0.15.22
and, under preview = true, promoted the rule-codes-in-selectors diagnostic that
rejects rule codes like E501/S101 in lint.ignore. This project was the only one
with preview enabled. Dropping preview keeps the code-based selectors valid on
every ruff version in play (0.15.1 pre-commit pin, 0.15.7, 0.15.22 CI) and
aligns it with the other Python projects. No rule coverage change.
2026-07-19 03:18:03 -04:00
..
assets chore: add demos for projects, update haskell-reverse-proxy modules, refresh siem assets 2026-04-26 23:12:48 -04:00
cpp cracked 2026-05-23 05:01:01 -04:00
python ci(network-traffic-analyzer): drop ruff preview to keep lint green across versions 2026-07-19 03:18:03 -04:00
DEMO.md chore: add demos for projects, update haskell-reverse-proxy modules, refresh siem assets 2026-04-26 23:12:48 -04:00
README.md chore: add demos for projects, update haskell-reverse-proxy modules, refresh siem assets 2026-04-26 23:12:48 -04:00

README.md

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

Implementation Stack Highlights
C++ C++20 • libpcap • FTXUI Interactive TUI, polymorphic IP parser, mutex-protected stats engine
Python Python 3.14 • Scapy • Rich Producer-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.