How to Crack Online Passwords Using THC-Hydra in Kali Linux

crack online_thc hydra_kali linux-

There is tool that is excellent for cracking online passwords and it is called THC-Hydra. Fortunately, it is built into our Kali distribution, so we don’t need to download, install, or compile anything to use it.

Step 1: Download & Install Tamper Data

Before we start with THC-Hydra, let’s install another tool that complements THC-Hydra. This tool is known as “Tamper Data”, and it is a plug-in for Mozilla’s Firefox. Since our IceWeasel browser in Kali is built on the open source Firefox, it plugs equally well into Iceweasel.
Tamper Data enables us to capture and see the HTTP and HTTPS GET and POST information. In essense, Tamper Data is a web proxy similar to Burp Suite, but simpler and built right into our browser.
Tamper Data enables us to grab the information from the browser en route to the server and modify it. In addition, once we get into more sophisticated web attacks, it is crucial to know what fields and methods are being used by the web form, and Tamper Data can help us with that as well.
Let’s download it from here and install it into Iceweasel.

Step 2: Test Tamper Data

Now that we have Tamper Data installed into our browser, let’s see what it can do. Activate Tamper Data and then navigate to any website. Below you can see that I have navigated to Bank of America and Tamper Data provides we with each HTTPS GET and POST request between my browser and the server.

When I try to login to the site with the username “hacker”, Tamper Data returns to me all the critical info on the form. This information will be useful when we begin to use Hydra to crack online passwords.

Step 3: Open THC Hydra

Now that we have Tamper Data in place and working properly, let’s open Hydra. You can find it at Kali Linux -> Password -> Online Attacks -> Hydra. You can see it about midway among the list of online password cracking tools.

Step 4: Understand the Hydra Basics

When we open Hydra, we are greeted with this help screen. Note the sample syntax at the bottom of the screen. Hydra’s syntax is relatively simple and similar to other password cracking tools.
Let’s take a look at it further.
hydra -l username -p passwordlist.txt target
The username can be a single user name, such as “admin” or username list,passwordlist is usually any text file that contains potential passwords, andtarget can be an IP address and port, or it can be a specific web form field.
Although you can use ANY password text file in Hydra, Kali has several built in. Let’s change directories to /usr/share/wordlists:
kali > cd /usr/share/wordlists
Then list the contents of that directory:
kali > ls
You can see below, Kali has many word lists built in. You can use any of these or any word list you download from the web as long as it was created in Linux and is in the .txt format.

Step 5: Use Hydra to Crack Passwords

In the example below, I am using Hydra to try to crack the “admin” password using the “rockyou.txt” wordlist at on port 80.

Using Hydra on Web Forms

Using Hydra on web forms adds a level of complexity, but the format is similar except that you need info on the web form parameters that Tamper Data can provide us.
The syntax for using Hydra with a web form is to use <url>:<formparameters>:<failure string> where previously we had used the target IP. We still need a username list and password list.
Probably the most critical of these parameters for web form password hacking is the “failure string”. This is the string that the form returns when the username or password is incorrect. We need to capture this and provide it to Hydra so that Hydra knows when the attempted password is incorrect and can then go to the next attempt.

You may also like...

2 Responses

  1. I am sure this paragraph has touched all the internet viewers, its really really good piece of writing on building up new web site.

  2. Thanks for the guidelines shared using your blog. Another thing I would like to convey is that weight-loss is not information about going on a celebrity diet and trying to shed as much weight as possible in a couple of weeks. The most effective way in losing weight is by acquiring it little by little and right after some basic tips which can allow you to make the most from your attempt to shed weight. You may realize and be following some tips, but reinforcing awareness never hurts.