![]() |
Cracking MD5 hashes using Rainbow Tables
IntroductionWe have all heard of rainbow tables, which will be used to crack passwords and hashes. In this tutorial we will learn how to crack md5 hashes using rainbow tables. Tools u should haveThese are the tools u should have inorder to utilize this tutorial.
Creating rainbow tablesRainbow tables can be created for various kind of hashes. e.g lm,fastlm,nt,md5 etc. Here we are going to stick with md5 hashes alone. MD5 hashesMD5 hashes will be seen in sql databases. If u crack a site with SQL injection you will be shown with the username and md5 hashed password, for e.g 'admin:bc8f87a21501ae15a48d77a91513c3a7'. So one has to crack or decrpyt the md5 hashes to enter into that site. Creating rainbow tablesI have a set of hashes whose passwords are 4-6 in length. All are numeric passwords. So i will explain how to create rainbow tables for this type of passwords.
Explanation of the settingsThe picture below shows the setting for our case. http://www.go4expert.com/images/arti...0429220230.jpg Click ok in the table generator to create the table. Wait for it to complete. It will take a little extra time than it is showing in the benchmark. The time is for arranging the tables. It will do some kind of internal processing. Cryptanalysis AttackAfter creating the tables we are going to start the cryptanalysis attack of an md5 hash using the tables.
ResultsIn the picture(1), See the ‘Max cryptanalysis time’ . The cracking will take a little longer than that. It also depends on how speed your computer is. After few seconds, the result is shown like this, Code:
Hash:286c9c72ce04c511e8b4ed91e1fa9a24 Plain:071678 (Hex:303731363738)NOTE: Since these hashes are very small in length, even a brute force attack will reveal the plain texts. But I used rainbow tables for the purpose of simplicity and portability. U can create your own tables with the character set you need. Custom character set is also possible. For example you are watching a person who is typing his password, you are having an eye on his keyboard moves. If you are sure that he uses only numeric and symbols for his password. You can start cracking the hashes (if u get it by some means) by creating the tables with symbols and numbers alone.
|
Re: Cracking MD5 hashes using Rainbow Tables
5/10
|
Re: Cracking MD5 hashes using Rainbow Tables
|
Re: Cracking MD5 hashes using Rainbow Tables
good post, gonna try this. please post more about the uses of Cain & Abel. it will be very useful for most the readers..
|
Re: Cracking MD5 hashes using Rainbow Tables
very nice thanX :D
|
Re: Cracking MD5 hashes using Rainbow Tables
I don't really get this !?!
(1) Can we reverse a crypto-hash ?? :confused: There can be infinitely many arbitrary data blocks with the same MD5. As I saw in your article, you make some assumption about the data : such as numeric, or uses special symbols etc .. But what if you have no idea AT ALL ?? (2) If the data-block is combined with a random salt before generating MD5 hash, then ?? Rainbow tables are almost useless ! |
Re: Cracking MD5 hashes using Rainbow Tables
Quote:
(1) No. And if u have no idea at all u can make an assumption that the password length may be with 4-10 chars and u can use all char set to create rainbow tables. I just demonstrated it for numeric cos of the time constraint. If u re free enough to create a rainbow tables of size 80 GB or more create it and crack it. (2) In real time most of the sites give unsalted passwords by SQL injection. And no one is gonna combine with random salt for an admin password. see the last part of the article (FAQ's) I have clearly said this is used for cracking the passwords which we get from SQL injection. I am not dealing with any kinda data that is hashed or salted with MD5. |
Re: Cracking MD5 hashes using Rainbow Tables
|
Re: Cracking MD5 hashes using Rainbow Tables
Winner of Article of the month - April 2009
|
| All times are GMT +5.5. The time now is 09:14. |