top of page

Hydra | Brute force

Hydra is a parallelized login cracker which supports numerous protocols to attack. It is very fast and flexible, and new modules are easy to add. This tool makes it possible for researchers and security consultants to show how easy it would be to gain unauthorized access to a system remotely.


It supports: Cisco AAA, Cisco auth, Cisco enable, CVS, FTP, HTTP(S)-FORM-GET, HTTP(S)-FORM-POST, HTTP(S)-GET, HTTP(S)-HEAD, HTTP-Proxy, ICQ, IMAP, IRC, LDAP, MS-SQL, MySQL, NNTP, Oracle Listener, Oracle SID, PC-Anywhere, PC-NFS, POP3, PostgreSQL, RDP, Rexec, Rlogin, Rsh, SIP, SMB(NT), SMTP, SMTP Enum, SNMP v1+v2+v3, SOCKS5, SSH (v1 and v2), SSHKEY, Subversion, Teamspeak (TS2), Telnet, VMware-Auth, VNC and XMPP.


Installing Hydra on Linux:

Create some files into hydra folder:

Edit your new text files, inserting some supposed logins and passwords:


> login.txt:

> pass.txt:


Now type the command below to run your script:


In this case, I insert "admin" as username... You can change it, it's up to you

One more example:


Multiple Feature of Hydra:


-R :                              restore a previous aborted/crashed session

-I :                               ignore an existing restore file.

-S :                              perform an SSL connect

-s :                              PORT   if the service is on a different default port, define it here

-l LOGIN or -L :                FILE login with LOGIN name, or load several logins from FILE

-p PASS  or -P :               FILE  try password PASS, or load several passwords from FILE

-x MIN:MAX:CHARSET : password bruteforce generation, type “-x -h” to get help

-e nsr :                         try “n” null password, “s” login as pass and/or “r” reversed login

-u :                              loop around users, not passwords (effective! implied with -x)

-C FILE :                        colon separated “login:pass” format, instead of -L/-P options

-M FILE :                       list of servers to be attacked in parallel, one entry per line

-o FILE :                        write found login/password pairs to FILE instead of stdout

-f / -F :                         exit when a login/pass pair is found (-M: -f per host, -F global)

-t TASKS :                      run TASKS number of connects in parallel (per host, default: 16)

-w / -W TIME :                wait time for responses (32s) / between connects per thread

-4 / -6 :                         prefer IPv4 (default) or IPv6 addresses

-v / -V / -d :                    verbose mode / show login+pass for each attempt / debug mode

-U :                              service module usage details

server :                         the target server (use either this OR the -M option)

service :                         the service to crack (see below for supported protocols)

OPT :                            some service modules support additional input (-U for module help)



The real attack output is something like that:

Be careful, because your IP will also logged into the attacked equipment.

28 views0 comments

Recent Posts

See All

Cyrillic Alphabet

Exploring the Cyrillic Alphabet: A Beginner's Guide Have you ever come across the Cyrillic alphabet and wondered what it's all about? Maybe you've seen it on Russian websites, or perhaps you've notice

MacOS | Recording a Packet Trace

A packet trace is a record of traffic traveling across the network. It’s useful for investigating complex network problems related to both correctness and performance. Once you start a packet trace on

DNS Guard

Absolutely everything is connected to the internet these days, from TV to smart light bulbs, from mobile devices to smart cars. Given those ads and ad trackers are everywhere on the Internet, a browse

Comments


bottom of page