Showing posts with label hack. Show all posts
Showing posts with label hack. Show all posts

Saturday, July 30, 2011

Great USB Drive for BackTrack Users

Many people have asked me to recommend a good flash drive that they can use for a live, bootable version of BackTrack. While there are many different drives out there, the one drive that caters to the needs of the BackTrack user is the 4GB BackTrack USB Drive from ZBrown Technology Electronics. This drive is only available to users through this blog and is complete with the latest copy of BackTrack ready to boot! More details about the drive can be found on the site by following the link below.

The drive is only $19.99 USD (Includes BackTrack 5) and ships to anywhere in the United States! If anyone outside the US would like to purchase one, please send me an email (i7hacking@hotmail.com) and I will reply with a forgien registration link, which will allow you to register and order on the site.

To order this drive:  click here!
To visit ZBrown Technology Electronics: click here!

Thursday, July 21, 2011

Crack WPA2 PSK with BackTrack [Using airmon-ng, airodump-ng, aireplay-ng and aircrack-ng]

Introduction:

I have had several people come to me and ask about how to crack WPA2 networks using BackTrack. While cracking WPA2 is actually a fairly simple task, it is also VERY time consuming. Once you have the security key, you have to decrypt it. This is usually done using a bruteforce attack on the encrypted data. Bruteforcing a key could take minutes, hours, days or even weeks. This all just depends on how strong your dictionary is.

In this tutorial, I will guide you through the steps of cracking WPA2 using a bruteforce with John The Ripper.

I will assume that you have already booted Backtrack and have a Konsole window open. I will also assume that you know the name of your wireless interface. For this tutorial, I'll refer to the interface as [INT].

Step 1:

The first thing that you need to do is put your wireless card in monitor mode. This will allow the card to capture all of the data we need. To do this, simply issue airmon-ng start [INT] in your Konsole window.

Step 2:

Now that the wireless crad is monitoring, we need to find a wireless network that uses the WPA2 encryption. To do this, just issue airodump-ng [INT] in the same Konsole window. This will display a list of the wireless networks in range. Choose one that has WPA in the ENC column.

Step 3:

