{"tool":"hydra","name":"Hydra","description":"A fast, parallel online login brute-forcer supporting SSH, FTP, HTTP forms, SMB, RDP, databases and dozens more protocols.","tags":["brute force","online attacks","authentication"],"homepage":"https://github.com/vanhauser-thc/thc-hydra","docs":"https://github.com/vanhauser-thc/thc-hydra#readme","install":{"apt":"sudo apt install hydra","brew":"brew install hydra"},"related":["medusa","ncrack","patator"],"total_commands":75,"commands":[{"id":1,"category":"Basic Syntax","command":"hydra -h","example":"hydra -h","explanation":"Displays the main help menu and list of supported protocols."},{"id":2,"category":"Basic Credential Testing","command":"hydra -l admin -p password ssh://127.0.0.1","example":"hydra -l admin -p password ssh://127.0.0.1","explanation":"Tests a single username and single password against an SSH service."},{"id":3,"category":"Basic Credential Testing","command":"hydra -l root -p toor ftp://127.0.0.1","example":"hydra -l root -p toor ftp://127.0.0.1","explanation":"Tests a single username and password against an FTP service."},{"id":4,"category":"Target Specification","command":"hydra -l admin -p password ssh://127.0.0.1:2222","example":"hydra -l admin -p password ssh://127.0.0.1:2222","explanation":"Targets a service running on a non-standard port using URI syntax."},{"id":5,"category":"Target Specification","command":"hydra -l admin -p password -s 2222 127.0.0.1 ssh","example":"hydra -l admin -p password -s 2222 127.0.0.1 ssh","explanation":"Targets a service on a non-standard port using the -s flag."},{"id":6,"category":"Username and Password Handling","command":"hydra -L users.txt -p password ssh://127.0.0.1","example":"hydra -L users.txt -p password ssh://127.0.0.1","explanation":"Tests a list of usernames against a single fixed password."},{"id":7,"category":"Username and Password Handling","command":"hydra -l admin -P passwords.txt ssh://127.0.0.1","example":"hydra -l admin -P passwords.txt ssh://127.0.0.1","explanation":"Tests a single username against a wordlist of passwords."},{"id":8,"category":"Username and Password Handling","command":"hydra -L users.txt -P passwords.txt ssh://127.0.0.1","example":"hydra -L users.txt -P passwords.txt ssh://127.0.0.1","explanation":"Performs a full matrix attack using both a username list and a password list."},{"id":9,"category":"Username and Password Handling","command":"hydra -C creds.txt ssh://127.0.0.1","example":"hydra -C creds.txt ssh://127.0.0.1","explanation":"Uses a colon-separated credentials file (user:pass) instead of separate lists."},{"id":10,"category":"Password Generation","command":"hydra -l admin -x 4:4:a ssh://127.0.0.1","example":"hydra -l admin -x 4:4:a ssh://127.0.0.1","explanation":"Generates passwords on the fly (4 chars, lowercase only) instead of using a wordlist."},{"id":11,"category":"Password Generation","command":"hydra -l admin -x 4:6:a1 ssh://127.0.0.1","example":"hydra -l admin -x 4:6:a1 ssh://127.0.0.1","explanation":"Generates passwords from length 4 to 6 using lowercase letters and numbers."},{"id":12,"category":"Target Lists","command":"hydra -M targets.txt -l admin -P passwords.txt ssh","example":"hydra -M targets.txt -l admin -P passwords.txt ssh","explanation":"Attacks a list of target IPs provided in a file."},{"id":13,"category":"Protocol Specific: RDP","command":"hydra -l admin -P passwords.txt rdp://127.0.0.1","example":"hydra -l admin -P passwords.txt rdp://127.0.0.1","explanation":"Tests credentials against Remote Desktop Protocol (RDP)."},{"id":14,"category":"Protocol Specific: SMB","command":"hydra -l admin -P passwords.txt smb://127.0.0.1","example":"hydra -l admin -P passwords.txt smb://127.0.0.1","explanation":"Tests credentials against Server Message Block (SMB)."},{"id":15,"category":"Protocol Specific: VNC","command":"hydra -P passwords.txt vnc://127.0.0.1","example":"hydra -P passwords.txt vnc://127.0.0.1","explanation":"Tests passwords against VNC (which typically only requires a password)."},{"id":16,"category":"Protocol Specific: Databases","command":"hydra -l root -P passwords.txt mysql://127.0.0.1","example":"hydra -l root -P passwords.txt mysql://127.0.0.1","explanation":"Tests credentials against a MySQL database server."},{"id":17,"category":"Protocol Specific: Databases","command":"hydra -l postgres -P passwords.txt postgres://127.0.0.1","example":"hydra -l postgres -P passwords.txt postgres://127.0.0.1","explanation":"Tests credentials against a PostgreSQL database server."},{"id":18,"category":"Protocol Specific: Databases","command":"hydra -P passwords.txt redis://127.0.0.1","example":"hydra -P passwords.txt redis://127.0.0.1","explanation":"Tests passwords against a Redis instance."},{"id":19,"category":"Protocol Specific: SNMP","command":"hydra -P communities.txt snmp://127.0.0.1","example":"hydra -P communities.txt snmp://127.0.0.1","explanation":"Tests for valid SNMP community strings using the password list."},{"id":20,"category":"HTTP Authentication","command":"hydra -l admin -P passwords.txt http-get://127.0.0.1/admin","example":"hydra -l admin -P passwords.txt http-get://127.0.0.1/admin","explanation":"Tests Basic Auth on a specific path using HTTP GET."},{"id":21,"category":"SSL/TLS Support","command":"hydra -S -l admin -P passwords.txt https-get://127.0.0.1/admin","example":"hydra -S -l admin -P passwords.txt https-get://127.0.0.1/admin","explanation":"Enables SSL/TLS explicitly for the connection using the -S flag."},{"id":22,"category":"HTTP Form Authentication","command":"hydra -l admin -P passwords.txt 127.0.0.1 http-post-form \"/login.php:user=^USER^&pass=^PASS^:F=Login failed\"","example":"hydra -l admin -P passwords.txt 127.0.0.1 http-post-form \"/login.php:user=^USER^&pass=^PASS^:F=Login failed\"","explanation":"Attacks an HTTP POST login form by defining the path, body parameters, and a failure string."},{"id":23,"category":"HTTP Form Authentication","command":"hydra -l admin -P passwords.txt 127.0.0.1 http-post-form \"/login.php:u=^USER^&p=^PASS^:S=Welcome back\"","example":"hydra -l admin -P passwords.txt 127.0.0.1 http-post-form \"/login.php:u=^USER^&p=^PASS^:S=Welcome back\"","explanation":"Attacks an HTTP POST login form using a Success string (S=) match instead of failure."},{"id":24,"category":"HTTP Header Manipulation","command":"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\"","example":"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\"","explanation":"Injects a custom HTTP header into the request using the H= parameter."},{"id":25,"category":"HTTP Cookie Handling","command":"hydra -l admin -P pass.txt 127.0.0.1 http-post-form \"/login:u=^USER^&p=^PASS^:F=Bad:H=Cookie: session=123\"","example":"hydra -l admin -P pass.txt 127.0.0.1 http-post-form \"/login:u=^USER^&p=^PASS^:F=Bad:H=Cookie: session=123\"","explanation":"Passes a specific session cookie in the headers during the attack."},{"id":26,"category":"Performance Tuning","command":"hydra -t 1 -l admin -P passwords.txt ssh://127.0.0.1","example":"hydra -t 1 -l admin -P passwords.txt ssh://127.0.0.1","explanation":"Limits the attack to exactly 1 task (thread) to reduce server load."},{"id":27,"category":"Performance Tuning","command":"hydra -t 32 -l admin -P passwords.txt ssh://127.0.0.1","example":"hydra -t 32 -l admin -P passwords.txt ssh://127.0.0.1","explanation":"Increases parallelism to 32 tasks for faster scanning on capable networks."},{"id":28,"category":"Rate Limiting","command":"hydra -w 5 -l admin -P passwords.txt ssh://127.0.0.1","example":"hydra -w 5 -l admin -P passwords.txt ssh://127.0.0.1","explanation":"Waits 5 seconds between connection attempts to evade simple rate limits."},{"id":29,"category":"Rate Limiting","command":"hydra -W 2 -l admin -P passwords.txt ssh://127.0.0.1","example":"hydra -W 2 -l admin -P passwords.txt ssh://127.0.0.1","explanation":"Adds a random wait time (up to 2 seconds) between connects."},{"id":30,"category":"Logging and Output","command":"hydra -v -l admin -P passwords.txt ssh://127.0.0.1","example":"hydra -v -l admin -P passwords.txt ssh://127.0.0.1","explanation":"Enables verbose mode to show login attempts and errors."},{"id":31,"category":"Logging and Output","command":"hydra -V -l admin -P passwords.txt ssh://127.0.0.1","example":"hydra -V -l admin -P passwords.txt ssh://127.0.0.1","explanation":"Enables debug mode showing username/password combinations as they are tried."},{"id":32,"category":"Logging and Output","command":"hydra -o results.txt -l admin -P passwords.txt ssh://127.0.0.1","example":"hydra -o results.txt -l admin -P passwords.txt ssh://127.0.0.1","explanation":"Writes the valid found pairs to a text file."},{"id":33,"category":"Logging and Output","command":"hydra -o results.json -b json -l admin -P passwords.txt ssh://127.0.0.1","example":"hydra -o results.json -b json -l admin -P passwords.txt ssh://127.0.0.1","explanation":"Outputs the results in JSON format for easier parsing by other tools."},{"id":34,"category":"Session Management","command":"hydra -R","example":"hydra -R","explanation":"Restores a previously aborted session using the hydra.restore file."},{"id":35,"category":"Advanced Networking","command":"hydra -4 -l admin -P passwords.txt ssh://127.0.0.1","example":"hydra -4 -l admin -P passwords.txt ssh://127.0.0.1","explanation":"Forces the use of IPv4 addresses only."},{"id":36,"category":"Advanced Networking","command":"hydra -6 -l admin -P passwords.txt ssh://[::1]","example":"hydra -6 -l admin -P passwords.txt ssh://[::1]","explanation":"Forces the use of IPv6 addresses only."},{"id":37,"category":"Proxy Usage","command":"hydra -x http:127.0.0.1:8080 -l admin -P passwords.txt http-get://test.lab","example":"hydra -x http:127.0.0.1:8080 -l admin -P passwords.txt http-get://test.lab","explanation":"Routes the attack traffic through an HTTP proxy."},{"id":38,"category":"Proxy Usage","command":"hydra -x socks5:127.0.0.1:9050 -l admin -P passwords.txt ssh://test.lab","example":"hydra -x socks5:127.0.0.1:9050 -l admin -P passwords.txt ssh://test.lab","explanation":"Routes the attack traffic through a SOCKS5 proxy (e.g., Tor)."},{"id":39,"category":"Proxy Usage","command":"hydra -x socks5:user:pass@127.0.0.1:1080 -l admin -P pass.txt ssh://test.lab","example":"hydra -x socks5:user:pass@127.0.0.1:1080 -l admin -P pass.txt ssh://test.lab","explanation":"Routes traffic through an authenticated SOCKS5 proxy."},{"id":40,"category":"Module Options","command":"hydra -m /path/to/key -l user -P pass.txt ssh://127.0.0.1","example":"hydra -m /path/to/key -l user -P pass.txt ssh://127.0.0.1","explanation":"Uses the -m flag to pass module-specific options (e.g., SSH private key path)."},{"id":41,"category":"Exit Conditions","command":"hydra -f -l admin -P passwords.txt ssh://127.0.0.1","example":"hydra -f -l admin -P passwords.txt ssh://127.0.0.1","explanation":"Exits immediately after the first valid credential pair is found."},{"id":42,"category":"Exit Conditions","command":"hydra -F -L users.txt -P passwords.txt ssh://127.0.0.1","example":"hydra -F -L users.txt -P passwords.txt ssh://127.0.0.1","explanation":"Stops the entire audit (all targets) after finding any valid credential."},{"id":43,"category":"Looping","command":"hydra -l admin -p password -u ssh://127.0.0.1","example":"hydra -l admin -p password -u ssh://127.0.0.1","explanation":"Loops across usernames (-u) checking all passwords for one user before moving to next."},{"id":44,"category":"Null Password Checks","command":"hydra -e n -l admin -P passwords.txt ssh://127.0.0.1","example":"hydra -e n -l admin -P passwords.txt ssh://127.0.0.1","explanation":"Specifically adds a check for a null (empty) password."},{"id":45,"category":"Same-as-Login Checks","command":"hydra -e s -l admin -P passwords.txt ssh://127.0.0.1","example":"hydra -e s -l admin -P passwords.txt ssh://127.0.0.1","explanation":"Adds a check where the password is the same as the username."},{"id":46,"category":"Reverse Login Checks","command":"hydra -e r -l admin -P passwords.txt ssh://127.0.0.1","example":"hydra -e r -l admin -P passwords.txt ssh://127.0.0.1","explanation":"Adds a check where the password is the username reversed."},{"id":47,"category":"Comprehensive Checks","command":"hydra -e nsr -l admin -P passwords.txt ssh://127.0.0.1","example":"hydra -e nsr -l admin -P passwords.txt ssh://127.0.0.1","explanation":"Checks null, same-as-user, and reverse-user passwords in addition to the wordlist."},{"id":48,"category":"SMTP Enumeration","command":"hydra -l user -P pass.txt smtp-enum://127.0.0.1","example":"hydra -l user -P pass.txt smtp-enum://127.0.0.1","explanation":"Uses the SMTP VRFY command to enumerate valid users before attacking."},{"id":49,"category":"Cisco Enable","command":"hydra -P passwords.txt cisco-enable://127.0.0.1","example":"hydra -P passwords.txt cisco-enable://127.0.0.1","explanation":"Targets the enable password on Cisco devices."},{"id":50,"category":"LDAP Authentication","command":"hydra -l admin -P pass.txt ldap://127.0.0.1","example":"hydra -l admin -P pass.txt ldap://127.0.0.1","explanation":"Tests credentials against an LDAP directory service."},{"id":51,"category":"Oracle Listener","command":"hydra -l admin -P pass.txt oracle-listener://127.0.0.1","example":"hydra -l admin -P pass.txt oracle-listener://127.0.0.1","explanation":"Targets the Oracle TNS listener."},{"id":52,"category":"Red Team Simulation","command":"hydra -t 1 -W 10 -f -l admin -P top10.txt ssh://127.0.0.1","example":"hydra -t 1 -W 10 -f -l admin -P top10.txt ssh://127.0.0.1","explanation":"Simulates a stealthy low-and-slow attack using very few threads and long waits."},{"id":53,"category":"Blue Team Validation","command":"hydra -t 64 -l admin -P rockyou.txt ssh://127.0.0.1","example":"hydra -t 64 -l admin -P rockyou.txt ssh://127.0.0.1","explanation":"Simulates a noisy, high-velocity brute force to test IDS/IPS triggering."},{"id":54,"category":"User-Agent Spoofing","command":"hydra -l admin -P pass.txt -w 1 http-get://127.0.0.1/ -H \"User-Agent: Mozilla/5.0\"","example":"hydra -l admin -P pass.txt -w 1 http-get://127.0.0.1/ -H \"User-Agent: Mozilla/5.0\"","explanation":"Spoofs the User-Agent header to bypass simple WAF filtering or look legitimate."},{"id":55,"category":"Service Scan Verification","command":"hydra -U -m /path/to/passwords ssh://127.0.0.1","example":"hydra -U -m /path/to/passwords ssh://127.0.0.1","explanation":"Prints the service module details without running the attack (-U)."},{"id":56,"category":"Time-based Termination","command":"hydra -l admin -P massive_list.txt ssh://127.0.0.1","example":"timeout 60s hydra -l admin -P massive_list.txt ssh://127.0.0.1","explanation":"Combines with OS 'timeout' to limit attack duration during automated testing."},{"id":57,"category":"FTP Specifics","command":"hydra -l user -P pass.txt ftp://127.0.0.1 -vV","example":"hydra -l user -P pass.txt ftp://127.0.0.1 -vV","explanation":"Verbose FTP attack to debug connection or protocol handshake issues."},{"id":58,"category":"IMAP/POP3 Mail","command":"hydra -l user -P pass.txt imap://127.0.0.1","example":"hydra -l user -P pass.txt imap://127.0.0.1","explanation":"Tests credentials against an IMAP mail server."},{"id":59,"category":"IMAP/POP3 Mail","command":"hydra -l user -P pass.txt pop3://127.0.0.1","example":"hydra -l user -P pass.txt pop3://127.0.0.1","explanation":"Tests credentials against a POP3 mail server."},{"id":60,"category":"SOCKS Proxy Attack","command":"hydra -l user -P pass.txt socks5://127.0.0.1","example":"hydra -l user -P pass.txt socks5://127.0.0.1","explanation":"Attacks the credentials of the SOCKS proxy server itself."},{"id":61,"category":"Telnet Legacy","command":"hydra -l root -P pass.txt telnet://127.0.0.1","example":"hydra -l root -P pass.txt telnet://127.0.0.1","explanation":"Tests credentials on legacy Telnet services."},{"id":62,"category":"TeamCity/CI CD","command":"hydra -l admin -P pass.txt teamcity://127.0.0.1","example":"hydra -l admin -P pass.txt teamcity://127.0.0.1","explanation":"Targets JetBrains TeamCity build servers."},{"id":63,"category":"VMware vCenter","command":"hydra -l administrator@vsphere.local -P pass.txt vcenter://127.0.0.1","example":"hydra -l administrator@vsphere.local -P pass.txt vcenter://127.0.0.1","explanation":"Targets VMware vCenter authentication."},{"id":64,"category":"Subversion (SVN)","command":"hydra -l admin -P pass.txt svn://127.0.0.1","example":"hydra -l admin -P pass.txt svn://127.0.0.1","explanation":"Tests credentials against an SVN repository."},{"id":65,"category":"IRC Authentication","command":"hydra -l user -P pass.txt irc://127.0.0.1","example":"hydra -l user -P pass.txt irc://127.0.0.1","explanation":"Attacks IRC server passwords."},{"id":66,"category":"PC Anywhere","command":"hydra -P pass.txt pcanywhere://127.0.0.1","example":"hydra -P pass.txt pcanywhere://127.0.0.1","explanation":"Targets legacy PC Anywhere remote access services."},{"id":67,"category":"RSH/Rexec","command":"hydra -l root -P pass.txt rexec://127.0.0.1","example":"hydra -l root -P pass.txt rexec://127.0.0.1","explanation":"Targets remote execution services."},{"id":68,"category":"Rlogin","command":"hydra -l root -P pass.txt rlogin://127.0.0.1","example":"hydra -l root -P pass.txt rlogin://127.0.0.1","explanation":"Targets the legacy rlogin protocol."},{"id":69,"category":"SIP/VoIP","command":"hydra -l 1001 -P pass.txt sip://127.0.0.1","example":"hydra -l 1001 -P pass.txt sip://127.0.0.1","explanation":"Tests credentials on SIP-based VoIP servers."},{"id":70,"category":"Environment Variable Input","command":"HYDRA_PROXY_HTTP=http://127.0.0.1:8080 hydra -l u -P p.txt ssh://target","example":"HYDRA_PROXY_HTTP=http://127.0.0.1:8080 hydra -l u -P p.txt ssh://target","explanation":"Uses environment variables to configure proxy settings outside the command flags."},{"id":71,"category":"Detection Evasion","command":"hydra -t 1 -w 15 -f -l admin -P pass.txt ssh://127.0.0.1","example":"hydra -t 1 -w 15 -f -l admin -P pass.txt ssh://127.0.0.1","explanation":"Extreme slow-roll configuration to attempt bypassing account lockout policies."},{"id":72,"category":"Automated Pipeline","command":"hydra -l admin -P pass.txt -o /tmp/audit.json -b json ssh://127.0.0.1 > /dev/null","example":"hydra -l admin -P pass.txt -o /tmp/audit.json -b json ssh://127.0.0.1 > /dev/null","explanation":"Run silently in CI/CD, outputting only a JSON artifact."},{"id":73,"category":"Windows Auth (SMB2)","command":"hydra -l Administrator -P pass.txt smb://127.0.0.1 -m smb2","example":"hydra -l Administrator -P pass.txt smb://127.0.0.1 -m smb2","explanation":"Forces SMB version 2 for Windows authentication testing."},{"id":74,"category":"Interactive Verification","command":"hydra -l admin -p password -s 22 ssh://127.0.0.1 -v","example":"hydra -l admin -p password -s 22 ssh://127.0.0.1 -v","explanation":"Manual verification of a single credential with verbose output to confirm access."},{"id":75,"category":"Complex HTTP Pattern","command":"hydra -l user -P pass.txt http-post-form \"/login.php:user=^USER^&pass=^PASS^:F=Error\" -c 30","example":"hydra -l user -P pass.txt http-post-form \"/login.php:user=^USER^&pass=^PASS^:F=Error\" -c 30","explanation":"Limits the wait time for socket connections to 30 seconds using -c."}],"slug":"hydra","category":"credentials","url":"https://terminal.rokibulroni.com/tool/credentials/hydra","markdown":"https://terminal.rokibulroni.com/api/v1/tools/credentials/hydra.md"}