该工具旨在通过 WinRM 双跳技术,协助利用 PowerShell Remoting / WinRM 在远程主机上执行 PowerShell 命令。
该工具假定您拥有内部网络和 CLI 访问权限。
doublehop Usage():
-c string
要执行的命令。
-j string
我们对其执行命令的目标主机。
-l string
起始跳转主机。
-m string
添加主机,以逗号分隔。格式:'host1,host2'
-p string
用户密码
-u string
格式:'DOMAIN\USER',用于身份验证的用户。
# 针对单台主机执行:
doublehop.exe -u "acme.local\pwneduser" -p "MySecurePass" -l wks01.acme.local -j server1.acme.local -c ipconfig
# 针对多台跳转系统执行:
doublehop.exe -u "acme.local\pwneduser" -p "MySecurePass" -l wks01.acme.local -m "server1.acme.local,server2.amce.local" -c ipconfig