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 messagessudo tcpdump -i eth0 'net 10.0.0.0/8'Network filter - Capture traffic for an entire subnet rangeMonitor 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
Wireshark tutorial for beginners: capture packets, read the three panes, filter traffic and follow TCP streams — a hands-on guide to the world's foremost network protocol analyzer.
Sniffing & Spoofing
Bettercap is a powerful, flexible network attack and monitoring framework. It is the complete modular successor to ettercap, offering wide-ranging capabilities for WiFi, Bluetooth, and IP network security auditing.
Sniffing & Spoofing
Ettercap is a comprehensive suite for man-in-the-middle attacks. It features sniffing of live connections, content filtering, and active or passive dissection of many protocols.
Sniffing & Spoofing
arpspoof redirects packets from a target host on the LAN to another host by forging ARP replies. It is a simple and effective utility part of the dsniff suite.
Sniffing & Spoofing
Learn how to use Netcat (nc) in Kali Linux to open a TCP or UDP connection, check a port, and see what a service sends back. Follow the examples to send your first message, inspect HTTP and SMTP responses, and transfer a test file without exposing sensitive data.
Sniffing & Spoofing
Responder is an LLMNR, NBT-NS and MDNS poisoner. It responds to specific localized name resolution requests with rogue authentication challenges to harvest hashes and credentials.
Learn how to use tcpdump in Kali Linux — capture packets, filter with BPF, save pcap files and read output, with a worked example and cheat sheet.
Networking · BeginnerLearn the fundamentals of computer networking including the OSI model, TCP/IP protocol suite, IP addressing, subnetting, DNS, and network security essentials.
Linux · BeginnerEssential Linux networking commands and configuration for IP addressing, routing, DNS, firewall rules, and network troubleshooting.
Tools · BeginnerMaster Wireshark for network traffic capture, protocol analysis, filtering, and troubleshooting with practical examples.
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.