Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- FOR EDUCATIONAL PURPOSE ONLY
- !/usr/bin/python
- Python Script to Crack MD5 Hash Easily. [ P0C ]
- This was written for educational purpose and pentest only. Use it at your own risk.
- Author will not be responsible for any damage !!
- Toolname : md5cracker script python
- Type : 0ffline Cr@ck3R Script.
- Programmer : T@nmaY / 13lackD3Mon
- Version : 1.0
- Date : FRI FEB 27 13:24:44 WIT 2015
- Email : kevinmetnik606@gmail.com
- Platform : Windows All versions with PYTHON installed or you can make [.exe ] by Py2Exe :)
- Facebook : tanmay606
- Special thanks To G00Gl3.
- [_] Automatically save cracked hash in text file " CRACKED.txt ".
- """
- try:
- import time
- __init__='\x69\x6d\x70\x6f\x72\x74\x20\x68\x61\x73\x68\x6c\x69\x62\x3b\x69\x6d\x70\x6f\x72\x74\x20\x6f\x73\x3b'
- exec(__init__)
- except ImportError:
- print "\n"
- print "[ERROR]: You need HASHLIB and OS Module to run this script."
- print "\n"
- raw_input('Press Enter To Exit.')
- exit(1)
- def banner():
- os.system('title MD5 P@ssW0rd Cr@ck3R By: T@nmaY / 13lackD3Mon [ Writt3n In : Pyth0n ] [ IDLE ]')
- os.system('color a')
- print "*******************************************************************************"
- print "|>> MD5 P@ssW0rd Cr@ck3R | Writt3n By : T@nmaY / 13lackD3Mon <<|"
- print "*******************************************************************************"
- print "[!] Warning : I am not responsible for any harm done by this tool."
- print "[!] NOTE : Only for Educational Purpose.\n"
- def crack():
- os.system('title MD5 P@ssW0rd Cr@ck3R By: T@nmaY / 13lackD3Mon [ Writt3n In : Pyth0n ] [ CRACKING HASH ]')
- print "Please Wait Cracking Hash. . . .\n"
- print "\n"
- lenght = len(data)
- for string in data:
- lenght -= 1
- no_whitespace = string.replace('\n','')
- enc_string = hashlib.md5(no_whitespace).hexdigest()
- if(enc_string==md5hash):
- os.system('title MD5 P@ssW0rd Cr@ck3R By: T@nmaY / 13lackD3Mon [ Writt3n In : Pyth0n ] [ HASH CRACKED ! ]')
- os.system('color a')
- print "\n[CRACKED] %s : [ %s ]"%(md5hash,no_whitespace)
- cracked = open('CRACKED.txt','a+')
- text = "\n[CRACKED] %s: [ %s ]"%(md5hash,no_whitespace)
- text+="\n\n#13lackD3Mon"
- cracked.write(text)
- cracked.close()
- raw_input("\nPress Enter To Exit.");
- exit(1)
- else:
- print "[Attempt Left : %s] + trying word : %s"%(lenght,no_whitespace)
- print "\n[Error] unable to decrypt hash with provided [WORDLIST]."
- print "\n"
- raw_input('Press Enter To Exit.')
- def work():
- global data,lenght;
- try:
- file = open(dict_file)
- data = file.readlines()
- pass
- except IOError:
- print "\n[=] Error : Cant find < DICTIONARY FILE > ."
- print "\n"
- raw_input('Press Enter To Exit.');
- exit(1);
- if(len(md5hash) == 32):
- try:
- crack();
- except KeyboardInterrupt:
- print "\n Ctrl+C Pressed."
- raw_input()
- exit(1)
- else:
- print "\n[=] Error : Algorithm of md5 is not correct. [ Incorrect Hash ]"
- print "\n"
- raw_input('Press Enter To Restart.')
- while True:
- os.system('cls')
- banner();
- dict_file = raw_input('[>] Drag dictionary file : ');
- md5hash = raw_input('[>] Enter Hash : ');
- if(dict_file=='' and md5hash==''):
- print "\n[=] Error : Empty Dictionary file. Please Put One File."
- print "[=] Error : Empty Hash."
- print "\n"
- raw_input('Press Enter To Restart.');
- elif(dict_file==''):
- print "\n[=] Error : Empty Dictionary file. Please Put One File."
- print "\n"
- raw_input('Press Enter To Restart.');
- elif(md5hash==''):
- print "[=] Error : Empty Hash."
- print "\n"
- raw_input('Press Enter To Restart.');
- else:
- try:
- work();
- except KeyboardInterrupt:
- print " Ctrl+C Pressed."
- exit(1)
- #13lackD3Mon.
Add Comment
Please, Sign In to add comment