LOLBAS/OSBinaries/Msbuild.md

41 lines
985 B
Markdown
Raw Normal View History

2018-04-18 13:41:44 +00:00
## Msbuild.exe
* Functions: Execute
```
2018-04-18 21:12:38 +00:00
msbuild.exe pshell.xml
msbuild.exe Msbuild.csproj
2018-04-18 13:41:44 +00:00
```
Acknowledgements:
* Casey Smith - @subtee
2018-04-18 21:12:38 +00:00
* Cn33liz - @Cneelis
2018-04-18 13:41:44 +00:00
2018-04-18 21:12:38 +00:00
Code sample:
* [Msbuild.csproj](Payload/Msbuild.csproj)
Resources:
* https://github.com/redcanaryco/atomic-red-team/blob/master/Windows/Execution/Trusted_Developer_Utilities.md
* https://github.com/Cn33liz/MSBuildShell
* https://pentestlab.blog/2017/05/29/applocker-bypass-msbuild/
* https://oddvar.moe/2017/12/13/applocker-case-study-how-insecure-is-it-really-part-1/
Full path:
```
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Msbuild.exe
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Msbuild.exe
C:\Windows\Microsoft.NET\Framework\v3.5\Msbuild.exe
C:\Windows\Microsoft.NET\Framework64\v3.5\Msbuild.exe
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Msbuild.exe
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Msbuild.exe
```
Notes:
Example code borrowed from Red Canary - Atomic Red Team.
2018-04-18 13:41:44 +00:00