CTF Arsenal
DFIR / Command Mistakes & Recovery

Wireshark/tshark filter returns nothing

1. Error or symptom

A display filter you expect to match returns zero packets.

2. Likely cause

Filter syntax typo, wrong field name, or the traffic simply isn't in this capture (e.g. filtering http on an all-TLS capture).

3. How to verify

Clear the filter and check Statistics > Protocol Hierarchy to confirm the protocol is actually present.

4. Correct command

tshark -r FILE_PATH -q -z io,phs   # confirm protocols present before filtering further

5. Recovery procedure

Adjust the filter to match an actually-present protocol/field.

6. How to avoid repeating it

Always check the protocol hierarchy summary before writing a specific filter, to avoid chasing traffic that isn't there.