Post-exploitation and Lateral Movement

A tester has a project file with inline C# code, and the Windows host has .NET installed and blocks unknown executables. Which signed Microsoft binary can compile and run that code?

Show the answer

Correct answerA. msbuild.exe

AWhy this is right: msbuild.exe builds project files and runs inline C# tasks, which suits a signed-binary approach.

BWhy not this: rundll32.exe calls functions exported by an existing DLL; it does not compile source from a project file.

CWhy not this: ftp.exe transfers files and can run commands from a script, but it does not compile code.

DWhy not this: findstr.exe searches text for patterns; it neither compiles nor runs code.

msbuild.exe is a signed .NET build tool that compiles and runs inline tasks defined in a project file, so no unknown executable is needed. rundll32.exe runs DLL exports and cannot compile source code from a project file.