Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #coding: utf-8
- import zipfile
- def dictionary_crack_zip(f, d):
- z = zipfile.ZipFile(f, 'r')
- for p in open(d):
- p = p.strip()
- p = p.lower()
- try:
- z.extractall(pwd=p)
- return p
- except Exception as e:
- pass
- z.close()
- return None
Add Comment
Please, Sign In to add comment