Post-exploitation and Lateral Movement

A tester has root on a Linux host in the database segment. The tester must record only traffic to or from TCP port 1433 for later review in Wireshark. Which command BEST does this?

Show the answer

Correct answerD. tcpdump -i eth0 port 1433 -w db.pcap

AWhy not this: Nmap sends probes and saves scan results; it does not record existing traffic between other hosts.

BWhy not this: ss lists sockets on this host only at one moment; it captures no packets for later analysis.

CWhy not this: Netcat only listens on the port and would save data sent to it, not traffic between other hosts.

DWhy this is right: A capture filter on port 1433 and -w save just that traffic to a pcap file Wireshark can read.

tcpdump with a port capture filter and -w writes only the matching packets to a pcap file that Wireshark can open. Nmap actively probes services and records scan results, not the traffic that hosts exchange.