
Un outil pour utiliser PowerShell Remoting / WinRM afin d'exécuter des commandes PowerShell sur des hôtes distants via la technique WinRM double hop.
Cet outil vise à aider à utiliser PowerShell Remoting / WinRM pour exécuter des commandes PowerShell sur des hôtes distants via la technique du double saut WinRM.
Cet outil suppose que vous avez un accès réseau interne et un accès CLI.
doublehop Usage():
-c string
Command we are executing.
-j string
Host we are executing command against.
-l string
Inital host we are jumping from.
-m string
Add hosts comma seperated. FORMAT: 'host1,host2'
-p string
Password for user
-u string
FORMAT: 'DOMAIN\USER' we are authenticating with.
# Execute against single host:
doublehop.exe -u "acme.local\pwneduser" -p "MySecurePass" -l wks01.acme.local -j server1.acme.local -c ipconfig
# Execute against multiple jump systems:
doublehop.exe -u "acme.local\pwneduser" -p "MySecurePass" -l wks01.acme.local -m "server1.acme.local,server2.amce.local" -c ipconfig