-
Notifications
You must be signed in to change notification settings - Fork 0
/
hashkiller3.py
60 lines (54 loc) · 1.65 KB
/
hashkiller3.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#! by XnuversXploitXen
#! usr/bin/python3
import hashlib, os, time
os.system('clear') #linux
os.system('cls') #windows
print('''
_ _ _ _ ___ _ _
| | | | __ _ ___| |__ | |/ (_) | | ___ _ __
| |_| |/ _` / __| '_ \| ' /| | | |/ _ \ '__|
| _ | (_| \__ \ | | | . \| | | | __/ |
|_| |_|\__,_|___/_| |_|_|\_\_|_|_|\___|_|
############### by XnuversXploitXen ###############
''')
print ("https://mykingbee.blogspot.com/?m=0")
print ("XnuversXploitXen From Indonesia")
wd = input('Wordlist to use: ')
hash = input('Type a hash to crack: ')
hasht = input('Type the hash type : ')
acpt = ['md5', 'sha1', 'sha224', 'sha256', 'sha384', 'sha512']
if hasht not in acpt:
print('[!] Hash not suported!')
print('[*] Suported hashes: ')
print('[+] md5, sha1, sha224, sha256, sha384, sha512')
exit()
start = time.time()
list = open(wd)
text = list.readlines()
encontrado = 0
for word in text:
if word.endswith('\n'):
word = word[:-1]
if hasht == 'md5':
brute = hashlib.md5(word).hexdigest()
elif hasht == 'sha1':
brute = hashlib.sha1(word).hexdigest()
elif hasht == 'sha224':
brute = hashlib.sha224(word).hexdigest()
elif hasht == 'sha256':
brute = hashlib.sha256(word).hexdigest()
elif hasht == 'sha384':
brute = hashlib.sha384(word).hexdigest()
elif hasht == 'sha512':
brute = hashlib.sha512(word).hexdigest()
if brute == hash:
encontrado = 1
break
tempo = int(time.time() - start)
tempo = str(tempo)
if encontrado == 1:
print('[+] Hash founded!')
print('[*] Your hash is: '+word)
print('[*] Time elapsed '+tempo+' seconds')
else:
print('[-] Hash not founded')