-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhash_killer.py
79 lines (66 loc) · 2.06 KB
/
hash_killer.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/usr/bin/python
# Desenvolvido por Adriel Freud!
# Contato: [email protected]
# FB: http://www.facebook.com/xrn401
# =>DebutySecTeamSecurity<=
#conding: utf-8
import os
import sys
sys.path.insert(1, 'libs')
import main
import crypt
import identify
import requests
import time, datetime
import threading
ts = time.time()
dt = datetime.datetime.fromtimestamp(ts).strftime('%Y-%m-%d-%H-%M-%S')
today = datetime.datetime.today()
t = today.strftime("[%H:%M:%S] - ")
if 'win' in sys.platform:
os.system('cls')
else:
os.system('clear')
def hash_killer(_hash, type_hash, wordlist):
print(main.stack_menu())
print("%s[==>] Trying to Break HASH!\nWaiting...\n"%t)
main.head(wordlist, type_hash, _hash)
if len(sys.argv) < 3:
if len(sys.argv) < 2:
print(main.two_menu())
crypt.fatal("Passe Parametros Suficientes!")
elif "identificar" in sys.argv[1]:
identify.run()
else:
print(main.two_menu())
crypt.fatal("Passe Parametros Suficientes!")
else:
type_hash = sys.argv[1].lower()
_hash = sys.argv[2]
if _hash:
if 'base64' in type_hash.lower():
print(main.stack_menu()+'\n%s[==>] Trying to break HASH!\nWaiting...\n'%t)
crypt.base64decode(_hash)
elif 'binary' in type_hash.lower():
print(main.stack_menu()+'\n%s[==>] Trying to break HASH!\nWaiting...\n'%t)
crypt.binary(_hash)
elif 'hex' in type_hash.lower():
print(main.stack_menu()+'\n%s[==>] Trying to break HASH!\nWaiting...\n'%t)
crypt.hex(_hash)
elif 'morse' in type_hash.lower():
print(main.stack_menu()+'\n%s[==>] Trying to break HASH!\nWaiting...\n'%t)
crypt.morse(_hash)
elif 'thread' in type_hash.lower():
t = threading.Thread(target=hash_killer,args=(sys.argv[3], sys.argv[2], sys.argv[4],))
t.start()
while not t.isAlive():
t.join()
else:
if sys.argv[3]:
wordlist = sys.argv[3]
hash_killer(_hash, type_hash, wordlist)
else:
crypt.fatal("Passe uma Wordlist como Parametro Final! :)")
else:
print(main.two_menu())
crypt.fatal("Passe Parametros Suficientes!")