Skip to content

Medusa

55 commands

A speedy, parallel, modular login brute-forcer — an alternative to Hydra with thread-per-host design.

  • brute force
  • online attacks

Install Medusa

sudo apt install medusa

Basic Syntax & Help2

medusa -d

Lists all available authentication modules installed with Medusa

medusa -M ssh -q

Displays usage options and specific flags for the SSH module

Basic Credential Testing3

medusa -h 127.0.0.1 -u admin -p password -M ssh

Tests a single username and password against an SSH service on a target

medusa -h 127.0.0.1 -u admin -p password -M ftp

Tests a single username and password against an FTP service

medusa -h 127.0.0.1 -u admin -p password -M telnet

Tests a single username and password against a Telnet service

Target Specification1

medusa -H hosts.txt -u admin -p password -M ssh

Performs a login attempt against a list of target hosts specified in a file

Username List Usage1

medusa -h 127.0.0.1 -U users.txt -p password -M ssh

Iterates through a file of usernames with a single fixed password

Password List Usage1

medusa -h 127.0.0.1 -u admin -P passwords.txt -M ssh

Tests a single username against a list of passwords

Full Wordlist Attack1

medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh

Tests every username in the user list against every password in the password list

Combo File Attack1

medusa -h 127.0.0.1 -C combo.txt -M ssh

Uses a combo file containing 'user:password' format on each line

Link

Port Specification1

medusa -h 127.0.0.1 -u admin -P passwords.txt -M ssh -n 2222

Targets a specific non-standard port for the SSH service

Link

HTTP Authentication1

medusa -h 127.0.0.1 -u admin -P passwords.txt -M http

Tests HTTP Basic Authentication against the web root

Link

HTTP Authentication Options1

medusa -h 127.0.0.1 -u admin -P passwords.txt -M http -m DIR:/admin

Tests HTTP Basic Authentication against a specific directory path

Link

SSL/TLS Encryption1

medusa -h 127.0.0.1 -u admin -P passwords.txt -M http -s

Enforces SSL/TLS usage for the connection (HTTPS)

Link

SMB/Windows Authentication1

medusa -h 127.0.0.1 -u Administrator -P passwords.txt -M smbnt

Tests credentials against the Windows SMB service

Link

Database Authentication (MySQL)1

medusa -h 127.0.0.1 -u root -P passwords.txt -M mysql

Performs password auditing against a MySQL database server

Link

Database Authentication (MSSQL)1

medusa -h 127.0.0.1 -u sa -P passwords.txt -M mssql

Performs password auditing against a Microsoft SQL Server

Link

Database Authentication (PostgreSQL)1

medusa -h 127.0.0.1 -u postgres -P passwords.txt -M postgres

Performs password auditing against a PostgreSQL database

Link

VNC Authentication1

medusa -h 127.0.0.1 -u admin -P passwords.txt -M vnc

Tests passwords against a VNC server (username is often ignored or specific)

Link

SNMP Community String1

medusa -h 127.0.0.1 -u admin -P passwords.txt -M snmp

Audits SNMP community strings using the password list as community strings

Link

Control Flags (Stop on Success)1

medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh -f

Stops scanning the host immediately after the first valid username/password pair is found

Link

Empty Password Testing1

medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh -e n

Attempts to login with an empty password for each user in addition to the wordlist

Link

Same Password Testing1

medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh -e s

Attempts to login using the username as the password

Link

Comprehensive Empty/Same Testing1

medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh -e ns

Checks both empty passwords and username-as-password for every user

Link

Output & Logging1

medusa -h 127.0.0.1 -u admin -p password -M ssh -O results.txt

Saves the results of the audit to a specified text file

Link

Verbose Debugging1

medusa -h 127.0.0.1 -u admin -p password -M ssh -v 6

Runs with high verbosity level (0-6) to display detailed connection and authentication debug info

Link

Banner Suppression1

medusa -h 127.0.0.1 -u admin -p password -M ssh -b

Suppresses the tool's startup banner for cleaner output in scripts

Link

Concurrency (Threads)1

medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh -t 10

Sets the number of simultaneous threads to use for testing

Link

Concurrency (Parallel Hosts)1

medusa -H hosts.txt -u admin -P passwords.txt -M ssh -T 5

Tests up to 5 hosts simultaneously from the host list

Link

Concurrency (Parallel Logins)1

medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh -L 2

Allows 2 parallel login attempts per host to speed up testing without overwhelming the service

