Hydra

3 min read489 words

Hydra – Fast Password Cracking Tool

Hydra is a fast and flexible online password cracking tool. It supports many protocols such as SSH, FTP, HTTP, HTTPS, SMB, RDP, and more. It performs parallelized dictionary attacks to test login credentials and password strength.

Installation / Check

Check if Hydra is installed:

which hydra

Install Hydra:

sudo apt install hydra

Basic Syntax

hydra -l <user> -P <wordlist> <target> <service>

Common Commands

SSH login testing:

hydra -l admin -P /usr/share/wordlists/rockyou.txt 192.168.1.1 ssh

FTP login testing with multiple users:

hydra -L users.txt -P passwords.txt 192.168.1.1 ftp

Telnet login testing:

hydra -l admin -P wordlist.txt 192.168.1.1 telnet

MySQL authentication testing:

hydra -l root -P wordlist.txt 192.168.1.1 mysql

Limit parallel connections:

hydra -l admin -P wordlist.txt -t 4 192.168.1.1 ssh

Verbose mode (show each attempt):

hydra -l admin -P wordlist.txt -V 192.168.1.1 ssh

Stop after first successful login:

hydra -l admin -P wordlist.txt -f 192.168.1.1 ssh

Try additional password patterns:

hydra -l admin -P wordlist.txt -e nsr 192.168.1.1 ssh

Save results to a file:

hydra -l admin -P wordlist.txt -o results.txt 192.168.1.1 ssh

HTTP POST form testing:

hydra -l admin -P wordlist.txt 192.168.1.1 http-post-form "/login:user=^USER^&pass=^PASS^:Invalid"

HTTP GET form testing:

hydra -l admin -P wordlist.txt 192.168.1.1 http-get-form "/login:user=^USER^&pass=^PASS^:F=incorrect"

HTTPS POST form testing:

hydra -l admin -P wordlist.txt 192.168.1.1 https-post-form "/login:user=^USER^&pass=^PASS^:F=failed"

Use username:password combo file:

hydra -C userpass.txt 192.168.1.1 ssh

Custom port:

hydra -l admin -P wordlist.txt -s 2222 192.168.1.1 ssh

Multiple targets:

hydra -M targets.txt -l admin -P wordlist.txt ssh

Set timeout:

hydra -l admin -P wordlist.txt -w 30 192.168.1.1 ssh

RDP login testing:

hydra -l admin -P wordlist.txt 192.168.1.1 rdp

SMB authentication testing:

hydra -l admin -P wordlist.txt 192.168.1.1 smb

VNC login testing:

hydra -l admin -P wordlist.txt 192.168.1.1 vnc

Domain account testing:

hydra -l admin@domain -P wordlist.txt 192.168.1.1 smb

Email (POP3) login testing:

hydra -l admin -P wordlist.txt 192.168.1.1 pop3

Email (IMAP) login testing:

hydra -l admin -P wordlist.txt 192.168.1.1 imap

Generate custom passwords:

hydra -l admin -P wordlist.txt -x 6:8:aA1 192.168.1.1 ssh

Step-by-Step Guide

  1. Identify the target service (SSH, FTP, HTTP, etc.)
  2. Prepare a wordlist (e.g., rockyou.txt)
  3. Identify valid usernames
  4. Run Hydra with appropriate options
  5. Monitor results for successful logins
  6. Stop once valid credentials are found
  7. Document findings properly

Understanding the Output

  • Displays each attempt using [DATA]
  • Successful login format:
[PORT][SERVICE] host: <IP> login: <USER> password: <PASS>
  • Successful attempts are clearly highlighted
  • Shows which credentials worked on which service

⚠️ Legal Warning

Use password testing tools only on systems you own or have explicit permission to test. Unauthorized use is illegal.

Keep learning. Keep building. Keep growing.

© 2026 Ugenz Academy