Post-exploitation and Lateral Movement

A tester on a compromised Linux server with no scp or FTP client must send a file to the tester's workstation, which is listening on a TCP port. Which tool on the server sends it?

Show the answer

Correct answerA. Netcat

AWhy this is right: Netcat can connect to a listening port and stream a file over raw TCP, which a listener saves.

BWhy not this: Proxychains forces other tools' traffic through proxies. It is not a client that sends files by itself.

CWhy not this: sshuttle tunnels subnet traffic over SSH. It does not transfer a file to a listener.

DWhy not this: Netstat only displays connections, listening ports and owning processes. It cannot send data.

Netcat opens a raw TCP connection and can send a file's contents through it to a listener that writes them to disk, with no file-transfer protocol needed. Netstat only lists connections and ports, so it cannot send data.