A multithreaded packet sniffer written in C++ that captures and parses live network traffic from a specified interface. Supports Ethernet, IPv4/IPv6, TCP, UDP, ICMP, and HTTP protocols with clean, color-coded CLI output.
- π Live Packet Capture β Monitor traffic in real-time from a given network interface.
- π§ Protocol Parsing β Parses Ethernet, IP, TCP, UDP, ICMP (v4 & v6), and basic HTTP headers.
- π¨ Colored CLI Output β Highlights different protocols for better readability using ANSI colors.
- βοΈ Multithreaded β Separate threads for capturing and processing packets to improve performance.
- π― Basic Filtering β Filter packets by protocol or port (coming soon).
- A Linux-based OS (recommended)
- g++ (with C++17 support or higher)
- Root privileges (to open raw sockets)
git clone https://github.com/nubea/packet-sniffer.git
cd packet-sniffer
make
./sniffer <interface>
./sniffer --help