-
Build and execute a C# project stored in the target csproj file.
msbuild.exe file.csproj
- Use case
- Compile and run code
- Privileges required
- User
- Operating systems
- Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
- ATT&CK® technique
- T1127.001: MSBuild
- Tags
Execute: CSharp
-
Executes generated Logger DLL file with TargetLogger export.
msbuild.exe /logger:TargetLogger,C:\Windows\Temp\file.dll;MyParameters,Foo
- Use case
- Execute DLL
- Privileges required
- User
- Operating systems
- Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
- ATT&CK® technique
- T1127.001: MSBuild
- Tags
Execute: DLL
-
Execute JScript/VBScript code through XML/XSL Transformation. Requires Visual Studio MSBuild v14.0+.
msbuild.exe file.proj
- Use case
- Execute project file that contains XslTransformation tag parameters
- Privileges required
- User
- Operating systems
- Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
- ATT&CK® technique
- T1127.001: MSBuild
- Tags
Execute: XSL
-
By putting any valid msbuild.exe command-line options in an RSP file and calling it as above will interpret the options as if they were passed on the command line.
msbuild.exe @file.rsp
- Use case
- Bypass command-line based detections
- Privileges required
- User
- Operating systems
- Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
- ATT&CK® technique
- T1036: Masquerading
- Tags
Execute: CMD