1.4 KiB
evil-winrm
Windows Remote Management (WinRM) shell for pentesting. Once connected, we get a PowerShell prompt on the target host. More information: https://github.com/Hackplayers/evil-winrm.
- Connect to a host and start an interactive session:
evil-winrm {{[-i|--ip]}} {{ip_address}} {{[-u|--user]}} {{user}} {{[-p|--password]}} {{password}}
- Connect to a host using pass-the-hash authentication instead of a password:
evil-winrm {{[-i|--ip]}} {{ip_address}} {{[-u|--user]}} {{user}} {{[-H|--hash]}} {{nt_hash}}
- Connect to a host, specifying directories for PowerShell scripts and executables:
evil-winrm {{[-i|--ip]}} {{ip_address}} {{[-u|--user]}} {{user}} {{[-p|--password]}} {{password}} {{[-s|--scripts]}} {{path/to/scripts}} {{[-e|--executables]}} {{path/to/executables}}
- Connect to a host, using SSL:
evil-winrm {{[-i|--ip]}} {{ip_address}} {{[-u|--user]}} {{user}} {{[-p|--password]}} {{password}} {{[-S|--ssl]}} {{[-c|--pub-key]}} {{path/to/pubkey}} {{[-k|--priv-key]}} {{path/to/privkey}}
- [Interactive] Upload a file to the host:
upload {{path/to/local_file}} {{path/to/remote_file}}
- [Interactive] List all loaded PowerShell functions:
menu
- [Interactive] Load a PowerShell script from the
--scriptsdirectory:
{{script.ps1}}
- [Interactive] Invoke a binary on the host from the
--executablesdirectory:
Invoke-Binary {{binary.exe}}