commands
// 2026-01-05
// ID: REF-Wireshark Command List
Wireshark Command List
Wireshark/TShark Command Guide
Wireshark is for analysis. TShark is the CLI version.
Top 10 Useful Commands
1. Start Capture (GUI)
wireshark &
Explanation: Launch GUI.
2. TShark Capture
tshark -i eth0
Explanation: Capture on interface cli.
3. Write to File
tshark -i eth0 -w capture.pcap
Explanation: Save packets.
4. Read File
tshark -r capture.pcap
Explanation: Analyze offline file.
5. Filter IP
ip.addr == 10.10.10.10
Explanation: (Display Filter) Show only this IP.
6. Filter HTTP
http.request.method == "POST"
Explanation: Show POST requests.
7. Follow Stream (CLI)
tshark -r file.pcap -z follow,tcp,ascii,0
Explanation: Reconstruct TCP stream 0.
8. Stats
capinfos capture.pcap
Explanation: Show duration/bitrate stats.
9. Extract Objects
tshark -r capture.pcap --export-objects http,destdir/
Explanation: Extract images/files from PCAP.
10. Credentials (Ngrep style)
tshark -r file.pcap -Y "http contains password"
Explanation: Search payload for strings.
The Most Powerful Command
ip.addr == 192.168.1.5 && http
Explanation: Simple filter to isolate all web traffic for a specific target.