Hydra is a popular password auditing and authentication testing tool that is used to test login security on different network services and protocols. It is commonly used by cybersecurity learners and penetration testers for practicing brute-force techniques and checking weak credentials in authorized environments. You can also run Hydra on Android devices using the Termux terminal application without root access.
Here’s what you can do with Hydra in Termux:
- Test login forms and network services.
- Practice password auditing commands.
- Perform basic authentication testing.
- Learn brute-force tool usage.
- Run cybersecurity tools directly on Android.
- Practice Linux terminal commands.
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
Below are some important usage commands that you can use in Termux to perform different Hydra authentication testing tasks.
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 -UBasic TermuxHydra Commands
Hydra basic commands are used to perform login testing, manage password lists, and control different authentication testing options directly from the terminal.
Show Hydra help menu:
hydra -hShow Hydra version:
hydra -vVUse a single password for testing:
hydra -l admin -p 123456 ssh://192.168.1.10Use username and password lists together:
hydra -L users.txt -P passwords.txt ssh://192.168.1.10Stop after finding valid password:
hydra -f -l admin -P passwords.txt ssh://192.168.1.10Run verbose mode:
hydra -V -l admin -P passwords.txt ssh://192.168.1.10Limit connection attempts:
hydra -t 2 -l admin -P passwords.txt ssh://192.168.1.10End Note
Hydra is one of the most popular password auditing and authentication testing tools used in cybersecurity learning and penetration testing practice. You can install and use Hydra on Android using the Termux application, where you can practice different login testing commands and learn Linux-based cybersecurity tools directly from your mobile device without root access.