Link

Error Handling (Wait)1

medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh -w 5

Waits 5 seconds before retrying after an error (e.g., connection drop)

Link

Retry Control1

medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh -r 5

Sets the retry wait time between attempts to avoid locking out accounts or triggering IDS

Link

Session Resuming1

medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh -R 1

Resumes a previously aborted session from a specific index

Link

Web Form Authentication1

medusa -h 127.0.0.1 -u admin -P passwords.txt -M web-form

Targets a generic HTML form authentication mechanism

Link

Email (SMTP)1

medusa -h 127.0.0.1 -u admin -P passwords.txt -M smtp

Audits credentials for the Simple Mail Transfer Protocol

Link

Email (IMAP)1

medusa -h 127.0.0.1 -u admin -P passwords.txt -M imap

Audits credentials for the IMAP mail access protocol

Link

Email (POP3)1

medusa -h 127.0.0.1 -u admin -P passwords.txt -M pop3

Audits credentials for the POP3 mail access protocol

Link

Version Control (CVS)1

medusa -h 127.0.0.1 -u admin -P passwords.txt -M cvs

Audits credentials for a CVS repository server

Link

Version Control (SVN)1

medusa -h 127.0.0.1 -u admin -P passwords.txt -M svn

Audits credentials for a Subversion repository server

Link

Legacy Remote Execution (Rexec)1

medusa -h 127.0.0.1 -u admin -P passwords.txt -M rexec

Tests credentials against the legacy Rexec service

Link

Legacy Remote Login (Rlogin)1

medusa -h 127.0.0.1 -u admin -P passwords.txt -M rlogin

Tests credentials against the legacy Rlogin service

Link

Advanced SMB Options1

medusa -h 127.0.0.1 -u Administrator -P passwords.txt -M smbnt -m WORKGROUP:CORP

Specifies the Windows Workgroup or Domain name for SMB authentication

Link

HTTP User Agent Modification1

medusa -h 127.0.0.1 -u admin -P passwords.txt -M http -m USER-AGENT:MedusaScanner/1.0

Modifies the User-Agent header string sent during HTTP authentication attempts

Link

Alternative HTTP Port1

medusa -h 127.0.0.1 -n 8080 -u admin -P passwords.txt -M http

Targets an HTTP service running on a non-standard port like 8080

Link

VMware Authentication1

medusa -h 127.0.0.1 -u root -P passwords.txt -M vmauthd

Audits credentials against the VMware Authentication Daemon

Link

Network File System (PCNFS)1

medusa -h 127.0.0.1 -u admin -P passwords.txt -M pcnfs

Tests credentials against a PC-NFS service

Link

Multi-Host SSH Scan1

medusa -H hosts.txt -u root -P passwords.txt -M ssh -t 20 -T 10

High-performance SSH scan across multiple hosts with increased thread counts

Link

Slow and Stealthy Scan1

medusa -h 127.0.0.1 -u admin -P passwords.txt -M ssh -r 10 -t 1

Minimizes noise by using a single thread and adding a delay between retries

Link

Credential Validation Workflow1

medusa -h 127.0.0.1 -u known_user -p known_pass -M ssh -v 6

Validates a single known credential with maximum verbosity to debug authentication issues

Link

Default Account Audit1

medusa -h 127.0.0.1 -C defaults.txt -M http -f

Quickly checks for default credentials using a combo file and stops on first success

Link

Log File Append1

medusa -h 127.0.0.1 -u admin -P passwords.txt -M ssh -O master_log.txt

Appends audit results to a centralized log file for aggregation

Link

Mass SMB Audit1

medusa -H smb_hosts.txt -u Administrator -P passwords.txt -M smbnt -T 20 -f

Audits a list of Windows hosts for a specific admin password, stopping on success per host

Link

Database Discovery1

medusa -H db_hosts.txt -u root -p root -M mysql -T 10 -v 3

Scans multiple hosts to identify MySQL instances with default root credentials

Link

Web Form Input Specifics1

medusa -h 127.0.0.1 -u admin -P passwords.txt -M web-form -m FORM:login_page.php

Specifies the target PHP file handling the login form logic

Link

Full Comprehensive Audit1

medusa -H all_targets.txt -U users.txt -P passwords.txt -M ssh -e ns -t 10 -T 5 -f -v 4 -O audit_final.log

Runs a full scale audit with user/pass lists, empty/same checks, concurrency, and logging

Link