Regasm.exe

Part of .NET

Paths

  • C:\Windows\Microsoft.NET\Framework\v2.0.50727\regasm.exe
  • C:\Windows\Microsoft.NET\Framework64\v2.0.50727\regasm.exe
  • C:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm.exe
  • C:\Windows\Microsoft.NET\Framework64\v4.0.30319\regasm.exe

Commands

AWL Bypass

Loads the target .NET DLL file and executes the RegisterClass function.

Use case: Execute code and bypass Application whitelisting

Privileges: Local Admin

regasm.exe {PATH:.dll}

Execute

Loads the target .DLL file and executes the UnRegisterClass function.

Use case: Execute code and bypass Application whitelisting

Privileges: User

regasm.exe /U {PATH:.dll}

Detection

Resources