{"tool":"medusa","name":"Medusa","description":"A speedy, parallel, modular login brute-forcer — an alternative to Hydra with thread-per-host design.","tags":["brute force","online attacks"],"homepage":"https://github.com/jmk-foofus/medusa","install":{"apt":"sudo apt install medusa","brew":"brew install medusa"},"related":["hydra","ncrack","patator"],"total_commands":55,"commands":[{"id":1,"category":"Basic Syntax & Help","command":"medusa -d","example":"medusa -d","explanation":"Lists all available authentication modules installed with Medusa"},{"id":2,"category":"Basic Syntax & Help","command":"medusa -M ssh -q","example":"medusa -M ssh -q","explanation":"Displays usage options and specific flags for the SSH module"},{"id":3,"category":"Basic Credential Testing","command":"medusa -h 127.0.0.1 -u admin -p password -M ssh","example":"medusa -h 127.0.0.1 -u admin -p password -M ssh","explanation":"Tests a single username and password against an SSH service on a target"},{"id":4,"category":"Basic Credential Testing","command":"medusa -h 127.0.0.1 -u admin -p password -M ftp","example":"medusa -h 127.0.0.1 -u admin -p password -M ftp","explanation":"Tests a single username and password against an FTP service"},{"id":5,"category":"Basic Credential Testing","command":"medusa -h 127.0.0.1 -u admin -p password -M telnet","example":"medusa -h 127.0.0.1 -u admin -p password -M telnet","explanation":"Tests a single username and password against a Telnet service"},{"id":6,"category":"Target Specification","command":"medusa -H hosts.txt -u admin -p password -M ssh","example":"medusa -H hosts.txt -u admin -p password -M ssh","explanation":"Performs a login attempt against a list of target hosts specified in a file"},{"id":7,"category":"Username List Usage","command":"medusa -h 127.0.0.1 -U users.txt -p password -M ssh","example":"medusa -h 127.0.0.1 -U users.txt -p password -M ssh","explanation":"Iterates through a file of usernames with a single fixed password"},{"id":8,"category":"Password List Usage","command":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M ssh","example":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M ssh","explanation":"Tests a single username against a list of passwords"},{"id":9,"category":"Full Wordlist Attack","command":"medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh","example":"medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh","explanation":"Tests every username in the user list against every password in the password list"},{"id":10,"category":"Combo File Attack","command":"medusa -h 127.0.0.1 -C combo.txt -M ssh","example":"medusa -h 127.0.0.1 -C combo.txt -M ssh","explanation":"Uses a combo file containing 'user:password' format on each line"},{"id":11,"category":"Port Specification","command":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M ssh -n 2222","example":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M ssh -n 2222","explanation":"Targets a specific non-standard port for the SSH service"},{"id":12,"category":"HTTP Authentication","command":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M http","example":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M http","explanation":"Tests HTTP Basic Authentication against the web root"},{"id":13,"category":"HTTP Authentication Options","command":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M http -m DIR:/admin","example":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M http -m DIR:/admin","explanation":"Tests HTTP Basic Authentication against a specific directory path"},{"id":14,"category":"SSL/TLS Encryption","command":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M http -s","example":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M http -s","explanation":"Enforces SSL/TLS usage for the connection (HTTPS)"},{"id":15,"category":"SMB/Windows Authentication","command":"medusa -h 127.0.0.1 -u Administrator -P passwords.txt -M smbnt","example":"medusa -h 127.0.0.1 -u Administrator -P passwords.txt -M smbnt","explanation":"Tests credentials against the Windows SMB service"},{"id":16,"category":"Database Authentication (MySQL)","command":"medusa -h 127.0.0.1 -u root -P passwords.txt -M mysql","example":"medusa -h 127.0.0.1 -u root -P passwords.txt -M mysql","explanation":"Performs password auditing against a MySQL database server"},{"id":17,"category":"Database Authentication (MSSQL)","command":"medusa -h 127.0.0.1 -u sa -P passwords.txt -M mssql","example":"medusa -h 127.0.0.1 -u sa -P passwords.txt -M mssql","explanation":"Performs password auditing against a Microsoft SQL Server"},{"id":18,"category":"Database Authentication (PostgreSQL)","command":"medusa -h 127.0.0.1 -u postgres -P passwords.txt -M postgres","example":"medusa -h 127.0.0.1 -u postgres -P passwords.txt -M postgres","explanation":"Performs password auditing against a PostgreSQL database"},{"id":19,"category":"VNC Authentication","command":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M vnc","example":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M vnc","explanation":"Tests passwords against a VNC server (username is often ignored or specific)"},{"id":20,"category":"SNMP Community String","command":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M snmp","example":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M snmp","explanation":"Audits SNMP community strings using the password list as community strings"},{"id":21,"category":"Control Flags (Stop on Success)","command":"medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh -f","example":"medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh -f","explanation":"Stops scanning the host immediately after the first valid username/password pair is found"},{"id":22,"category":"Empty Password Testing","command":"medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh -e n","example":"medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh -e n","explanation":"Attempts to login with an empty password for each user in addition to the wordlist"},{"id":23,"category":"Same Password Testing","command":"medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh -e s","example":"medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh -e s","explanation":"Attempts to login using the username as the password"},{"id":24,"category":"Comprehensive Empty/Same Testing","command":"medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh -e ns","example":"medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh -e ns","explanation":"Checks both empty passwords and username-as-password for every user"},{"id":25,"category":"Output & Logging","command":"medusa -h 127.0.0.1 -u admin -p password -M ssh -O results.txt","example":"medusa -h 127.0.0.1 -u admin -p password -M ssh -O results.txt","explanation":"Saves the results of the audit to a specified text file"},{"id":26,"category":"Verbose Debugging","command":"medusa -h 127.0.0.1 -u admin -p password -M ssh -v 6","example":"medusa -h 127.0.0.1 -u admin -p password -M ssh -v 6","explanation":"Runs with high verbosity level (0-6) to display detailed connection and authentication debug info"},{"id":27,"category":"Banner Suppression","command":"medusa -h 127.0.0.1 -u admin -p password -M ssh -b","example":"medusa -h 127.0.0.1 -u admin -p password -M ssh -b","explanation":"Suppresses the tool's startup banner for cleaner output in scripts"},{"id":28,"category":"Concurrency (Threads)","command":"medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh -t 10","example":"medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh -t 10","explanation":"Sets the number of simultaneous threads to use for testing"},{"id":29,"category":"Concurrency (Parallel Hosts)","command":"medusa -H hosts.txt -u admin -P passwords.txt -M ssh -T 5","example":"medusa -H hosts.txt -u admin -P passwords.txt -M ssh -T 5","explanation":"Tests up to 5 hosts simultaneously from the host list"},{"id":30,"category":"Concurrency (Parallel Logins)","command":"medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh -L 2","example":"medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh -L 2","explanation":"Allows 2 parallel login attempts per host to speed up testing without overwhelming the service"},{"id":31,"category":"Error Handling (Wait)","command":"medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh -w 5","example":"medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh -w 5","explanation":"Waits 5 seconds before retrying after an error (e.g., connection drop)"},{"id":32,"category":"Retry Control","command":"medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh -r 5","example":"medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh -r 5","explanation":"Sets the retry wait time between attempts to avoid locking out accounts or triggering IDS"},{"id":33,"category":"Session Resuming","command":"medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh -R 1","example":"medusa -h 127.0.0.1 -U users.txt -P passwords.txt -M ssh -R 1","explanation":"Resumes a previously aborted session from a specific index"},{"id":34,"category":"Web Form Authentication","command":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M web-form","example":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M web-form","explanation":"Targets a generic HTML form authentication mechanism"},{"id":35,"category":"Email (SMTP)","command":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M smtp","example":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M smtp","explanation":"Audits credentials for the Simple Mail Transfer Protocol"},{"id":36,"category":"Email (IMAP)","command":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M imap","example":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M imap","explanation":"Audits credentials for the IMAP mail access protocol"},{"id":37,"category":"Email (POP3)","command":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M pop3","example":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M pop3","explanation":"Audits credentials for the POP3 mail access protocol"},{"id":38,"category":"Version Control (CVS)","command":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M cvs","example":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M cvs","explanation":"Audits credentials for a CVS repository server"},{"id":39,"category":"Version Control (SVN)","command":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M svn","example":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M svn","explanation":"Audits credentials for a Subversion repository server"},{"id":40,"category":"Legacy Remote Execution (Rexec)","command":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M rexec","example":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M rexec","explanation":"Tests credentials against the legacy Rexec service"},{"id":41,"category":"Legacy Remote Login (Rlogin)","command":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M rlogin","example":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M rlogin","explanation":"Tests credentials against the legacy Rlogin service"},{"id":42,"category":"Advanced SMB Options","command":"medusa -h 127.0.0.1 -u Administrator -P passwords.txt -M smbnt -m WORKGROUP:CORP","example":"medusa -h 127.0.0.1 -u Administrator -P passwords.txt -M smbnt -m WORKGROUP:CORP","explanation":"Specifies the Windows Workgroup or Domain name for SMB authentication"},{"id":43,"category":"HTTP User Agent Modification","command":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M http -m USER-AGENT:MedusaScanner/1.0","example":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M http -m USER-AGENT:MedusaScanner/1.0","explanation":"Modifies the User-Agent header string sent during HTTP authentication attempts"},{"id":44,"category":"Alternative HTTP Port","command":"medusa -h 127.0.0.1 -n 8080 -u admin -P passwords.txt -M http","example":"medusa -h 127.0.0.1 -n 8080 -u admin -P passwords.txt -M http","explanation":"Targets an HTTP service running on a non-standard port like 8080"},{"id":45,"category":"VMware Authentication","command":"medusa -h 127.0.0.1 -u root -P passwords.txt -M vmauthd","example":"medusa -h 127.0.0.1 -u root -P passwords.txt -M vmauthd","explanation":"Audits credentials against the VMware Authentication Daemon"},{"id":46,"category":"Network File System (PCNFS)","command":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M pcnfs","example":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M pcnfs","explanation":"Tests credentials against a PC-NFS service"},{"id":47,"category":"Multi-Host SSH Scan","command":"medusa -H hosts.txt -u root -P passwords.txt -M ssh -t 20 -T 10","example":"medusa -H hosts.txt -u root -P passwords.txt -M ssh -t 20 -T 10","explanation":"High-performance SSH scan across multiple hosts with increased thread counts"},{"id":48,"category":"Slow and Stealthy Scan","command":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M ssh -r 10 -t 1","example":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M ssh -r 10 -t 1","explanation":"Minimizes noise by using a single thread and adding a delay between retries"},{"id":49,"category":"Credential Validation Workflow","command":"medusa -h 127.0.0.1 -u known_user -p known_pass -M ssh -v 6","example":"medusa -h 127.0.0.1 -u known_user -p known_pass -M ssh -v 6","explanation":"Validates a single known credential with maximum verbosity to debug authentication issues"},{"id":50,"category":"Default Account Audit","command":"medusa -h 127.0.0.1 -C defaults.txt -M http -f","example":"medusa -h 127.0.0.1 -C defaults.txt -M http -f","explanation":"Quickly checks for default credentials using a combo file and stops on first success"},{"id":51,"category":"Log File Append","command":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M ssh -O master_log.txt","example":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M ssh -O master_log.txt","explanation":"Appends audit results to a centralized log file for aggregation"},{"id":52,"category":"Mass SMB Audit","command":"medusa -H smb_hosts.txt -u Administrator -P passwords.txt -M smbnt -T 20 -f","example":"medusa -H smb_hosts.txt -u Administrator -P passwords.txt -M smbnt -T 20 -f","explanation":"Audits a list of Windows hosts for a specific admin password, stopping on success per host"},{"id":53,"category":"Database Discovery","command":"medusa -H db_hosts.txt -u root -p root -M mysql -T 10 -v 3","example":"medusa -H db_hosts.txt -u root -p root -M mysql -T 10 -v 3","explanation":"Scans multiple hosts to identify MySQL instances with default root credentials"},{"id":54,"category":"Web Form Input Specifics","command":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M web-form -m FORM:login_page.php","example":"medusa -h 127.0.0.1 -u admin -P passwords.txt -M web-form -m FORM:login_page.php","explanation":"Specifies the target PHP file handling the login form logic"},{"id":55,"category":"Full Comprehensive Audit","command":"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","example":"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","explanation":"Runs a full scale audit with user/pass lists, empty/same checks, concurrency, and logging"}],"slug":"medusa","category":"credentials","url":"https://terminal.rokibulroni.com/tool/credentials/medusa","markdown":"https://terminal.rokibulroni.com/api/v1/tools/credentials/medusa.md"}