🛠️ Evil-WinRM

Installation

gem install evil-winrm

Common Commands

CommandDescription
evil-winrm -i <target> -u <user> -p '<pass>'Open an interactive WinRM shell with a password.
evil-winrm -i <target> -u <user> -H '<nt_hash>'Pass-the-hash into a WinRM shell instead of a password.
evil-winrm -i <target> -c cert.pem -k key.pem -SAuthenticate over WinRM’s SSL listener (port 5986) using a client certificate/private key instead of any password — -S selects SSL.
upload <local_path> <remote_path>(inside the shell) Upload a file to the target.
download <remote_path> <local_path>(inside the shell) Download a file from the target.
menu(inside the shell) List loaded PowerShell helper functions (AMSI bypass, etc.).

Tips & Tricks

  • download/upload work over the existing WinRM channel — no need to stand up a separate SMB share or HTTP server just to move a file (e.g. pulling back SAM/SYSTEM hive dumps after a Active Directory - SeBackupPrivilege Abuse).
  • If NTLM auth is disabled on the target domain, evil-winrm has no built-in Kerberos support — use impacket-wmiexec/impacket-psexec with -k, or evil-winrm’s --realm/Kerberos ticket flags in newer versions instead.
FileCreated
HTB Machine - AdministratorWednesday, July 22nd 2026, 5:00:00 am
HTB Machine - AuthorityJuly 23, 2026
HTB Machine - CertifiedJuly 23, 2026
HTB Machine - CicadaTuesday, July 21st 2026, 2:55:20 am
HTB Machine - DriverJuly 24, 2026
HTB Machine - EscapeTwoThursday, July 23rd 2026, 10:31:00 pm
HTB Machine - ReturnWednesday, July 22nd 2026, 2:55:00 am
HTB Machine - SaunaTuesday, July 21st 2026, 4:41:17 am
HTB Machine - SupportJuly 22, 2026
HTB Machine - TimelapseFriday, July 24th 2026, 12:47:06 am

References: Evil-WinRM GitHub