Network traffic · 03 Tools

Network traffic: tools

Tools for network traffic: Wireshark, tshark, tcpdump, Zeek, Suricata, NetworkMiner, capinfos and sha256sum, with an example run on a test capture.

Wireshark
Graphical packet analysis, with hundreds of recognised protocols.
tshark
The command-line version, suited to repeatable filters and large files.
tcpdump
Lightweight capture on servers and appliances, with BPF filters.
Zeek
Turns traffic into orderly logs of connections, DNS, HTTP, TLS and files.
Suricata
Detection system that flags traffic known to be malicious.
NetworkMiner
Extracts files, images and credentials visible in clear-text protocols.
capinfos and sha256sum
Capture summary and hash for the chain of custody.

Example run with tshark 4.2 and capinfos on 27 November 2026 on a six-packet test capture, using addresses and domains reserved for documentation.

Bash
$ sha256sum capture.pcap
d9a9c21c9574c240a7fcd6ae34024029bedec7be7085fa2d625c48cc9232fed3  capture.pcap
$ capinfos -c -a -e capture.pcap
File name:           capture.pcap
Number of packets:   6
First packet time:   2026-11-26 09:30:00.000000
Last packet time:    2026-11-26 09:30:04.602000
$ tshark -r capture.pcap -Y "dns.flags.response == 0" -T fields -e frame.time_utc -e ip.src -e dns.qry.name
Nov 26, 2026 08:30:00.000000000 UTC	192.168.1.23	mail.example.com
Nov 26, 2026 08:30:04.512000000 UTC	192.168.1.23	holiday-photos.example.net
$ tshark -r capture.pcap -Y "tls.handshake.type == 1" -T fields -e ip.dst -e tls.handshake.extensions_server_name
203.0.113.80	mail.example.com
$ tshark -r capture.pcap -Y http.request -T fields -e ip.dst -e http.host -e urlencoded-form.value
198.51.100.20	holiday-photos.example.net	mario,Summer2026
Continue with
04 Pitfalls to avoid

Network traffic: mistakes to avoid

The most common mistakes in traffic analysis: capturing without legal grounds, capturing everything, forgetting the clock, losing packets, analysing the original, treating encrypted traffic as empty, trusting names, confusing address and person.

↑