System Hacking · Module 06

Hydra

Fast online password-strength testing tool supporting many protocols.

ModuleModule 06PhaseSystem HackingTypeOffensivePlatformKali Linux

Definition

Hydra is a parallelized network login (credential) testing tool that supports many protocols.

Primary purpose

Test the strength of authentication by attempting login combinations against network services.

Cybersecurity use

Authorized password-strength and authentication-resilience testing during penetration tests and audits — never against systems without explicit permission.

Key features

Protocol coverage

Supports SSH, FTP, Telnet, HTTP(S) forms, SMB, RDP, databases and more.

Parallel connections

Runs multiple login attempts concurrently to speed up testing.

Flexible input

Accepts single users/passwords, wordlists, or combined user:pass lists.

Resume support

Can resume an interrupted session.

Verbose / debug modes

Detailed output for troubleshooting during a test.

Important commands

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

Test one username against a password list.

hydra -L <userlist> -P <wordlist> <target> <service>

Test a list of usernames against a password list.

hydra -C <combo.txt> <target> <service>

Use a combined user:pass list.

hydra -s <port> ...

Specify a non-default port.

hydra -t <n> ...

Set the number of parallel threads.

hydra -V ...

Verbose output showing each attempt.

Practical examples

01SSH login test
command
hydra -l admin -P rockyou.txt ssh://192.168.1.10

Purpose Tests a known username against a password list over SSH, in an authorized lab.

02FTP with user and password lists
command
hydra -L users.txt -P passwords.txt ftp://192.168.1.10

Purpose Tests combinations of usernames and passwords against FTP.

03Web login form
command
hydra -l admin -P passwords.txt 192.168.1.10 http-post-form "/login:user=^USER^&pass=^PASS^:Invalid login"

Purpose Tests a login form by submitting POST requests and matching a failure string.

Important points

  • Strict authorization required: Running Hydra without documented permission is illegal in most places and can disrupt services.
  • Account lockouts: Aggressive testing can lock out real accounts or trigger alerts — coordinate scope and timing.
  • Rate limiting: Many services throttle failed logins, affecting speed and results.
  • Not a silent tool: Attempts are logged; detection is expected and is often part of what a test evaluates.

Common use cases

Authorized password audits

Verify accounts are not using weak or default credentials.

Authentication resilience

Assess whether lockout and rate-limiting controls work.

Penetration testing

Support the credential-testing phase of a scoped engagement.

Defensive validation

Blue teams confirm monitoring catches brute-force attempts.

Learn it in context

This tool is taught in Module 06

Read the full written notes, with diagrams, defense and detection.

Open Module 06