A lightweight and efficient network sniffer that captures and analyzes network packets in real-time. This tool leverages pcap
to monitor network traffic on a specified interface, allowing you to inspect, filter, and process packets according to your requirements.
- Capture packets on specific network interfaces.
- Apply customizable filters (e.g., TCP/IP packets, specific ports).
- Analyze, save, or process packet data with user-defined functions.
- Operating System: Linux, BSD, or any platform supporting
pcap
. - Dependencies:
-
libpcap
Installation:
wget https://www.tcpdump.org/release/libpcap-1.10.5.tar.xz
tar -xzf libpcap-1.10.5.tar.xz
cd libpcap-1.10.5 && ./configure
make
sudo make install
-
git clone https://github.com/namher-sec/Network-Sniffer.git
cd Network-Sniffer
Ensure you have a C compiler (e.g., gcc
) installed. Then compile the program:
gcc -o sniffer sniffer.c -lpcap
sudo ./sniffer
This tool is not meant to be used in real life production/security environements. Please look into TCPDump or Wireshark