Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import zipfile
- import itertools
- from itertools import *
- import string
- import time`
- def crack(File, pwd):
- try:
- File.extractall(pwd=str.encode(pwd))
- print("n---- SUCCESS! {0} ----".format(pwd))
- except:
- print("{0} did not work.".format(pwd))
- pass
- count = 0
- start_time = time.time()
- for i in range(0,pwd_len+1):
- for j in map(''.join, itertools.product(myLetters, repeat=i)):
- crack(File, j)
- count += 1
- print(round((count/alles)*100, 1), end='r')
- res_time = time.time() - start_time
- print("n--- {} ---".format(round(res_time,2)))
- wN did not work.
- ---- SUCCESS! wO ----
- wO did not work.
- wP did not work.`
Add Comment
Please, Sign In to add comment