Skip to content

nubEA/Packet-Sniffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🐍 Packet Sniffer CLI (C++)

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.

✨ Features

  • πŸ”Ž 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).

πŸš€ Getting Started

🧱 Prerequisites

  • A Linux-based OS (recommended)
  • g++ (with C++17 support or higher)
  • Root privileges (to open raw sockets)

πŸ”§ Build Instructions

git clone https://github.com/nubea/packet-sniffer.git
cd packet-sniffer
make
./sniffer <interface>
./sniffer --help

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published