Wireshark logo

Wireshark

Deep packet analysis with the reference protocol dissector, plus tshark for scripted captures and filtering. Free, open source.

Overview

Wireshark captures or opens packet traces and decodes protocols so analysts can investigate connections, troubleshoot networks and understand suspicious traffic. Capture only traffic you are authorized to monitor and protect sensitive packet files.

Key features

Protocol dissectors; display filters; packet stream inspection; capture and offline trace analysis.

Install & first run


# Debian / Ubuntu / Kali - installs the GUI, tshark and dumpcap
sudo apt install wireshark

# let your user capture without sudo, then log out and back in
sudo usermod -aG wireshark "$USER"

# macOS
brew install --cask wireshark

# Capture 10 packets from the command line
tshark -i eth0 -c 10

# Read a pcap and print the HTTP requests it contains
tshark -r lab.pcap -Y "http.request" -T fields -e http.host -e http.request.uri

-Y is the display filter language, -f is the capture filter. Get the filter right the first time in Wireshark's own reference. Docs: https://www.wireshark.org/docs/

Real-world example

Open a capture from your own lab and filter DNS, TCP or HTTP traffic to understand how an application communicates.

Common questions

Is Wireshark only for pentesting?

No. It is also widely used for network troubleshooting, incident response and protocol analysis.

Capture filter or display filter?

Capture filters (pcap syntax) decide what is recorded and cannot be changed later. Display filters (-Y) filter what you see and are the ones to use daily.

Why can I not see any interfaces?

Permissions. Add your user to the wireshark group (or use dumpcap with capabilities) and log back in.

How do I follow a TCP stream?

Right-click a packet and pick Follow -> TCP Stream in the GUI, or use -z follow,tcp,ascii,0 with tshark for the same output on the command line.

Autopsy

Graphical digital-forensics platform for disk images: timeline, keyword search, artifact review and reporting. Free, on Windows, macOS and Linux.

tcpdump

Capture and filter network packets from the command line with pcap expressions, write a capture, then read it in Wireshark.

Volatility 3

Memory forensics: extract processes, network connections and injected code from RAM captures. Free, open source, Python 3.


Keep exploring: browse every assessment phase in the Pentest Hub.

Authorized testing only — only ever test systems you own or have explicit written permission to assess.