🛠️ 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.
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 - CicadaTuesday, July 21st 2026, 2:55:20 am
HTB - SaunaTuesday, July 21st 2026, 4:41:17 am

References: Evil-WinRM GitHub