root@sparrow:~/writeups$ cat wireshark.md
// recon
Wireshark
22 Jul 2026
· 2 min read
Wireshark is a network traffic analyser that lets you capture, inspect and filter packets in real time. A fundamental tool in cybersecurity, networking, and forensic analysis.
| Type | GUI |
| Platform | Kali / Linux / Windows / macOS |

1. Capture filters (BPF, before capturing)
| Filter | What it does |
|---|---|
host 192.168.1.10 | Filter by IP |
src host 192.168.1.10 | Source traffic only |
dst host 192.168.1.10 | Destination traffic only |
net 192.168.1.0/24 | By network range |
port 80 | By port |
tcp / udp / icmp | By protocol |
src port 53 / dst port 443 | Source/destination port |
2. Display filters (after capturing, more powerful)
| Filter | What it shows |
|---|---|
ip.addr == 192.168.1.10 | Traffic to/from that IP |
tcp.port == 80 / udp.port == 53 | By port |
tcp.flags.syn == 1 | SYN packets |
http / http.request / http.response | HTTP traffic |
http.request.method == "POST" | POST requests only |
http.host == "google.com" | By HTTP host |
dns.qry.name == "example.com" | DNS queries for a domain |
arp.opcode == 1 / == 2 | ARP who-has / is-at |
icmp.type == 8 / == 0 | Ping request / reply |
tls.handshake | TLS/SSL handshake |
3. Key shortcuts
| Shortcut | Action |
|---|---|
| Ctrl + E | Start/stop capture |
| Ctrl + F | Find |
| Ctrl + / | Clear filters |
| Ctrl + R | Restart |
| Ctrl + Shift + M | Follow TCP Stream |
4. Finding plaintext passwords
http.request.method == "POST"
Or search directly for password, login, passwd in the content — only works if the protocol isn't encrypted (HTTP, FTP, Telnet).
5. Statistics — the essentials
| Tool | What it's for |
|---|---|
| Protocol Hierarchy | See which protocols dominate traffic and spot unusual ones (Telnet, SMBv1, FTP...) |
| Conversations | Identify suspicious IPs and abnormally long connections |
| Endpoints | See every device that generated traffic |
| IO Graphs | Detect traffic spikes, DDoS, scans |
| Flow Graph | Visualise the full TCP handshake (SYN → SYN/ACK → ACK) |
| Service Response Time | See if a service (DNS, SMB, HTTP) is slow or saturated |
| Expert Information | Automatic alerts: retransmissions, duplicates, TCP errors |
Detecting an Nmap-style scan:
tcp.flags.syn == 1 and tcp.flags.ack == 0. Detecting retransmissions:tcp.analysis.retransmission.
Responsible use
These commands are for systems you own or have explicit written authorisation to test (labs, CTFs, contracted engagements). Using them against third-party infrastructure without permission is illegal in most countries.