Post-exploitation and Lateral Movement
A tester will copy one file to hosts where PowerShell is disabled so that netstat and route print run in order through cmd.exe. Which file type fits?
Show the answer
Correct answerA. A .bat file run by cmd.exe
AWhy this is right: A .bat file holds cmd.exe commands that run one after another with no PowerShell needed.
BWhy not this: findstr.exe searches text for patterns; it does not execute the commands in a file.
CWhy not this: rundll32 calls an exported function in a DLL; it does not run a list of commands in order.
DWhy not this: A .ps1 script needs PowerShell, and ISE is a PowerShell host, so both are unavailable here.
A batch file is a plain-text list of cmd.exe commands that run in sequence, so it needs no PowerShell. A .ps1 script depends on PowerShell, which is disabled here.