evil-winrm
Windows Remote Management (WinRM) shell for pentesting. tldr-pages
On several platforms 1 Sigma rule name it
Several platforms
Windows Remote Management (WinRM) shell for pentesting. Once connected, we get a PowerShell prompt on the target host.
Connect to a host and start an interactive session
evil-winrm --ip ip_address --user user --password passwordIdentifyTrips 1 Sigma rule: highLinux HackTool Execution by Nasreddine Bencherchali (Nextron Systems), Georg Lauenstein (sure[secure])
Connect to a host using pass-the-hash authentication instead of a password
evil-winrm --ip ip_address --user user --hash nt_hashIdentifyTrips 1 Sigma rule: highLinux HackTool Execution by Nasreddine Bencherchali (Nextron Systems), Georg Lauenstein (sure[secure])
Connect to a host, specifying directories for PowerShell scripts and executables
evil-winrm --ip ip_address --user user --password password --scripts path/to/scripts --executables path/to/executablesIdentifyTrips 1 Sigma rule: highLinux HackTool Execution by Nasreddine Bencherchali (Nextron Systems), Georg Lauenstein (sure[secure])
Connect to a host, using SSL
evil-winrm --ip ip_address --user user --password password --ssl --pub-key path/to/pubkey --priv-key path/to/privkeyIdentifyTrips 1 Sigma rule: highLinux HackTool Execution by Nasreddine Bencherchali (Nextron Systems), Georg Lauenstein (sure[secure])
[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 --scripts directory
script.ps1[Interactive] Invoke a binary on the host from the --executables directory
Invoke-Binary binary.exe