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 = "aaaaa9"
- a = string.ascii_letters + string.digits + "a"
- txt=""
- count=-1
- found = False
- while not found:
- for l in a[:-1]:
- 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(txt)
- txt = txt[:-1]
- if txt == "":
- count += 1
- txt = a[count]
- else:
- if txt.count("9")==len(txt):
- txt = "".join("a" * (len(txt)+1))
- txt2 = ""
- for l in txt[::-1].rstrip("9"):
- txt2 += a[a.index(l)+1]
- if l != "9":
- break
- txt = txt.rstrip("9")[:-1]+txt2[::-1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement