Advertisement
Guest User

Untitled

a guest
Aug 30th, 2016
89
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 = "aaaaa9"
  10. a = string.ascii_letters + string.digits + "a"
  11. txt=""
  12. count=-1
  13. found = False
  14.  
  15. while not found:
  16.  
  17.     for l in a[:-1]:   
  18.         txt += l
  19.        
  20.         if txt == mdp:         
  21.             duree = time.time() - start_time           
  22.             temps = str((datetime.timedelta(seconds=duree)))
  23.             print("Mot de passe : "+txt+" /// Time to find : "+temps)
  24.             filename = "%s/LeNarvalo_%s.txt" % ( configPath, time.strftime('%d-%m-%y_%Hh%M',time.localtime())  )
  25.             file = open(filename, "w")
  26.             file.write("[LOGIN :] %s\n" % (txt))
  27.             file.write("[Time to find :] %s\n" % (temps))
  28.             file.close()
  29.             found = True
  30.             break
  31.            
  32.         print(txt) 
  33.         txt = txt[:-1]
  34.  
  35.     if txt == "":
  36.         count += 1
  37.         txt = a[count]
  38.        
  39.     else:  
  40.        
  41.         if txt.count("9")==len(txt):           
  42.             txt = "".join("a" * (len(txt)+1))  
  43.    
  44.         txt2 = ""
  45.         for l in txt[::-1].rstrip("9"):
  46.             txt2 += a[a.index(l)+1]
  47.             if l !=  "9":
  48.                 break
  49.         txt = txt.rstrip("9")[:-1]+txt2[::-1]
Advertisement
RAW Paste Data Copied
Advertisement