Modo de uso:
1 Cracker.py [HASH (MD5)] [Diccionario]
Ejemplo:
1 Cracker.py e10adc3949ba59abbe56e057f20f883e diccionario.txt
Codigo en Python:
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 import md5, sys, getopt
ver= "1.0"
a=0
def run():
if len(sys.argv) == 1 or sys.argv[1]=="-h" or sys.argv[1]=="--help":
print ""
print ""
print "Modo de uso: Cracker.py [HASH (MD5)] [Diccionario]"
print ""
print "Ejemplo: Cracker.py e10adc3949ba59abbe56e057f20f883e diccionario.txt"
print ""
else:
if sys.argv[1]=="-v" or sys.argv[1]=="--version":
print "Cracker version: " + ver + "\nAutor: ANTRAX"
if len(sys.argv) == 3:
md5crack(sys.argv[1],sys.argv[2],)
def md5crack(hash,word):
try:
wordlist = open(word,"r")
except IOError:
print "Diccionario: " + word + " No Existe"
sys.exit(0)
global a
for line in wordlist.xreadlines():
word= line.replace("\n","")
passw = md5.new(word)
if (hash == passw.hexdigest()):
print ""
print "Password Crackeada!"
print 'MD5: ' + passw.hexdigest() + ' ---> ' + word+''
print "Visita Underc0de.org"
a = 1
sys.exit(0)
if ( a == 0):
print 'Password no Encontrada en este diccionario'
wordlist.close()
def main():
run()
if __name__ == "__main__":
main()