Introduction to Wireshark - See your Network Traffic live
What is Wireshark?
Wireshark is a popular network protocol analyzer. It captures every packet on your computer and lets you inspect them.
Blue teams use it to investigate suspicious connections. Red teams use it to understand what information leaks during an attack.
Install Wireshark
macOS
brew install --cask wireshark
Linux
sudo apt install wireshark
During install, it'll ask if non-superusers should capture packets. Select Yes.
Download from https://www.wireshark.org/download.html and run the installer. Make sure to check Install Npcap when prompted — this is what lets Wireshark capture packets.
Start Your First Capture
- Open Wireshark. You'll see a list of network interfaces — Wi-Fi, Ethernet.
- Double-click your active interface (usually the one with the moving line graph next to it).
- Packets start flooding in immediately. Every ping, every DNS query, every open website tab is generating traffic.
Let it run for 30 seconds, then click the red Stop button in the toolbar.
You just captured a snapshot of everything your computer was saying on the network.
The Three Panes
- Top pane (Packet List): Every packet captured. Columns show time, source IP, destination IP, protocol and some info.
- Bottom left pane (Packet Details): The selected packet broken down layer by layer - Ethernet, IP, TCP, TLS, HTTP.
- Bottom right pane (Packet bytes): Raw data in hex.
Filter Out the Noise
Type into the filter bar at the top:
Wireshark filter
dns
http
tcp
tls
ip.addr == 140.82.121.3
What each filter means:
dns— domain name lookupshttp— unencrypted web traffictcp— TCP connections (handshakes, data transfer, connection close)tls— encrypted traffic (Client Hello, Server Hello, certificate exchange)ip.addr == 140.82.121.3— all packets to or from GitHub's IP address
Why This Matters for Security
- Plain HTTP exposes everything. If you visit an HTTP site, anyone on the same Wi-Fi can see the full URL, any form data you submit, and every page you view. Wireshark shows you exactly what an attacker would see.
- DNS leaks information. Even with HTTPS, your DNS queries are often unencrypted. Someone watching can see every domain you visit, even if they can't see which pages.
- Malware calls home. Infected machines often send signals to command-and-control servers. Blue teams spot this in Wireshark — unusual connections at unusual times to unusual IPs.