Attacks and Exploits
A tester has opened a saved capture in Wireshark. Which display filter shows only traffic to or from 10.0.0.5 on TCP port 80?
Show the answer
Correct answerC. ip.addr == 10.0.0.5 && tcp.port == 80
AWhy not this: It matches only packets from that host to port 80, missing replies and the reverse direction.
BWhy not this: This is capture-filter (BPF) syntax, used when starting a capture, not in the display filter bar.
CWhy this is right: It matches either direction for both the address and port, and AND narrows to their overlap.
DWhy not this: The OR operator also shows all port 80 traffic and all traffic for that host, which is too broad.
Display filters use Wireshark field syntax, and ip.addr and tcp.port match either direction, so joining them with && gives the required traffic. The host/port form is capture-filter (BPF) syntax and is not valid in the display filter bar.