Question 101
Post-exploitation and Lateral MovementIn a non-interactive shell on a compromised server, ftp.exe hangs at its login and command prompts. The tester must pull a tool from the lab FTP server unattended. What should the tester do?
Show the answer
Correct answerB. Pass a text file of FTP commands with the -s switch
AWhy not this: It hides server response text, which does not provide the missing login or commands.
BWhy this is right: It reads commands from a script file, so login and download run without interactive input.
CWhy not this: It prints debugging output, which adds information but does not supply the commands.
DWhy not this: It only turns off per-file prompting for multiple transfers; login and commands still need input.
The -s switch makes ftp.exe read its login and transfer commands from a text file, so it runs without interactive input. The -i switch only stops per-file prompts during multiple transfers and does not supply the login or commands.