Post-exploitation and Lateral Movement
On a compromised Windows workstation with an interactive desktop session, a tester must write and step through a multi-line script that uses cmdlets and .NET objects, with breakpoints, before running it elsewhere. Nothing may be installed. Which built-in tool fits?
Show the answer
Correct answerC. PowerShell ISE
AWhy not this: mmc.exe hosts administrative snap-ins and is not a scripting or debugging environment.
BWhy not this: cmd.exe batch files cannot call cmdlets or .NET objects natively and have no breakpoint debugger.
CWhy this is right: ISE is a built-in GUI with a script pane, console and breakpoint debugging for PowerShell.
DWhy not this: msbuild compiles project files and inline tasks; it is not an interactive script editor or debugger.
PowerShell ISE ships with Windows and combines a script editor, console and debugger with breakpoints for cmdlet and .NET scripts. A batch file in cmd.exe has no debugger and cannot use cmdlets or .NET objects natively.