Hydra is a fast and powerful password-cracking tool used to test the strength of login systems like SSH, FTP, Telnet, HTTP, SMB, SMTP, and more. Termux does not provide Hydra as a direct package, so you need to install it from source, which takes some time but works perfectly.
Installation
Install required packages:
pkg update && pkg install -y git build-essential cmakeDownload the Hydra source code:
git clone https://github.com/vanhauser-thc/thc-hydra.gitEnter the folder:
cd thc-hydraConfigure Hydra for Termux:
./configure --prefix=$PREFIX --disable-xhydraCompile Hydra:
makeInstall Hydra:
make installCheck if it installed successfully:
hydra -hUsage Commands
These are the most common Hydra usage commands for beginners.
Brute-force SSH login:
hydra -l username -P passwords.txt ssh://192.168.1.10Brute-force FTP login:
hydra -l admin -P passlist.txt ftp://192.168.1.20Brute-force HTTP login form:
hydra -l admin -P rockyou.txt 192.168.1.30 http-post-form "/login.php:user=^USER^&pass=^PASS^:F=incorrect"Brute-force MySQL login:
hydra -l root -P pass.txt mysql://192.168.1.40Brute-force RDP login:
hydra -l admin -P pass.txt rdp://192.168.1.50Test multiple services at once:
hydra -L users.txt -P passwords.txt 192.168.1.60 ssh ftp smbLimit attack speed (threads):
hydra -t 4 -l admin -P pass.txt ssh://192.168.1.10Save results to a file:
hydra -l admin -P pass.txt ssh://192.168.1.10 -o results.txtShow all supported protocols:
hydra -U