Sniffing & Spoofing
Wireshark is the world's foremost network protocol analyzer. It lets you capture and interactively browse the traffic running on a computer network, showing packet details at the protocol level.
sudo apt install wireshark
wireshark (GUI) or tshark (CLI)
Wireshark is the world's most widely used network protocol analyzer. It captures packets in real-time from live network interfaces or reads packet captures from saved files, providing detailed inspection of hundreds of protocols at every layer of the network stack.
With support for over 3000 protocols, Wireshark is essential for network administrators, security professionals, and developers. Its powerful display filter language allows precise traffic isolation, while features like Follow TCP Stream, protocol hierarchy statistics, and IO graphs provide deep visibility.
Originally named Ethereal, Wireshark has been under continuous development since 1998. It supports live capture from Ethernet, Wi-Fi, Bluetooth, USB, and many other interface types, making it the universal tool for network traffic analysis.
wiresharkLaunch GUI - Open graphical interfacetshark -i eth0CLI capture - Command line captureFilter: httpHTTP filter - Web traffic onlyFilter: ip.addr == 192.168.1.1IP filter - Specific hostFilter: tcp.port == 443Port filter - Specific portFilter: tcp.flags.syn == 1SYN packets - New connectionsFilter: dnsDNS traffic - Name resolutionFilter: ftp || ftp-dataFTP traffic - File transfersFilter: http.request.method == "POST"POST requests - Form submissionsFilter: http contains "password"Password search - Find credsFilter: tcp.analysis.retransmissionRetransmissions - Network issuesRight-click > Follow > TCP StreamFollow stream - Full conversationtshark -i eth0 -w capture.pcapSave capture - Write to filetshark -r capture.pcap -Y "http"Read file - Filter saved capturetshark -i eth0 -f "port 80"Capture filter - Capture only port 80Identify network latency, packet loss, and connection issues by analyzing captured traffic patterns.
Dissect and understand network protocols at every OSI layer with detailed field-level inspection.
Investigate network security incidents by examining packet captures for malicious activity.
Analyze bandwidth usage patterns and identify which applications consume the most network resources.
Debug application network behavior by examining exact request and response payloads.
Use display filters to isolate specific traffic types, IP addresses, ports, or protocol fields.
Identify command-and-control communication, data exfiltration, and malicious network behavior in infected systems.
Capture and reconstruct voice-over-IP calls, analyze SIP signaling, and verify call quality metrics.
Monitor Wi-Fi beacon frames, probe requests, and deauthentication packets for wireless security assessments.
Verify that network traffic adheres to organizational security policies and regulatory compliance requirements.
Launch with 'sudo wireshark' from the terminal or Applications menu. Select a network interface and click the blue shark fin to start capturing. Use the display filter bar to narrow traffic — try 'http', 'ip.addr == 10.10.10.10', or 'tcp.port == 80'. Wireshark is pre-installed on Kali Linux.
Display filters narrow captured packets without re-capturing. Syntax: 'ip.addr == 10.10.10.10' for IP, 'tcp.port == 443' for port, 'http.request.method == POST' for HTTP methods, 'dns' for DNS, 'tcp.flags.syn == 1' for SYN packets. Combine with '&&' and '||' operators.
Wireshark provides a GUI for interactive deep analysis with protocol dissection and stream following. tcpdump is a lightweight CLI tool ideal for remote servers, scripts, and headless captures. Use tcpdump for quick captures and Wireshark for detailed analysis.
Right-click any packet in the stream → Follow → TCP Stream. This reconstructs the entire conversation in readable form. You can also Follow → HTTP Stream for web traffic. This is essential for reconstructing sessions, viewing transferred data, and analyzing authentication flows.
On Kali Linux, it's pre-installed. On Ubuntu/Debian: 'sudo apt install wireshark'. During installation, allow non-root users to capture when prompted. On macOS: 'brew install --cask wireshark'. On Windows, download the installer from wireshark.org.
Wireshark captures and analyzes network traffic at the packet level. It's used for network troubleshooting, security analysis, protocol debugging, forensics, and educational purposes. You can inspect every field of every packet across hundreds of protocols.
The main screen is divided into sections showing a broad list of intercepted traffic, the granular protocol breakdown of a selected item, and its raw hexadecimal output. Color coding is used heavily to signify traffic patterns, with red typically indicating errors.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.