SHOW:
|
|
- or go back to the newest paste.
1 | import string | |
2 | import time | |
3 | import datetime | |
4 | import os | |
5 | ||
6 | start_time = time.time() | |
7 | home = os.path.expanduser('~') | |
8 | configPath = home.replace('/','\\')+"/Desktop/" | |
9 | mdp = "aaaa9" | |
10 | a = string.ascii_letters + string.digits | |
11 | txt="" | |
12 | count=-1 | |
13 | found = False | |
14 | ||
15 | while not found: | |
16 | for l in a: | |
17 | txt += l | |
18 | if txt == mdp: | |
19 | duree = time.time() - start_time | |
20 | temps = str((datetime.timedelta(seconds=duree))) | |
21 | print("Mot de passe : "+txt+" /// Time to find : "+temps) | |
22 | filename = "%s/LeNarvalo_%s.txt" % ( configPath, time.strftime('%d-%m-%y_%Hh%M',time.localtime()) ) | |
23 | file = open(filename, "w") | |
24 | file.write("[LOGIN :] %s\n" % (txt)) | |
25 | file.write("[Time to find :] %s\n" % (temps)) | |
26 | file.close() | |
27 | found = True | |
28 | break | |
29 | print("*LeNa*"+txt) | |
30 | txt = txt[:-1] | |
31 | ||
32 | count += 1 | |
33 | txt = txt[:-1] | |
34 | ||
35 | if count <62: | |
36 | txt += a[count] | |
37 | ||
38 | else: | |
39 | count = 0 | |
40 | if not txt: | |
41 | txt += "aa" | |
42 | else: | |
43 | if txt.count("9") != len(txt): | |
44 | nb9 = 0 | |
45 | for l in txt[::-1]: | |
46 | if l == "9": | |
47 | nb9 +=1 | |
48 | else: | |
49 | break | |
50 | - | txt9 = txt.strip("9") |
50 | + | txt9 = txt.rstrip("9") |
51 | txt = txt9[:-1] + a[a.index(txt9[-1])+1] + "a"*(nb9+1) | |
52 | ||
53 | else: | |
54 | txt = "".join("a" * (len(txt)+2)) |