Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import string
- import time
- import datetime
- import os
- start_time = time.time()
- home = os.path.expanduser('~')
- configPath = home.replace('/','\\')+"/Desktop/"
- mdp = "aaaa9"
- a = string.ascii_letters + string.digits
- txt=""
- count=-1
- found = False
- while not found:
- for l in a:
- txt += l
- if txt == mdp:
- duree = time.time() - start_time
- temps = str((datetime.timedelta(seconds=duree)))
- print("Mot de passe : "+txt+" /// Time to find : "+temps)
- filename = "%s/LeNarvalo_%s.txt" % ( configPath, time.strftime('%d-%m-%y_%Hh%M',time.localtime()) )
- file = open(filename, "w")
- file.write("[LOGIN :] %s\n" % (txt))
- file.write("[Time to find :] %s\n" % (temps))
- file.close()
- found = True
- break
- print("*LeNa*"+txt)
- txt = txt[:-1]
- count += 1
- txt = txt[:-1]
- if count <62:
- txt += a[count]
- else:
- count = 0
- if not txt:
- txt += "aa"
- else:
- if txt.count("9") != len(txt):
- nb9 = 0
- for l in txt[::-1]:
- if l == "9":
- nb9 +=1
- else:
- break
- txt9 = txt.rstrip("9")
- txt = txt9[:-1] + a[a.index(txt9[-1])+1] + "a"*(nb9+1)
- else:
- txt = "".join("a" * (len(txt)+2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement