WinRM shell for remote Windows administration and post-exploitation, supporting plaintext, pass-the-hash, and Kerberos PKINIT authentication.
evil-winrm -i {target} -u {username} -p {password} ๐ target โ ip ๐ username โ user ๐ password evil-winrm -i {target} -u {username} -p {password} Sandbox: execFile · Timeout: 300s
security.exec.winrm security.credential.pth security.lateral.winrm security.ad.krbauth | Name | Type | Required | Default | Description | Aliases |
|---|---|---|---|---|---|
target | string | Yes | - | Target IP address or hostname | - |
username | string | Yes | - | Username for authentication | - |
password | string | No | - | Password for plaintext auth | - |
hash | string | No | - | NTLM hash for pass-the-hash | - |
certificate | file | No | - | Public certificate file (PKINIT) | - |
private-key | file | No | - | Private key file (PKINIT) | - |
Inputs
network.target.ip Target IP address
credential.username Windows username
credential.password Plaintext password or NTLM hash
Outputs
shell.session Interactive WinRM shell session
network_trafficraw_socket_access Produces
shell.sessionConsumes
network.target.ipcredential.usernamecredential.password| Resource | Value |
|---|---|
| CPU | low |
| Memory | 64 MB |
| Network | low |
| Disk I/O | low |
Basic WinRM shell with password authentication
evil-winrm -i 10.10.10.1 -u john -p password123 Pass-the-hash authentication
evil-winrm -i 10.10.10.1 -u john -H <NThash> PKINIT certificate authentication
evil-winrm -i 10.10.10.1 -c pub.pem -k priv.pem -S -r EVILCORP Authentication with SSL and relay domain
evil-winrm -i {{DOMAIN}} -u {{USER}} -p '{{PASSWORD}}' Kerberos-based authentication
evil-winrm -i {{DC.DOMAIN}} -k -u {{USER}} -r {{DOMAIN}} evil-winrm provides an interactive PowerShell session on Windows targets via WinRM. It supports multiple authentication methods including plaintext, pass-the-hash (NTLM), and Kerberos PKINIT.
| Method | Flags | Use Case |
|---|---|---|
| Password | -u user -p pass |
Plaintext credentials |
| Pass-the-Hash | -u user -H <NThash> |
NTLM hash without password |
| PKINIT | -c cert -k key -r domain |
Certificate-based authentication |