Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

The Brotherhood 

Create Your Own MD5 Hash Cracker

[Image: header4.gif]

Hi all - this tutorial is setup for MD5 hash cracking, but you can use similar code for other algorithms. I chose MD5 because it's a bit easier to work with and show the functionality of a hash cracker. Please keep in mind that if you are cracking a hash of a long string, it could take days, weeks, months, or years to crack it. For short strings, it's not going to take more than a few seconds - such as with a, abc, or other very short strings. Even at 5-6 characters in length, the cracker takes a lot longer to run, and obviously for a 10+ string that can have letters, numbers, or symbols, it can take ages.

I hope this tutorial helps you understand how a cracker works.



The Basics
Understanding the principles of cracking is important.

String: any form of text, using letters, symbols, numbers, etc.
Examples: Password, a sentence, your username, your email - all strings.

Hash: a value (in our case a normal string) that has been encrypted.
Example: the MD5 hash of "abc" is "900150983cd24fb0d6963f7d28e17f72"

It's not secure to store a user's password in "plaintext" (unencrypted format), so we encrypt it with an algorithm (such as MD5) so the encrypted version is stored instead. What if you forget your own password and only have the hash? That's when you can use a hash cracker to try to retrieve your old password!



PHP:
I am including the PHP example because of how many people use PHP and because MD5 is commonly used in PHP systems more than it's used by other languages (in my experience). Please note that PHP cracking is not going to be nearly as fast as Python or lower level languages.

Spoiler (Click to View)



Python:
I am including Python because it's faster than PHP at a lot of things, and it's also a very commonly used language.

Spoiler (Click to View)
(Jan 9, 2024 10:21 AM)johnbelton446 Wrote:  interested in this please let me know

All the source code is in the spoilers, enjoy! :)
Nice, cracking md5 hash
Very interesting information I will try it out.
(May 21, 2025 02:07 PM)SIM-5600039 Wrote:  Very interesting information I will try it out.

Thanks, hope you did. Useful for learning


Possibly Related Threads...
Thread / Author Replies Views Last Post
by HexenJun 9, 2022 04:04 AM 4 280 Jun 9, 2022 04:04 AM
Last Post: Smith1234
by webdev77Jun 2, 2021 06:30 AM 5 438 Jun 2, 2021 06:30 AM
Last Post: xZalurex
by HackDr333Feb 25, 2021 06:45 AM 4 138 Feb 25, 2021 06:45 AM
Last Post: account_