Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import zipfile
- def main():
- zipfilename = '1.zip'
- dictionary = 'dictionary.txt'
- password = None
- zip_file = zipfile.ZipFile(zipfilename)
- with open(dictionary, 'r') as f:
- for line in f.readlines():
- password = line.strip('\n')
- try:
- zip_file.extractall(pwd=password)
- password = 'Password found: %s' % password
- except:
- print("Failed " + password)
- pass
- print (password)
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement