Hack Forums
[The Brotherhood] Create Your Own MD5 Hash Cracker - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4)
+----- Forum: Hacking Tutorials (https://hackforums.net/forumdisplay.php?fid=47)
+----- Thread: [The Brotherhood] Create Your Own MD5 Hash Cracker (/showthread.php?tid=6260634)



Create Your Own MD5 Hash Cracker - Hackers - Jan 9, 2024

[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)


RE: Create Your Own MD5 Hash Cracker - Hackers - Jan 9, 2024

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

All the source code is in the spoilers, enjoy! :)


RE: Create Your Own MD5 Hash Cracker - Kaushal@67 - May 7, 2025

Nice, cracking md5 hash


RE: Create Your Own MD5 Hash Cracker - SIM-5600039 - May 21, 2025

Very interesting information I will try it out.


RE: Create Your Own MD5 Hash Cracker - Hackers - Mar 16, 2026

(May 21, 2025 02:07 PM)SIM-5600039 Wrote:  Very interesting information I will try it out.

Thanks, hope you did. Useful for learning