Evil-WinRM is a Ruby shell that uses PSRP against Windows Remote Management to upload tools, run in-memory PowerShell, bypass AMSI, and pass-the-hash during authorized tests.
Overview
Evil-WinRM targets Windows servers exposing WinRM, typically on port 5985, when testers hold valid credentials during post-exploitation or administrative assessments. Built atop the WinRM Ruby library’s PSRP mode, it emphasizes interactive features beyond a basic remote prompt.
Capabilities include loading in-memory PowerShell scripts, DLLs, and C# assemblies, donut-generated x64 payloads, dynamic AMSI bypass, Kerberos and pass-the-hash authentication, SSL client certificates, ETW bypass, file up/download progress bars, remote service enumeration without admin rights, tab completion for local and remote paths, command history, and optional logging.
Installation paths cover RubyGems, git clone, Bundler vendoring, or Docker images on Docker Hub. Kerberos support needs OS packages such as krb5-user on Debian derivatives. Readline-ext enables remote path completion via GNU Readline.
Legitimate sysadmins may use it for remote administration, but the feature set is oriented toward penetration testers who need scriptable, evasion-aware WinRM sessions.
Key features
- PSRP-based WinRM session shell
- In-memory PowerShell and C# loading
- Pass-the-hash and Kerberos auth
- AMSI and ETW bypass helpers
- Upload and download with progress
- Remote path tab completion
- Dockerized runtime image
- Donut payload integration
Use cases
- WinRM post-exploitation on engagements
- Pass-the-hash lateral movement tests
- Load offensive PowerShell without disk
- Enumerate services over WinRM