Hydra User Guide
All credit goes to: DarkStar7471 for his THM room located here : https://tryhackme.com/room/hydra
Hydra is a brute force online password cracking tool, which can be used with a variety of protocols
Protocols that hydra can work with: Asterisk, AFP, Cisco AAA, Cisco auth, Cisco enable, CVS, Firebird, FTP, HTTP-FORM-GET, HTTP-FORM-POST, HTTP-GET, HTTP-HEAD, HTTP-POST, HTTP-PROXY, HTTPS-FORM-GET, HTTPS-FORM-POST, HTTPS-GET, HTTPS-HEAD, HTTPS-POST, HTTP-Proxy, ICQ, IMAP, IRC, LDAP, MS-SQL, MYSQL, NCP, NNTP, Oracle Listener, Oracle SID, Oracle, PC-Anywhere, PCNFS, POP3, POSTGRES, RDP, Rexec, Rlogin, Rsh, RTSP, SAP/R3, SIP, SMB, SMTP, SMTP Enum, SNMP v1+v2+v3, SOCKS5, SSH (v1 and v2), SSHKEY, Subversion, Teamspeak (TS2), Telnet, VMware-Auth, VNC and XMPP.
Official kali page:
https://en.kali.tools/?p=220
Download it (default on kali):
https://github.com/vanhauser-thc/thc-hydra
Hydra Syntax
The correct hydra syntax is depended upon the service you are going after. For example if we want to hit ftp we should use:
FTP
SSH
-l
is to specify the usernameP
is to specify a password list-t
is to specify the number of threads to run hydra with.Note: Hydra recommends no more than 4 threads, however you can run it faster with
-t 16
.
POST Web Form
Hydra can be used to brute force web logins as well.
Step 1: Determine the request made to the form (POST/GET)
Identify this in the network tab (developer tools), view the source code, or use Burp Suite.
Syntax:
http-post-form
specifies the type of form/login url
the login page URL i.e.http://dont-brute-force-me.com/login.php
:username
the form field name for the username^USER^
this tells hydra to use the username you specifiedpassword
the form field name for the password^PASS^
the password list specified in the commandLogin
the failed login messageLogin failed
is the login failure message that the form specifiesF=inncorrect
the word that appears on the page if the login fails-vV
specifies very verbose outputHydra non default ssh port:
Example Syntax
Additional Syntax Formats
Last updated