hydra v9.1 released: Added memcached/mongodb module
THC-Hydra is a very fast (multi-threaded) network logon cracker which supports many different services: AFP, Cisco, cisco-enable, CVS, Firebird, ftp, http-get, http-head, http-proxy, https-get, https-head, https-form-get, https-form-post, ICQ, IMAP, IMAP-NTLM, ldap2, ldap3, MySQL, mysql, NCP, nntp, oracle-listener, PCAnywhere, pcnfs, pop3, pop3-NTLM, Postgres, rexec, rlogin, rsh, sapr3, sip, smb, smbnt, SMTP-auth, SMTP-auth-NTLM, SNMP, socks5, ssh2, svn, TeamSpeak, telnet, vmauthd, vnc.
THIS TOOL IS FOR LEGAL PURPOSES ONLY!
- enable gcc 10 support for xhydra too 🙂
- rdb: support for libfreerdp3 (thanks to animetauren)
- new module: smb2 which also supports smb3 (uses libsmbclient-dev) (thanks to Karim Kanso for the module!)
- oracle: added success condition (thanks to kazkansouh), compile on Cygwin (thanks to maaaaz)
- rtsp: fixed crash in MD5 auth
- svn: updated to support past and new API
- http: now supports F=/S= string matching conditions (thanks to poucz@github)
- http-proxy: buffer fix, 404 success condition (thanks to kazkansouh)
- mysql: changed not to use mysql db as a default. if the user has not access to this db auth fails …
- sasl: buffer fix (thanks to TenGbps)
- fixed help for https modules (thanks to Jab2870)
- added -K command line switch to disable redo attempts (good for mass scanning)
- forgot to have the -m option in the hydra help output
- gcc-10 support and various cleanups by Jeroen Roovers, thanks!
- added .clang-format and formatted all code
git clone https://github.com/vanhauser-thc/thc-hydra.git
PROTOCOL is the protocol you want to use for attacking, e.g. ftp, smtp, http-get or many others are available TARGET is the target you want to attack MODULE-OPTIONS are optional values which are special per PROTOCOL module
FIRST – select your target you have three options on how to specify the target you want to attack:
- a single target on the command line: just put the IP or DNS address in
- a network range on the command line: CIDR specification like “192.168.0.0/24”
- a list of hosts in a text file: one line per entry (see below)
SECOND – select your protocol Try to avoid telnet, as it is unreliable to detect a correct or false login attempt. Use a port scanner to see which protocols are enabled on the target.
THIRD – check if the module has optional parameters hydra -U PROTOCOL e.g. hydra -U smtp
FOURTH – the destination port this is optional! if no port is supplied the default common port for the PROTOCOL is used. If you specify SSL to use (“-S” option), the SSL common port is used by default.
If you use “://” notation, you must use “[” “]” brackets if you want to supply IPv6 addresses or CIDR (“192.168.0.0/24”) notations to attack: hydra [some command line options] ftp://[192.168.0.0/24]/ hydra [some command line options] -6 smtps://[2001:db8::1]/NTLM
Note that everything hydra does is IPv4 only! If you want to attack IPv6 addresses, you must add the “-6” command line option. All attacks are then IPv6 only!
If you want to supply your targets via a text file, you can not use the :// notation but use the old style and just supply the protocol (and module options): hydra [some command line options] -M targets.txt ftp You can supply also port for each target entry by adding “:” after a target entry in the file, e.g.:
Note that if you want to attach IPv6 targets, you must supply the -6 option and must put IPv6 addresses in brackets in the file(!) like this:
Copyright (C) vanhauser-thc