Dotnet.exe

dotnet.exe comes with .NET Framework

Paths

  • C:\Program Files\dotnet\dotnet.exe

Commands

AWL Bypass

dotnet.exe will execute any DLL even if applocker is enabled.

Use case: Execute code bypassing AWL

Privileges: User

dotnet.exe {PATH:.dll}

Execute

dotnet.exe will execute any DLL.

Use case: Execute DLL

Privileges: User

dotnet.exe {PATH:.dll}

Execute

dotnet.exe will open a console which allows for the execution of arbitrary F# commands

Use case: Execute arbitrary F# code

Privileges: User

dotnet.exe fsi

AWL Bypass

dotnet.exe with msbuild (SDK Version) will execute unsigned code

Use case: Execute code bypassing AWL

Privileges: User

dotnet.exe msbuild {PATH:.csproj}

Detection

Resources