Setupapi.dll

Windows Setup Application Programming Interface

Paths

  • c:\windows\system32\setupapi.dll
  • c:\windows\syswow64\setupapi.dll

Commands

AWL Bypass

Execute the specified (local or remote) .wsh/.sct script with scrobj.dll in the .inf file by calling an information file directive (section name specified).

Use case: Run local or remote script(let) code through INF file specification.

Privileges: User

rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 128 {PATH_ABSOLUTE:.inf}

Execute

Launch an executable file via the InstallHinfSection function and .inf file section directive.

Use case: Load an executable payload.

Privileges: User

rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 128 {PATH_ABSOLUTE:.inf}

Detection

Resources