Packs / tshark Recipes

Pack 05

tshark Recipes

20 practical commands for capturing and analysing traffic with Wireshark's command line

For cyber students, SOC analysts, homelabbers and junior network staff who want Wireshark's analysis from the command line. Twenty recipes cover capture and display filters, finding retransmissions and unanswered connections, exporting fields to CSV, looking inside DNS, HTTP, TLS and SSH, and pulling files out of traffic. Every recipe was run on an isolated lab network and shows the real output, with the tshark version and test date.

US$12local taxes calculated at checkout

Buy on Gumroad

Checkout and download are handled by Gumroad.

Cover of tshark Recipes

What you get

  • tshark Recipes PDF: 20 recipes
  • One-page tshark cheat sheet PDF
  • Edition 1

What it covers

  • Capture and filter traffic
  • Pull fields into CSV
  • Look inside DNS, HTTP, TLS and SSH
  • Summarise, follow streams and extract files

Tested on

Tool
tshark 4.6.9
System
Kali GNU/Linux Rolling
Lab runs
24 Nov 2026, on an isolated lab network

Only capture on networks you own or have written permission to monitor.

A sample page from tshark Recipes
A page from the pack.

The 20 recipes

Capturing traffic

  1. 01Find the interface to capture on
  2. 02Capture to a file, with a packet limit
  3. 03Capture filter or display filter: see the difference
  4. 04Capture for days with a ring buffer

Reading and filtering captures

  1. 05Read a saved capture and filter it
  2. 06Filter by host, port and protocol
  3. 07Find retransmissions and resets
  4. 08Find connection attempts that got no reply

Pulling out fields

  1. 09Print only the fields you need
  2. 10Export fields to CSV for a spreadsheet

Looking inside protocols

  1. 11See DNS queries and their answers
  2. 12List HTTP requests: method, host and URI
  3. 13See the site name and TLS version in HTTPS
  4. 14See SSH versions and the key exchange

Summaries and statistics

  1. 15Get an overview: what's in this capture?
  2. 16See who talked to whom
  3. 17List every TCP endpoint
  4. 18Count traffic over time

Rebuilding conversations and files

  1. 19Follow a TCP stream as text
  2. 20Pull files out of HTTP traffic

Also in a bundle