ports/5985
5985/tcp
WinRM · Windows Remote Management
PowerShell remoting over HTTP. With a valid login for a member of Remote Management Users (or a local admin) it gives a clean, scriptable shell — the usual payoff once you've recovered a credential.
ProtocolTCP
Servicewsman
Also on5986/tcp (HTTPS)
Default onWindows servers
AuthNTLM, Kerberos
01
Enumerate
start hereConfirm the credential works, then open a shell.
# can this account log in over WinRM? nxc winrm $IP -u $USER -p $PASS # interactive shell (password or -H for a hash) evil-winrm -i $IP -u $USER -p $PASS
02
Weaknesses
check each one CHECK HOW TO TELL WHAT IT GIVES YOU
Account in Remote Management Users
nxc winrm shows (Pwn3d!) Interactive PowerShell shell Pass-the-hash accepted
evil-winrm -H works with an NTLM hash Shell without the plaintext password WinRM is where a recovered credential becomes a comfortable shell. There’s little to exploit in the protocol itself — the question is simply which accounts are allowed to use it, and whether it accepts a hash in place of a password.