Attacks and Exploits
A tester needs to move a file from an in-scope Linux host to the tester's workstation over a plain TCP connection on a chosen port. The host has no SMB client, FTP client or Metasploit. Which tool fits best?
Show the answer
Correct answerB. Netcat
AWhy not this: Impacket's SMB server needs an SMB client on the host, and this host has none.
BWhy this is right: Netcat reads and writes raw TCP, so a listener and a sender move the file with no protocol server.
CWhy not this: Responder poisons name resolution to capture hashes; it does not transfer files over a chosen port.
DWhy not this: Hydra brute-forces logins against services; it does not move files.
Netcat can listen on a port at one end and connect and send data at the other, so it moves a file over raw TCP with no protocol server. Impacket's SMB server is tempting, but it needs an SMB client on the host.