Guest User

Untitled

a guest
Apr 20th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. import zipfile
  2. import itertools
  3. from itertools import *
  4. import string
  5. import time`
  6.  
  7. def crack(File, pwd):
  8. try:
  9. File.extractall(pwd=str.encode(pwd))
  10. print("n---- SUCCESS! {0} ----".format(pwd))
  11. except:
  12. print("{0} did not work.".format(pwd))
  13. pass
  14.  
  15. count = 0
  16. start_time = time.time()
  17. for i in range(0,pwd_len+1):
  18. for j in map(''.join, itertools.product(myLetters, repeat=i)):
  19. crack(File, j)
  20. count += 1
  21. print(round((count/alles)*100, 1), end='r')
  22. res_time = time.time() - start_time
  23. print("n--- {} ---".format(round(res_time,2)))
  24.  
  25. wN did not work.
  26. ---- SUCCESS! wO ----
  27. wO did not work.
  28. wP did not work.`
Add Comment
Please, Sign In to add comment