What is this?
Hydra is a parallelized network login cracker by van Hauser / THC: a proof-of-concept tool showing researchers and security consultants how easily a remote system can be broken into through weak passwords. It supports over 50 protocols.
Is it a command-line tool or does it have a GUI?
It's a CLI at heart: entering hydra shows a short summary of key options and ./hydra -h lists all of them. Linux users additionally get a GTK GUI called xhydra.
How do I get it running?
Clone the repo and run ./configure, then make and make install. The easier route is pulling Hydra as a Docker container; prefer releases, since the GitHub dev version 'contains new features and new bugs'.
Which libraries do I need before compiling?
The SSH module needs libssh — not libssh2 — and on macOS you must compile it yourself rather than use Homebrew's. On Ubuntu/Debian a single apt command installs the optional libraries; Oracle, SAP R/3, NCP and AFP modules must come from their vendors.
What are the main gotchas when attacking a target?
Everything is IPv4-only by default; pass -6 to switch to IPv6-only attacks. Telnet is unreliable for detecting valid logins, and no wordlists ship with the tool — dpl4hydra.sh generates a default password list.
Does it run on Windows, or is it Unix-only?
Windows works through Cygwin. It compiles cleanly on Linux, Windows/Cygwin, Solaris, FreeBSD/OpenBSD, QNX and macOS, and also runs on mobile systems based on Linux, macOS or QNX, such as Android or Blackberry 10.
Is there anything unusual about its license?
It's AGPLv3, with a distinctive author's request: don't use Hydra in military or secret service organizations or for anything illegal — it's meant for legal security testing only (the request is non-binding).
Which services can it attack?
Over 50 protocols: SSH (v1/v2) and SSH keys, FTP, HTTP/HTTPS forms and proxies, SMB, RDP, Telnet, SMTP, POP3, IMAP, LDAP, MySQL, Postgres, MongoDB, Oracle, VNC, SIP, SNMP, SOCKS5 and many more. The module engine is intentionally simple, so new services get added over time.
How do I feed it logins, passwords and targets?
Logins and passwords can be single values (-l/-p), text files (-L/-P), login-as-password or empty-password tries (-e nsr), colon-separated login:password pairs (-C) or generated brute-force combinations (-x). Targets: one host, a CIDR range like 192.168.0.0/24, or a host list file via -M.
What happens if a run gets interrupted?
Hydra leaves a hydra.restore file, rewritten every 5 minutes, with everything needed to resume the aborted session. It can't be copied to a different platform, e.g. from little endian to big endian.
How fast is it, and how do I make attacks quicker?
Parallel connections make it very fast — POP3 and FTP are the quickest protocols — and the -t option raises the number of parallel tasks (too high can disable the target service). Sort wordlists by likelihood, uniq them, and pre-filter with the bundled pw-inspector tool.
What are similar projects?
masscan, evilginx2, shannon, bbot, Full-Chain-Sentinel-System, social-engineer-toolkit, airgorah, fsociety
Which topics is it in?
password-cracking, security-testing, bruteforce, pentest-tool, pentesting-tools, pentest, unix, hacking-tool, network-security, offensive-security, pentesting, penetration-testing