Sniffing & Spoofing
tcpdump is a powerful, lightweight command-line packet analyzer that allows users to capture, parse, and filter TCP/IP and other packets transmitted or received over a network.
sudo apt install tcpdump
tcpdump [options] [expression]
tcpdump is the most widely used command-line packet analyzer on Unix and Linux systems. It captures packets from network interfaces in real-time, displaying packet headers and optionally payload data according to BPF (Berkeley Packet Filter) expressions.
Developed by the Tcpdump Group, tcpdump has been the standard CLI tool for network troubleshooting and security analysis since 1997. Its minimal resource footprint makes it ideal for remote captures, embedded systems, and scripting integration.
tcpdump's BPF filter language is powerful and expressive, allowing precise traffic selection based on protocol, host, port, packet size, and even specific header field values. Captured packets can be saved as PCAP files for offline analysis with tools like Wireshark.
sudo tcpdump -i eth0Interface capture - Listen live to all packets traveling over the eth0 interfacesudo tcpdump -i eth0 -w capture.pcapWrite to file - Save intercepted traffic data in raw PCAP format for external analysissudo tcpdump -r capture.pcapRead capture - Open and parse a previously recorded network capture file locallysudo tcpdump -i eth0 port 80Port filter - Isolate and capture incoming/outgoing HTTP web traffic data exclusivelysudo tcpdump -i eth0 host 192.168.1.100Host filter - Target and log traffic originating from or directing to a specific IP addresssudo tcpdump -i eth0 -AASCII representation - Output packet payloads explicitly in a human-readable text formatsudo tcpdump -i eth0 -XXHex & ASCII - Render packet details showcasing both Hexadecimal and ASCII translation gridssudo tcpdump -i eth0 src 192.168.1.50 and dst port 22Complex logic - Filter for traffic explicitly matching both source IP and destination port criteriasudo tcpdump -i eth0 -c 100Count limit - Automatically terminate packet collection after capturing exactly 100 framessudo tcpdump -i eth0 'tcp[tcpflags] & (tcp-syn|tcp-ack) == tcp-syn'Advanced flags - Intercept only raw connection setup (SYN) initialization packetssudo tcpdump -i any -n -s 0All interfaces - Capture full-length packets across every interfacesudo tcpdump -i eth0 -G 3600 -w 'trace-%H%M.pcap'Time rotation - Start a new capture file every hoursudo tcpdump -i eth0 -vvv -eVerbose + link - Show full detail including Ethernet MAC headerssudo tcpdump -i eth0 'udp port 53'DNS capture - Isolate DNS query and response trafficsudo tcpdump -i eth0 'icmp'ICMP only - Capture ping and other ICMP control messagesMonitor live network traffic with custom BPF filters for specific protocols or hosts.
Diagnose connectivity issues by examining packet exchanges between hosts.
Capture and save network traffic as evidence for security incident investigations.
Examine protocol behavior at the packet level to understand implementation details.
Save captured packets to PCAP files for offline analysis with Wireshark or other tools.
Analyze traffic volumes and patterns to identify bandwidth usage and anomalies.
Sniffing & Spoofing
GUI-based network protocol analyzer with protocol dissection, coloring, and interactive analysis.
Sniffing & Spoofing
CLI version of Wireshark with same protocol dissection but terminal-based output.
Sniffing & Spoofing
Network attack and monitoring framework with built-in packet sniffing.
Sniffing & Spoofing
MITM framework with ARP spoofing, DNS spoofing, and content filtering.
Sniffing & Spoofing
Network grep utility that applies regular expressions to packet payloads.
Prints a chronological list of packet summaries, detailing the source, destination, protocol, and optionally the internal data payload.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.