pentesting, updated
evil-winrm
Interactive Windows Remote Management (WinRM) shell client, the standard way to get a session with a valid credential or hash.
What it’s for
Open an interactive PowerShell session on a remote Windows host over WinRM, using a password, NTLM hash, or Kerberos ticket.
Install
gem install evil-winrm
Common commands
evil-winrm -i 10.10.10.6 -u jdoe -p Password1 # password auth
evil-winrm -i 10.10.10.6 -u administrator -H <NTLM hash> # pass-the-hash
evil-winrm -i 10.10.10.6 -u jdoe -p Password1 -s ./scripts # auto-load a local PowerShell scripts folder
upload local.exe C:\Users\Public\local.exe # file upload, from inside the session
menu # list built-in helper functions (Bypass-4MSI etc.)
Useful flags
| Flag | Effect |
|---|---|
-u / -p | Username / password |
-H | NTLM hash (pass-the-hash) |
-s | Local scripts directory, auto-loaded as PowerShell functions |
-e | Local executables directory for the menu helper |
Notes
Requires WinRM (port 5985/5986) enabled and reachable — not present on every host by default, unlike SMB.