A collection of proof-of-concept source code and scripts for executing remote commands over WinRM using the WSMan.Automation COM object
A collection of proof-of-concept source code and scripts for executing remote commands over WinRM using the WSMan.Automation COM object.
For background information, please refer to the following blog post: WS-Management COM: Another Approach for WinRM Lateral Movement
Usage: SharpWSManWinRM.exe Usage: SharpWSManWinRM.exeExample: SharpWSManWinRM.exe host.domain.local notepad.exe Example: SharpWSManWinRM.exe host.domain.local "cmd /c notepad.exe" domain\joe.user [email protected]
Usage: Invoke-WSManWinRM -hostname -command Usage: Invoke-WSManWinRM -hostname -command -user -passwordExample: import-module .\WSManWinRM.ps1 Invoke-WSManWinRM -hostname MyServer.domain.local -command calc.exe Example: import-module .\WSManWinRM.ps1 Invoke-WSManWinRM -hostname MyServer.domain.local -command calc.exe -user domain\joe.user -password [email protected]
Usage: cscript.exe SharpWSManWinRM.vbs Usage: cscript.exe SharpWSManWinRM.vbsExample: cscript.exe SharpWSManWinRM.vbs host.domain.local notepad.exe Example: cscript.exe SharpWSManWinRM.vbs host.domain.local "cmd /c notepad.exe" domain\joe.user [email protected]
Usage: cscript.exe SharpWSManWinRM.js Usage: cscript.exe SharpWSManWinRM.jsExample: cscript.exe SharpWSManWinRM.js host.domain.local notepad.exe Example: cscript.exe SharpWSManWinRM.js host.domain.local "cmd /c notepad.exe" domain\joe.user [email protected]
Usage: CppWSManWinRM.exeExample: CppWSManWinRM.exe host.domain.local notepad.exe
Note: Username/password option does not work yet
WSMan-WinRM is designed to help security professionals perform ethical and legal security assessments and penetration tests. Do not use for nefarious purposes.