Wireshark
Wireshark is a graphical network protocol analyser that lets you capture traffic and inspect it packet by packet with deep protocol decoding.
What it is used for
- Understand how a protocol such as DNS or HTTP behaves on the wire
- Investigate a suspicious pcap in a forensics exercise
- Troubleshoot application or network faults
Key features
- Live capture and pcap file analysis
- Hundreds of protocol dissectors
- Display filters and Follow TCP Stream
- Statistics and I/O graphs
Installation
Download the installer from wireshark.org/download.html or install from your Linux distribution (`sudo apt install wireshark`).
Beginner usage guide
Open a capture, type a display filter such as `http` or `dns` in the filter bar, select a packet and expand the layers in the details pane from Ethernet up to the application protocol.
Example commands
Run these only against your own lab or authorised targets. Placeholder addresses such as 192.0.2.x are documentation ranges.
dnsType this in the display-filter bar to list DNS queries and responses only.
tcp.stream eq 0Filters packets belonging to the first TCP stream; right-click a packet and choose Follow → TCP Stream to read it.
