hydra -hDisplays the main help menu and list of supported protocols.
A fast, parallel online login brute-forcer supporting SSH, FTP, HTTP forms, SMB, RDP, databases and dozens more protocols.
sudo apt install hydrahydra -hDisplays the main help menu and list of supported protocols.
hydra -L users.txt -p password ssh://127.0.0.1Tests a list of usernames against a single fixed password.
hydra -l admin -P passwords.txt ssh://127.0.0.1Tests a single username against a wordlist of passwords.
hydra -L users.txt -P passwords.txt ssh://127.0.0.1Performs a full matrix attack using both a username list and a password list.
hydra -C creds.txt ssh://127.0.0.1Uses a colon-separated credentials file (user:pass) instead of separate lists.
hydra -M targets.txt -l admin -P passwords.txt sshAttacks a list of target IPs provided in a file.
hydra -l admin -P passwords.txt rdp://127.0.0.1Tests credentials against Remote Desktop Protocol (RDP).
hydra -l admin -P passwords.txt smb://127.0.0.1Tests credentials against Server Message Block (SMB).
hydra -P passwords.txt vnc://127.0.0.1Tests passwords against VNC (which typically only requires a password).
hydra -l root -P passwords.txt mysql://127.0.0.1Tests credentials against a MySQL database server.
hydra -l postgres -P passwords.txt postgres://127.0.0.1Tests credentials against a PostgreSQL database server.
hydra -P passwords.txt redis://127.0.0.1Tests passwords against a Redis instance.
hydra -P communities.txt snmp://127.0.0.1Tests for valid SNMP community strings using the password list.
hydra -l admin -P passwords.txt http-get://127.0.0.1/adminTests Basic Auth on a specific path using HTTP GET.
hydra -S -l admin -P passwords.txt https-get://127.0.0.1/adminEnables SSL/TLS explicitly for the connection using the -S flag.
hydra -l admin -P passwords.txt 127.0.0.1 http-post-form "/login.php:user=^USER^&pass=^PASS^:F=Login failed"Attacks an HTTP POST login form by defining the path, body parameters, and a failure string.
hydra -l admin -P passwords.txt 127.0.0.1 http-post-form "/login.php:u=^USER^&p=^PASS^:S=Welcome back"Attacks an HTTP POST login form using a Success string (S=) match instead of failure.
hydra -l admin -P pass.txt 127.0.0.1 http-post-form "/api/login:user=^USER^&pass=^PASS^:F=fail:H=X-Custom-Header: value"Injects a custom HTTP header into the request using the H= parameter.
hydra -v -l admin -P passwords.txt ssh://127.0.0.1Enables verbose mode to show login attempts and errors.
hydra -V -l admin -P passwords.txt ssh://127.0.0.1Enables debug mode showing username/password combinations as they are tried.
hydra -o results.txt -l admin -P passwords.txt ssh://127.0.0.1Writes the valid found pairs to a text file.
hydra -o results.json -b json -l admin -P passwords.txt ssh://127.0.0.1Outputs the results in JSON format for easier parsing by other tools.
hydra -RRestores a previously aborted session using the hydra.restore file.
hydra -x http:127.0.0.1:8080 -l admin -P passwords.txt http-get://test.labRoutes the attack traffic through an HTTP proxy.
hydra -x socks5:127.0.0.1:9050 -l admin -P passwords.txt ssh://test.labRoutes the attack traffic through a SOCKS5 proxy (e.g., Tor).
hydra -x socks5:user:pass@127.0.0.1:1080 -l admin -P pass.txt ssh://test.labRoutes traffic through an authenticated SOCKS5 proxy.
hydra -m /path/to/key -l user -P pass.txt ssh://127.0.0.1Uses the -m flag to pass module-specific options (e.g., SSH private key path).
hydra -l admin -p password -u ssh://127.0.0.1Loops across usernames (-u) checking all passwords for one user before moving to next.
hydra -e n -l admin -P passwords.txt ssh://127.0.0.1Specifically adds a check for a null (empty) password.
hydra -e s -l admin -P passwords.txt ssh://127.0.0.1Adds a check where the password is the same as the username.
hydra -e r -l admin -P passwords.txt ssh://127.0.0.1Adds a check where the password is the username reversed.
hydra -e nsr -l admin -P passwords.txt ssh://127.0.0.1Checks null, same-as-user, and reverse-user passwords in addition to the wordlist.
hydra -l user -P pass.txt smtp-enum://127.0.0.1Uses the SMTP VRFY command to enumerate valid users before attacking.
hydra -P passwords.txt cisco-enable://127.0.0.1Targets the enable password on Cisco devices.
hydra -l admin -P pass.txt ldap://127.0.0.1Tests credentials against an LDAP directory service.
hydra -l admin -P pass.txt oracle-listener://127.0.0.1Targets the Oracle TNS listener.
hydra -t 1 -W 10 -f -l admin -P top10.txt ssh://127.0.0.1Simulates a stealthy low-and-slow attack using very few threads and long waits.
hydra -t 64 -l admin -P rockyou.txt ssh://127.0.0.1Simulates a noisy, high-velocity brute force to test IDS/IPS triggering.
hydra -l admin -P pass.txt -w 1 http-get://127.0.0.1/ -H "User-Agent: Mozilla/5.0"Spoofs the User-Agent header to bypass simple WAF filtering or look legitimate.
hydra -U -m /path/to/passwords ssh://127.0.0.1Prints the service module details without running the attack (-U).
hydra -l admin -P massive_list.txt ssh://127.0.0.1Combines with OS 'timeout' to limit attack duration during automated testing.
Example
timeout 60s hydra -l admin -P massive_list.txt ssh://127.0.0.1hydra -l user -P pass.txt ftp://127.0.0.1 -vVVerbose FTP attack to debug connection or protocol handshake issues.
hydra -l user -P pass.txt socks5://127.0.0.1Attacks the credentials of the SOCKS proxy server itself.
hydra -l root -P pass.txt telnet://127.0.0.1Tests credentials on legacy Telnet services.
hydra -l admin -P pass.txt teamcity://127.0.0.1Targets JetBrains TeamCity build servers.
hydra -l administrator@vsphere.local -P pass.txt vcenter://127.0.0.1Targets VMware vCenter authentication.
hydra -l admin -P pass.txt svn://127.0.0.1Tests credentials against an SVN repository.
hydra -l user -P pass.txt irc://127.0.0.1Attacks IRC server passwords.
hydra -P pass.txt pcanywhere://127.0.0.1Targets legacy PC Anywhere remote access services.
hydra -l root -P pass.txt rexec://127.0.0.1Targets remote execution services.
hydra -l root -P pass.txt rlogin://127.0.0.1Targets the legacy rlogin protocol.
hydra -l 1001 -P pass.txt sip://127.0.0.1Tests credentials on SIP-based VoIP servers.
HYDRA_PROXY_HTTP=http://127.0.0.1:8080 hydra -l u -P p.txt ssh://targetUses environment variables to configure proxy settings outside the command flags.
hydra -t 1 -w 15 -f -l admin -P pass.txt ssh://127.0.0.1Extreme slow-roll configuration to attempt bypassing account lockout policies.
hydra -l admin -P pass.txt -o /tmp/audit.json -b json ssh://127.0.0.1 > /dev/nullRun silently in CI/CD, outputting only a JSON artifact.
hydra -l Administrator -P pass.txt smb://127.0.0.1 -m smb2Forces SMB version 2 for Windows authentication testing.
hydra -l admin -p password -s 22 ssh://127.0.0.1 -vManual verification of a single credential with verbose output to confirm access.
hydra -l user -P pass.txt http-post-form "/login.php:user=^USER^&pass=^PASS^:F=Error" -c 30Limits the wait time for socket connections to 30 seconds using -c.
A speedy, parallel, modular login brute-forcer — an alternative to Hydra with thread-per-host design.
Nmap project’s high-speed network authentication cracker for RDP, SSH, SMB, FTP and other services, with timing controls.
A modular, highly configurable multi-purpose brute-forcer with fine-grained control over responses and retries.
A fast Go tool for Kerberos pre-authentication: username enumeration and password spraying against a domain controller, with no Windows event 4625 noise.