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
|
#librerie HASH
import hashlib
#"f"
HASH_ref="8fa14cdd754f91cc6554c9e71929cce7"
i=0
#Lettre utilise pour le Brute Force
Table="abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
######################################### GENERATEUR DE MOT ########################################
nbrtable= len(Table)
i=0
while i<nbrtable:
mot = Table[i]
#Hashage du mot
HASH_test=hashlib.md5(mot).hexdigest()
#affichage du mot a hasher
#print "nombre de digits dans la table:",nbrtable
print mot
i=i+1
#Test si les deux Hash sont egaux
if (HASH_test==HASH_ref):
print "Mot de passe trouve"
break
print mot
###################################### FIN GENERATEUR DE MOT ######################################## |
Partager