Once you have found your target network (For legal purposes, I'll assume this is your network. ), note the BSSID, the channel, and the ESSID of the network. You'll need this information later on.

Now you need to stop airodump. This can be done by pressing Ctrl - C combination on the keyboard. After airodump has been stopped, you'll need to start it again, this time writing the packets it collects to a local file. We will need this later for decryption. You can do this by issuing the following command in the same Konsole: airodump-ng [INT]--channel [CH] --bssid [BSSID] -w /tmp/wpa2 

Step 4:

In order to collect the security key, we need to capture a 4 - way handshake between a connecting client and the access point. This can be done two ways. You can wait for a new client to connect to the network, or you can deauthenticate an existing client and force it to reassociate. We will force deauthentication. In order for this to work, you will need the MAC address of one of the existing clients on the network. This can be found pretty easily, so I will not cover it in this tutorial. After you have the MAC of a client, issue this command in a new Konsole window: aireplay-ng -0 1 -a [BSSID] -c [CLIENT MAC] [INT]

Finally: 

After you have executed the command in step 4, an existing client will be forced to reassociate with the AP and we will be there to collect the 4 way handshake. If this was successful, airodump (in the other Konsole window) will indicate "WPA Handshake:" in the upper right hand corner.

Once airodump has indicated the handshake, we have collected to key and written it to the local file we specified on the end of the command in step 3. The next thing we need to do is decrypt the key. This is an incredibly long, boring task. This is the part that consumes the most time. It could take minutes, hours, days or weeks depending on the speed and performance of your computer. For decryption, we'll use John The Ripper to bruteforce the key. After stopping airodump in the current window, issue the following command:
/pentest/password/jtr/john --stdout --incremental:all | aircrack-ng -b [BSSID -w - /tmp/wpa2*.cap 

This command starts John The Ripper. John The Ripper generates all of the possible combination and feeds them in to aircrack, which actually decrypts the key when the right combination is found. 

Conclusion: 

So, we used John The Ripper, airmon-ng, airodump-ng, aireplay-ng, aircrack-ng and John The Ripper to crack a WPA2 network. As I stated above, the final step can take a VERY LONG time to complete, so allow yourself plenty of time. 

If you have any questions or comments, please feel free to let me know!

Did you know that i7's Guide to hacking can be delivered daily to your kindle devices? Subscribe Now! 

Friday, July 15, 2011

Decrypt MD5 Hash

Introduction:

The most popular type of encryption for usernames, passwords and other important information is MD5. It is strong, one-way and overall, pretty secure. The only problem is, once you have encrypted so many different strings into an MD5 hash, you begin to realize how the encryption works and begin to realize a mathmatical pattern of sorts.

Due to the everyday use of this encryption, it is now very easy to decrypt an MD5 Hash. The best part is, it doesn't even require any programming.

This post will walk you through the easy step of decrypting a hash using MD5Decryption.com. I will assume you already have your MD5 hash ready and that you have opened MD5Decryption.com in your browser.

Step 1:

Actually, this should be the Finally heading! There is only one major step. Just paste the MD5 string into the text box at the bottom of the page, then choose 'Decrypt'! For this post, we'll use this hash:

5687928ebab58b39f8814dfc33cdfab1

Which decrypts to this string:

testmd5string12




After it checks the hash, it will decrypt it then display it on the screen! Your done!




Monday, July 11, 2011

Easily Crack WEP With BackTrack [Using aimon-ng, airodump-ng an aircrack-ng]

Introduction

If you have ever thought about hacking, a wireless network is most likely the first thing you wanted to hack, at least if was for me. While it might seem a little overwhelming, it actually isn't. A WEP network can be hacked in as little as a couple minutes. Yes, WEP is not widely used anymore, but many people still use this encryption for their networks. In this post, I will walk you through the steps of hacking a WEP network and decrypting the key. I will assume that you already have BackTrack booted and have a Konsole window open.

Step 1:

The first thing we need to do is change the MAC Address of the wireless card. We spoof this address so we will be able to associate with the access point. To do this, we first need to put the interface down. We do this by issuing the following command in our open Konsole window:  ifconfig wlan0 down

NOTE: Usually, the wireless interface is called wlan0, but in some rare cases, it has been named wlan. To find out which is yours, issue the following command:   airmon-ng 

Step 2:   

Now that the wireless interface has been disabled,  we need to spoof our MAC Address. This can be done by issuing the following command in the Konsole window:  macchanger --mac 00:11:22:33:44:55 wlan0

Step 3:

Now we need to not only put the wireless interface back up, but we also need to start it in monitor mode. This way we can collect the packets we need to decrypt the key later on.  To do this, we simply issue the following command in our Konsole window:  airmon-ng wlan0 start

Step 4:

Now we get to start the fun part! We need to find a network the uses the WEP encryption. To see a list of the available networks, run the following command:  airodump-ng wlan0

After you have chosen your target network (for legal purposes, I will assume it is yours ), we need to start collecting the packets that are being sent between the access point and the clients. To do this, issue the following command: airodump-ng -c [CHANNEL] -w [FILENAME] --bssid [BSSID] wlan0

NOTE: Replace the brackets ( [] ) and the data inside with the proper values displayed by airdump-ng wlan0.

Step 5: 
Now, we have begun collecting packets that are being sent between the access point and the clients. Depending on how many people are using the network, this may take some time. In most cases, there won't be a large number of clients on the network. So, let's speed things up by adding some fake traffic to the network. In order to fake network traffic, the wireless interface has to be associated with the access point. Do this by issuing the following command in a new Konsole window:   
aireplay-ng -1 0 -a [BSSID] -h 00:11:22:33:44:55 wlan0

After you see a message alerting you that association was successful, issue the following command in that same Konsole window:

aireplay-ng -3 -b [BSSID] -h 00:11:22:33:44:55 wlan0


After running that command, your other console window will begin collecting data fairly fast. You can keep an eye on the number of packets collected by the number displayed under the #Data heading in the Konsole running airodump-ng.

Finally:  

After you have collected several thousand (You might even need several hundred thousand ) packets, stop everything and run the following command to decrypt the network key:   

aircrack-ng -b [BSSID] [FILENAME-01.cap]

This may take a while, just be patient. After aircrack-ng has run, it will let you know whether it was able to decrypt the key or not. If it wasn't, then try it again, only collect more packets. If it was able to decrypt the key, it will display it on the Konsole window!

Conclusion:

Ther you have it! You have just hacked a wireless network using the WEP traffic encryption!