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

MD5 Hash Cracker With Python

The only thing you require for this to work is python 2.7 and a wordlist. In order for this to work place the wordlist in the same directory as the python script. This script works by hashing passwords in your wordlist and comparing them to the hash you entered. This program is super fast and runs through thousands of passwords in about one second, since it works so fast I recommend downloading the famous rockyou.txt wordlist that contains millions of passwords. Here's the code..




import md5
import os
import sys

counter = 1
print("\033[31m\n CRACK MD5 HASHES WITH A PASSWORD DICTIONARY")
os.getcwd
pass_in = raw_input("\033[32m\n Enter The MD5 Hashed Password: ")
pwfile = raw_input(" Enter The Password list: ")

try:

pwfile = open(pwfile, "r")
except IOError:
print ("\033[31m\n [!]Error: File ") + pwfile + (" Not Found")
sys.exit()

for password in pwfile:
try:
filemd5 = md5.new(password.strip()).hexdigest()
print "\033[31m [!]INCORRECT -----> Number %d: %s " % (counter, password.strip())

counter += 1
except IOError:
sys.exit()

if pass_in == filemd5:
print "\033[32m\n [+] PASSWORD FOUND: %s" % password
break
Thousands of passwords in one second isn't close to fast at all.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by jeffglasgowJul 26, 2020 09:27 PM 1 139 Jul 26, 2020 09:27 PM
Last Post: Harley Quinn
by AlexFennecMay 1, 2019 02:01 AM 0 137 May 1, 2019 02:01 AM
Last Post: AlexFennec
by kaspiyanAug 13, 2018 04:45 AM 5 521 Aug 13, 2018 04:45 AM
Last Post: toolzshop103