root@sparrow:~/writeups$ cat hydra.md
// cracking
Hydra
21 Jul 2026
· 3 min read
Hydra (often thc-hydra) is an online credential cracker that tests usernames and passwords against a live service. It supports dozens of protocols —SSH, FTP, HTTP, RDP, SMB, MySQL and more— with fast, parallel attacks. It is the go-to tool for demonstrating the real impact of a weak password.Hydra is online: every attempt is a real connection to the service, so network latency and server-side limits —not your CPU— set the pace. Raising threads with -t speeds things up, but too many trigger lockouts, false negatives or a service crash. The trick is choosing the right module, wordlist and parallelism, not blind brute force.
1. Beginner level — per-service attacks

| Command | What it does |
|---|---|
hydra -l user -P <wl> <t> ssh | SSH brute force with a fixed username |
hydra -L <users> -p pass <t> ftp | FTP brute force with a fixed password |
hydra -L <users> -P <wl> <t> ssh | Combines a username list and a password list |
hydra -l admin -P <wl> <t> http-get /login | Brute force against an HTTP GET login |
hydra -l admin -P <wl> <t> http-post-form "..." | Brute force against a POST form |
hydra -L <users> -P <wl> <t> mysql | Brute force against MySQL |
hydra -L <users> -P <wl> <t> rdp | Brute force against RDP |
hydra -l user -P <wl> <t> smb | Brute force against SMB |
hydra -V -l user -P <wl> <t> ssh | Verbose mode: shows every attempt |
hydra -o out.txt -l user -P <wl> <t> ssh | Saves results to a file |
hydra -t 4 -l user -P <wl> <t> ssh | Limits the number of parallel threads |
hydra -f -l user -P <wl> <t> ssh | Stops on finding the first credential |
hydra -e nsr -l user <t> ssh | Tries empty, same as user, and reversed |
hydra -s 2222 -l user -P <wl> <t> ssh | Specifies a non-standard port |
2. Advanced level — multi-target and fine control

| Command | What it does |
|---|---|
hydra -C user_pass.txt <t> ssh | Uses a combined username:password list |
hydra -M targets.txt -l user -P <wl> ssh | Attacks several targets from a file |
hydra -l user -P <wl> <t> ssh -t 16 -w 30 | Tunes threads and wait time |
hydra -l user -P <wl> -s 443 <t> https-get / | HTTPS brute force on a custom port |
hydra -R | Resumes a previously interrupted attack |
hydra -l user -P <wl> <t> smtp -v | SMTP brute force in verbose mode |
hydra -L <users> -P <wl> <t> postgres | Brute force against PostgreSQL |
hydra -L <users> -p '' <t> ssh -e n | Tests only an empty password across several users |
hydra -l user -x 4:8:a <t> ssh | Generates passwords by pure brute force |
hydra -l user -P <wl> <t> ssh -4 | Forces the use of IPv4 |
hydra -U http-post-form | Shows the specific help for a module |
hydra -l user -P <wl> <t> ssh -o out.json -b json | Exports the results in JSON format |
hydra -l user -P <wl> <t> ssh6 | SSH brute force over IPv6 |
hydra -l user -P <wl> <t> ssh -I | Ignores a previously restored session |
3. Details people miss
- The service module ALWAYS goes at the end of the line (
ssh,ftp,http-post-form): it is a positional argument, not a flag. - In
http-post-formthe three-part string (path:parameters:failure-condition) is the trickiest bit; use^USER^and^PASS^plus a failure marker that appears in the wrong-login response. - More threads is not always better: SSH often breaks above
-t 4due to server limits (MaxStartups), and aggressive parallelism triggers account lockouts and false negatives. - Use
-fto stop at the first valid credential and-oto save the output; on real targets, check lockout policies first so you don't take accounts out of service. - Mind the case:
-l/-ptake a single value, while-L/-Pexpect a list file.
Responsible use
These commands are for systems you own or have explicit written authorisation to test (labs, CTFs, contracted engagements). Using them against third-party infrastructure without permission is illegal in most countries.