root@sparrow:~/writeups$ cat medusa.md
// cracking
Medusa
21 Jul 2026
· 3 min read
Medusa is a modular, parallel brute-force login cracker that tests credentials against network services such asssh,ftp,http,smbnt,rdp, or databases. Its strength is firing many simultaneous attempts against one or several hosts at once, each service through its own module (-M).
Medusa parallelizes along two axes at once: -t opens several threads against a single host and -T tests several hosts in parallel, so the number of simultaneous connections is the product of both. Grasping that multiplication is key to avoid saturating the network or triggering account lockouts. Combo files (-C) let you test specific user:password pairs instead of the cartesian product of -U by -P.
1. Beginner level — services and wordlists

| Command | What it does |
|---|---|
medusa -h <ip> -u user -P <wl> -M ssh | SSH brute force |
medusa -h <ip> -U users -p pass -M ftp | FTP with a fixed password |
medusa -h <ip> -U users -P <wl> -M ssh | Combined users and passwords |
medusa -H hosts.txt -u user -P <wl> -M ssh | Multiple hosts |
medusa -h <ip> -u user -P <wl> -M ssh -O out.txt | Saves the result |
medusa -h <ip> -u user -P <wl> -M ssh -t 4 | Threads per host |
medusa -h <ip> -u admin -P <wl> -M http -m DIR:/login | Brute-forces an HTTP login |
medusa -h <ip> -U users -P <wl> -M mysql | MySQL |
medusa -h <ip> -u admin -P <wl> -M rdp | RDP |
medusa -h <ip> -u user -P <wl> -M smbnt | SMB |
medusa -d | Lists the available modules |
medusa -h <ip> -u user -P <wl> -M ssh -f | Stops at the first hit (per host) |
medusa -h <ip> -u user -P <wl> -M ssh -v 6 | Verbosity level |
medusa -M ssh -q | Shows the module's parameters |
2. Advanced level — combos, parallelism, and forms

| Command | What it does |
|---|---|
medusa -h <ip> -C combos.txt -M ssh | Combined user:password list |
medusa -H hosts.txt -u user -P <wl> -M ssh -T 10 | Hosts in parallel |
medusa -h <ip> -u user -P <wl> -M ssh -F | Stops after the first global hit |
medusa -h <ip> -u admin -P <wl> -M web-form -m FORM:'user=&pass=' | Brute-forces a web form |
medusa -h <ip> -u user -P <wl> -M ssh -e ns | Tries empty and username=password |
medusa -h <ip> -u user -P <wl> -M ssh -r 3 -R 2 | Retries on network failure |
medusa -h <ip> -U users -P <wl> -M ssh -n 2222 | Non-standard port |
medusa -h <ip> -u administrator -P <wl> -M smbnt -m GROUP:DOMAIN | SMB with domain |
medusa -h <ip> -u user -P <wl> -M ssh -b | Without startup banner |
medusa -h <ip> -u user -P <wl> -M ssh -s | Forces SSL |
medusa -h <ip> -u user -P <wl> -M postgres | PostgreSQL |
medusa -h <ip> -u user -P <wl> -M vnc | VNC |
medusa -h <ip> -u user -P <wl> -M telnet | Telnet |
medusa -h <ip> -u user -P <wl> -M ssh -O log.txt -v 4 | Detailed log to file |
3. Details people miss
- Don't confuse
-t(threads per host) with-T(hosts in parallel): the total of simultaneous connections is the product of both, and setting it too high saturates the network or triggers lockouts. -fstops at the first hit per host;-Fstops the whole run at the first global hit. They are different things.- Before building the
-mforhttporweb-form, runmedusa -M <module> -qto see the exact parameters that module accepts (FORM, DIR…). -Hexpects a host file, not a bare IP; for a single target use-h. Mixing them causes the input to be ignored.- Account lockout is real: SSH, SMB, or RDP often lock after a few failures. Lower the threads and use
-r/-Rfor network retries instead of hammering.
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.