RE: [HC Official] MD5 Hash Cracker 03-27-2013, 10:51 AM
#11
@lixon: Thank you and I'm glad you liked it.
@Anima Templi Here's is the source code:
@Anima Templi Here's is the source code:
Code:
import hashlib
import os.path
import sys
def hc():
print('''
_ _ _ ___ _ _
| || |__ _ __| |__ / __|___ _ __ _ __ _ _ _ _ (_) |_ _ _
| __ / _` / _| / / | (__/ _ \ ' \| ' \ || | ' \| | _| || |
|_||_\__,_\__|_\_\ \___\___/_|_|_|_|_|_\_,_|_||_|_|\__|\_, |
___ __ __ _ _ _ _____ _ |__/
/ _ \ / _|/ _(_)__(_)__ _| | |_ _|__ ___| |
| (_) | _| _| / _| / _` | | | |/ _ \/ _ \ |
\___/|_| |_| |_\__|_\__,_|_| |_|\___/\___/_|
8 8 8""""8
8 8 eeeee eeeee e e 8 " eeeee eeeee eeee e e eeee eeeee
8eee8 8 8 8 " 8 8 8e 8 8 8 8 8 8 8 8 8 8 8
88 8 8eee8 8eeee 8eee8 88 8eee8e 8eee8 8e 8eee8e 8eee 8eee8e
88 8 88 8 88 88 8 88 e 88 8 88 8 88 88 8 88 88 8
88 8 88 8 8ee88 88 8 88eee8 88 8 88 8 88e8 88 8 88ee 88 8
| Ex094 | http://www.gigadev.tk |
''')
def hashcrack():
hc()
database = []
hashes = []
#Import hash
md5_hash = input('Input your MD5 Hash: ').strip()
#Import Dictionary
file = input('Input Your Dictionary Location: ').strip()
intcheck = os.path.isfile(file)
if intcheck == True:
handle = open(file, 'r')
read = handle.readlines()
wordlist = [x.strip('\n') for x in read]
else:
sys.exit()
#print(wordlist) #Debug Only
#Save the words from the Dictionary into an array
for words in wordlist:
database.append(words)
#print(database) #Debug Only
#Pick each word from the Dictionary from the array
for words in database:
#Convert the word into an md5 hash
get_hash = hashlib.md5()
get_hash.update(words.encode('utf8'))
hashes.append(get_hash.hexdigest())
get_hashes = ''
#print(hashes) #Debug Only
#Compare the hash with the original one and print the result
for hsh in hashes:
if hsh == md5_hash:
val = hashes.index(md5_hash)
print('Hash Cracked! Your Hash String is:', database[val])
os.system('pause')
break
else:
print('Comparing Hash....', hsh)
hashcrack()