Password Attacks
Hydra is a parallelized login cracker that supports numerous protocols including FTP, HTTP, HTTPS, SMB, SSH, and many more. It performs rapid dictionary attacks against login pages and services to test password strength.
sudo apt install hydra
hydra -l <user> -P <wordlist> <target> <service>
THC Hydra is a fast, flexible, and powerful online login brute-forcer. It performs dictionary attacks against login pages and services using parallelized connections, making it one of the most widely used tools for testing network authentication security.
Created in 2001 by vanHauser of The Hacker's Choice, Hydra supports over 50 protocols including SSH, FTP, HTTP(S), RDP, SMB, MySQL, PostgreSQL, VNC, and many more. Its parallel architecture allows it to test thousands of credentials rapidly.
Hydra is essential for penetration testing, security audits, and red team engagements. It tests whether network services have weak or default credentials, helping organizations identify authentication vulnerabilities before attackers exploit them.
| Command | Purpose |
|---|---|
hydra -U ssh | Display SSH module-specific usage without contacting a target. |
hydra -l <lab-user> -p <approved-test-password> ssh://<lab-host>/ | Validate one approved lab credential pair. |
hydra -l <lab-user> -P <small-authorized-password-list.txt> -t 1 -W 5 ssh://<lab-host>/ | Run a rate-limited SSH password audit. |
hydra -L <lab-users.txt> -p <approved-test-password> -u -t 1 -c 10 ssh://<lab-host>/ | Run a slow single-password lab spray across approved accounts. |
hydra -C <approved-userpass-pairs.txt> -t 1 -f ftp://<lab-host>/ | Test approved user/password pairs and stop after success. |
hydra -l <lab-user> -P <small-authorized-password-list.txt> -t 1 -W 5 -o <results.json> -b json ssh://<lab-host>/ | Write rate-limited audit results as JSON. |
hydra -l admin -P /usr/share/wordlists/rockyou.txt 192.168.1.1 sshSSH brute force - Attack SSH loginhydra -L users.txt -P passwords.txt 192.168.1.1 ftpFTP attack - Multiple users/passwordshydra -l admin -P wordlist.txt 192.168.1.1 telnetTelnet attack - Brute force telnethydra -l root -P wordlist.txt 192.168.1.1 mysqlMySQL attack - Database password testhydra -l admin -P wordlist.txt -t 4 192.168.1.1 sshThrottled - 4 parallel connectionshydra -l admin -P wordlist.txt -V 192.168.1.1 sshVerbose - Show each attempthydra -l admin -P wordlist.txt -f 192.168.1.1 sshStop on success - Exit after first matchhydra -l admin -P wordlist.txt -e nsr 192.168.1.1 sshExtra checks - null/same/reversehydra -l admin -P wordlist.txt -o results.txt 192.168.1.1 sshSave output - Write results to filehydra -l admin -P wordlist.txt 192.168.1.1 http-post-form "/login:user=^USER^&pass=^PASS^:Invalid"HTTP POST form - Web login attackhydra -l admin -P wordlist.txt 192.168.1.1 http-get-form "/login:user=^USER^&pass=^PASS^:F=incorrect"HTTP GET form - Query string attackhydra -l admin -P wordlist.txt 192.168.1.1 https-post-form "/login:user=^USER^&pass=^PASS^:F=failed"HTTPS POST - Secure web loginhydra -C userpass.txt 192.168.1.1 sshCombo file - user:pass pairshydra -l admin -P wordlist.txt -s 2222 192.168.1.1 sshCustom port - Non-standard porthydra -M targets.txt -l admin -P wordlist.txt sshMultiple targets - Attack several IPshydra -l admin -P wordlist.txt -w 30 192.168.1.1 sshTimeout - 30 sec wait timehydra -l admin -P wordlist.txt 192.168.1.1 rdpRDP attack - Windows Remote Desktophydra -l admin -P wordlist.txt 192.168.1.1 smbSMB attack - Windows shareshydra -l admin -P wordlist.txt 192.168.1.1 vncVNC attack - Remote desktophydra -l admin@domain -P wordlist.txt 192.168.1.1 smbDomain account - Windows domain attackhydra -l admin -P wordlist.txt 192.168.1.1 pop3POP3 attack - Email serverhydra -l admin -P wordlist.txt 192.168.1.1 imapIMAP attack - Email serverhydra -l admin -P wordlist.txt -x 6:8:aA1 192.168.1.1 sshGenerate passwords - Min:Max:charsethydra -l admin -P wordlist.txt 192.168.1.1 smtpSMTP attack - Brute-force mail server authenticationhydra -l root -P wordlist.txt 192.168.1.1 -t 4 ftpFTP throttled - Limit parallel tasks to avoid lockoutshydra -L users.txt -p 'Winter2025!' 192.168.1.1 rdpPassword spray - Try one password across many usershydra -l admin -P wordlist.txt 192.168.1.1 http-get /adminHTTP basic auth - Brute-force a Basic-Auth protected pathhydra -l admin -P wordlist.txt 192.168.1.1 snmpSNMP attack - Brute-force SNMP community stringsTest SSH services for weak passwords and default credentials on servers and appliances.
Brute-force HTTP/HTTPS login forms including POST and GET-based authentication.
Test Windows Remote Desktop services for weak administrative passwords.
Verify MySQL, PostgreSQL, and MSSQL database credentials are not default or weak.
Comprehensive testing of FTP, SMB, VNC, SNMP, and other network services.
Test OpenVPN, PPTP, and IPSec VPN concentrators for weak authentication before remote access compromise.
Brute-force POP3, IMAP, and SMTP credentials to verify mail server authentication strength.
Test SIP and Asterisk phone systems for default or weak credentials that could enable toll fraud.
Validate domain-joined credentials across SMB and LDAP services to assess AD password policies.
Systematically test factory-default credentials on IoT devices, routers, and embedded systems across a network.
Run 'hydra -l <user> -P /usr/share/wordlists/rockyou.txt <target> <service>' where <target> is an IP you own. For example, test SSH on your lab machine: 'hydra -l admin -P wordlist.txt 10.10.10.10 ssh'. Hydra supports over 50 protocols including HTTP, FTP, RDP, SMB, and MySQL.
Use '-l <username>' for a single known username, or '-L users.txt' for a list. Use '-P passwords.txt' for a password list, or '-p <password>' for a single password. Combine with '-t 4' to limit threads and avoid account lockouts on authorized test accounts.
Use 'hydra -l admin -P wordlist.txt 10.10.10.10 http-post-form "/login:username=^USER^&password=^PASS^:F=incorrect"'. The ^USER^ and ^PASS^ placeholders are replaced with each candidate. The F= string identifies a failed login in the response body.
Run 'hydra -l root -P /usr/share/wordlists/rockyou.txt 10.10.10.10 ssh' against your lab machine. Hydra connects on port 22 by default. Add '-s 2222' for non-standard ports. Always test only against systems you own or have written authorization to test.
Yes, Hydra is free and open source. On Kali Linux, it is pre-installed or run 'sudo apt install hydra'. On Ubuntu/Debian: 'sudo apt install hydra'. From source, clone the GitHub repo and run 'make'. Hydra is maintained by van Hauser of THC.
THC-Hydra is the full name of Hydra, developed by the Hacker's Choice (THC) team. It is a network login cracker that supports 50+ protocols and uses parallelized connections for fast dictionary attacks. The tool is the industry standard for online password auditing during penetration tests.
Password Attacks
John the Ripper is a free and open-source password security auditing and password recovery tool. It can crack various password hash types offline and is highly customizable with different attack modes and mangling rules.
Password Attacks
Medusa is a speedy, parallel, and modular login brute-forcer. It supports many protocols including HTTP, FTP, SSH, SMB, MySQL, and more.
Password Attacks
Learn how to use Hashcat in Kali Linux as a beginner, from checking the install and selecting the right modes to running a wordlist crack and reading results.
Information Gathering
Learn how to use Enum4linux to enumerate Windows and Samba systems over SMB: install it on Kali Linux, run your first scan, read the users, shares, groups and password policy it returns, and switch to enum4linux-ng for modern hosts that block null sessions.
Information Gathering
Learn how to use Nmap, the free open-source network scanner: run your first port scan, discover live hosts, detect services and operating systems, and check for vulnerabilities with NSE scripts — a beginner tutorial for Kali Linux.
Sniffing & Spoofing
Learn how to use Netcat (nc) in Kali Linux to open a TCP or UDP connection, check a port, and see what a service sends back. Follow the examples to send your first message, inspect HTTP and SMTP responses, and transfer a test file without exposing sensitive data.
A comprehensive guide to using Hydra for network authentication testing with common protocols, practical examples, and security best practices.
Security · IntermediateLearn about brute force attacks, their variations, tools used, and comprehensive defense strategies including rate limiting, lockouts, and password policies.
Security · BeginnerEverything you need to know about password security, including creating strong passwords, using password managers, multi-factor authentication, and defending against attacks.
Guides · IntermediateGuide to assessing SMB security including anonymous access testing, share permission analysis, credential attacks, and hardening recommendations for Windows file shares.
The application prints each attempt in real-time, highlighting successful breaches with a distinct marker showing the service, host, username, and discovered password.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.