Attacks and Exploits
Which command captures traffic on eth0 and saves it to a file for later analysis in Wireshark?
Show the answer
Correct answerA. tcpdump -i eth0 -w capture.pcap
AWhy this is right: The -w option writes raw packets to a pcap file that Wireshark opens.
BWhy not this: The -A option prints packet payloads as ASCII on screen; it does not save a file.
CWhy not this: The -n option only turns off name resolution; it does not write a file.
DWhy not this: The -r option reads from an existing file; it does not capture or save anything.
The -w option writes captured packets to a pcap file that Wireshark can open. The -r option does the opposite: it reads packets from an existing file instead of capturing.