Shiyan12

Задача 1

Dec 16th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. #coding: utf-8
  2. import zipfile
  3.  
  4. def dictionary_crack_zip(file, dict):
  5.     z = zipfile.ZipFile(file, 'r')
  6.     for p in open(dict):
  7.         p = p.strip()
  8.         p = p.lower()
  9.         try:
  10.             z.extractall(pwd=p)
  11.             return p
  12.         except Exception as e:
  13.             pass
  14.     z.close()
  15.     return None
Add Comment
Please, Sign In to add comment