Password Attacks
Hydra is a parallelized login cracker that supports numerous protocols including FTP, HTTP, HTTPS, SMB, SSH, and many more. It performs rapid dictionary attacks against login pages and services to test password strength.
sudo apt install hydra
hydra -l <user> -P <wordlist> <target> <service>
THC Hydra is a fast, flexible, and powerful online login brute-forcer. It performs dictionary attacks against login pages and services using parallelized connections, making it one of the most widely used tools for testing network authentication security.
Created in 2001 by vanHauser of The Hacker's Choice, Hydra supports over 50 protocols including SSH, FTP, HTTP(S), RDP, SMB, MySQL, PostgreSQL, VNC, and many more. Its parallel architecture allows it to test thousands of credentials rapidly.
Hydra is essential for penetration testing, security audits, and red team engagements. It tests whether network services have weak or default credentials, helping organizations identify authentication vulnerabilities before attackers exploit them.
hydra -l admin -P /usr/share/wordlists/rockyou.txt 192.168.1.1 sshSSH brute force - Attack SSH loginhydra -L users.txt -P passwords.txt 192.168.1.1 ftpFTP attack - Multiple users/passwordshydra -l admin -P wordlist.txt 192.168.1.1 telnetTelnet attack - Brute force telnethydra -l root -P wordlist.txt 192.168.1.1 mysqlMySQL attack - Database password testhydra -l admin -P wordlist.txt -t 4 192.168.1.1 sshThrottled - 4 parallel connectionshydra -l admin -P wordlist.txt -V 192.168.1.1 sshVerbose - Show each attempthydra -l admin -P wordlist.txt -f 192.168.1.1 sshStop on success - Exit after first matchhydra -l admin -P wordlist.txt -e nsr 192.168.1.1 sshExtra checks - null/same/reversehydra -l admin -P wordlist.txt -o results.txt 192.168.1.1 sshSave output - Write results to filehydra -l admin -P wordlist.txt 192.168.1.1 http-post-form "/login:user=^USER^&pass=^PASS^:Invalid"HTTP POST form - Web login attackhydra -l admin -P wordlist.txt 192.168.1.1 http-get-form "/login:user=^USER^&pass=^PASS^:F=incorrect"HTTP GET form - Query string attackhydra -l admin -P wordlist.txt 192.168.1.1 https-post-form "/login:user=^USER^&pass=^PASS^:F=failed"HTTPS POST - Secure web loginhydra -C userpass.txt 192.168.1.1 sshCombo file - user:pass pairshydra -l admin -P wordlist.txt -s 2222 192.168.1.1 sshCustom port - Non-standard porthydra -M targets.txt -l admin -P wordlist.txt sshMultiple targets - Attack several IPsTest SSH services for weak passwords and default credentials on servers and appliances.
Brute-force HTTP/HTTPS login forms including POST and GET-based authentication.
Test Windows Remote Desktop services for weak administrative passwords.
Verify MySQL, PostgreSQL, and MSSQL database credentials are not default or weak.
Comprehensive testing of FTP, SMB, VNC, SNMP, and other network services.
Test OpenVPN, PPTP, and IPSec VPN concentrators for weak authentication before remote access compromise.
Brute-force POP3, IMAP, and SMTP credentials to verify mail server authentication strength.
Test SIP and Asterisk phone systems for default or weak credentials that could enable toll fraud.
Validate domain-joined credentials across SMB and LDAP services to assess AD password policies.
Systematically test factory-default credentials on IoT devices, routers, and embedded systems across a network.
Run 'hydra -l <user> -P /usr/share/wordlists/rockyou.txt <target> <service>' where <target> is an IP you own. For example, test SSH on your lab machine: 'hydra -l admin -P wordlist.txt 10.10.10.10 ssh'. Hydra supports over 50 protocols including HTTP, FTP, RDP, SMB, and MySQL.
Use '-l <username>' for a single known username, or '-L users.txt' for a list. Use '-P passwords.txt' for a password list, or '-p <password>' for a single password. Combine with '-t 4' to limit threads and avoid account lockouts on authorized test accounts.
Use 'hydra -l admin -P wordlist.txt 10.10.10.10 http-post-form "/login:username=^USER^&password=^PASS^:F=incorrect"'. The ^USER^ and ^PASS^ placeholders are replaced with each candidate. The F= string identifies a failed login in the response body.
Run 'hydra -l root -P /usr/share/wordlists/rockyou.txt 10.10.10.10 ssh' against your lab machine. Hydra connects on port 22 by default. Add '-s 2222' for non-standard ports. Always test only against systems you own or have written authorization to test.
Yes, Hydra is free and open source. On Kali Linux, it is pre-installed or run 'sudo apt install hydra'. On Ubuntu/Debian: 'sudo apt install hydra'. From source, clone the GitHub repo and run 'make'. Hydra is maintained by van Hauser of THC.
THC-Hydra is the full name of Hydra, developed by the Hacker's Choice (THC) team. It is a network login cracker that supports 50+ protocols and uses parallelized connections for fast dictionary attacks. The tool is the industry standard for online password auditing during penetration tests.
Information Gathering
Network scanner for discovering login services before brute-forcing them.
Password Attacks
Parallel network brute-forcer as an alternative to Hydra with modular architecture.
Password Attacks
Offline password cracker for hashes extracted from compromised systems.
Password Attacks
GPU-accelerated offline password cracker for large hash sets.
Information Gathering
SMB/NetBIOS enumeration tool for discovering valid usernames before brute-forcing.
Password Attacks
Post-exploitation pentesting toolkit for testing credentials across Active Directory environments.
Web Application
Web security testing proxy for intercepting login requests before Hydra form attacks.
Web Application
WordPress security scanner that discovers users for Hydra brute-force attacks.
The application prints each attempt in real-time, highlighting successful breaches with a distinct marker showing the service, host, username, and discovered password.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.