Reconnaissance and Enumeration

A tester must capture over SSH on a headless host with little free disk for several days. Only packet headers are needed, and analysis will happen later in Wireshark. What is BEST?

Show the answer

Correct answerB. Run tcpdump with a short snapshot length, writing rotating pcap files

AWhy not this: Wireshark over X forwarding is a poor fit for days of headless capture and holds full packets in memory or disk.

BWhy this is right: Headless tcpdump, header-only snaplen and rotating files meet the disk limit and give pcaps for Wireshark.

CWhy not this: Piped text output is not a pcap, so Wireshark cannot later open it for packet-level analysis.

DWhy not this: Full-length packets in a single file would fill the limited disk long before several days pass.

tcpdump runs headless, a short snapshot length keeps only headers, and rotating pcap files cap disk use while staying openable in Wireshark. Full-length capture to one file would exhaust the disk over several days.