Join us at IRC!
It is never to LATE to become what you never WERE.
Monday, May 21, 2012
Navigation
Members Online
Total Online: 41
Web Spiders: 19
Guests Online: 35
Members Online: 6

Registered Members: 70127
Newest Member: yummy05
Latest Articles

Hydra: Brute-Forcing Passwords (Dictionary Attacks)



FLV Blaster - Download Music and Videos Faster

website security Brute-Forcing Logins on Remote Services.



Hydra: Brute-Forcing Passwords with Dictionary Attacks

1."In computer science, a brute-force search consists of systematically enumerating every possible solution of a problem until a solution is found, or all possible solutions have been exhausted."

For some reason, or another, you might be desperate for a password of a user. You might know, or not know the user's name. However, to make the chances for the brute-force to be succesful, at least, supply a username, so that all that is left is the password. Thus, increasing your probability of success to find the missing password.

Now, brute-forcing consists of three 3 different types of attacks to find the missing string we're looking for. The 3 attack types are:

a. Cryptanalysis Attacks -- Attempt to try every possible string
b. Dictionary Attacks -- Try to match the missing string with one in a dictionary file or password list.
b. Hybrid Attacks -- Both Cryptanalysis and Dictionary attack.

For learning purposes, you need to only concentrate on dictionary attacks, since brute forcing takes a VERY long time (most of the time) and demands a lot of processing speed. Also, note that Hybrid attacks might go beyond the scope of this article, so I dare NOT start I will not finish in this article.

So, say you're connected to a server, and assuming you knew the name of the username, and you want the password, a method to get that password will be done with a dictionary file and this handy-dandy tool at our disposal called "Hydra", which attemps to brute-force logins for several servers running TELNET, FTP, HTTP, etc.

For example to do this, we simply download it, install it and run it.


Ok, if the install was successful, then let's procede with running an attack on say, a server running an HTTP server that requires authentication. To do so, simply run the following commands on your shell terminal (CMD prompt):

hydra -L usernames.txt -P passwords.txt www.victim.org http

Logically, we'd put in the user's name in the usernames.txt file, and replace out dictionary file or password list with passwords.txt (you can add your own guesses to it; I'd recommend putting them at the top of the file, since it is processed from TOP to BOTTOM).

Note that for the dictionary, you download from the internet and mash them together to create even bigger ones. Or you can get a password generator or a scblockedript to output results in a file. With that method, you can control how long the strings are (that's effective when you know how long the password to be cracked is).

And finally, we put out victim's hostname there, with "http" following soon after, with a space to separate the hostname and the protocol (in this case, http).

Since, we can specify which protocol to use, why not try it with an FTP server. To do this we simply modify the command above to fit our request:

hydra -L usernames.txt -P passwords.txt ftp.victim.org ftp

So, be creative, and use it for other protocols as well, not just FTP and HTTP. We can even brute-force a telnet login, as such:

hydra -L usernames.txt -P passwords.txt telnet.victim.org telnet

Keep in mind, however, that the service you're brute-forcing needs to be running on the server, so that you, the client, can connect to it (or in this case, hammer it with a brute-force).

- netfish

Always Remember!
1: Netfish is RIGHT.
2: If {you think Netfish is WRONG} then SLAP YOURSELF, and goto the FIRST POINT.

HYDRA (download)
http://www.thehackerschoice.com/releases.php

Dictionary files (there are millions on the net):
http://www.governmentsecurity.org/forum/index.php?showtopic=81&st=0%EF%BF%BDentry13

sources:
1. en.wikipedia.org/wiki/Brute-force

Comments

mastergamer on February 09 2007 - 07:46:57
Great article, however, the governmentsecurity.org download links are broken, and the hydra page is http://www.thc.org/thc-hydra/
-The_Flash- on February 09 2007 - 10:51:02
Excellent article
Night_Stalker on February 09 2007 - 18:44:35
.....................DOTS................
Night_Stalker on February 09 2007 - 18:46:05
great articale
smack300 on February 10 2007 - 01:43:23
sweet article dude, man u pump out some great stuff!
Uber0n on February 13 2007 - 11:47:57
Well done B)
Post Comment

Sorry.

You must have completed the challenge Basic 1 and have 100 points or more, to be able to post.
Ratings
Rating is available to members only.

Please login or register to vote.

Awesome! 50% [5 Votes]
Very Good 40% [4 Votes]
Good 0% [No Votes]
Average 0% [No Votes]
Poor 10% [1 Vote]
Guest
Username

Password

Remember Me


Bookmark This Page
Affiliates
Adverts

 

 

Links
By using, viewing or obtaining any information contained on this site, you agree to the disclaimer.

© HellBound Hackers 2008- 2009. Since 3rd December 2004.