Advertisement
rfmonk

unzip2.py

Nov 20th, 2013
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. #! /usr/bin/env python
  2.  
  3. import zipfile
  4. zFile = zipfile.ZipFile('evil.zip')
  5. passFile = open('dictionary.txt')
  6. for line in passFile.readlines():
  7.     password = line.strip('\n')
  8.     try:
  9.         zFile.extractall(pwd=password)
  10.         print '[+] Password = ' + password + '\n'
  11.         exit(0)
  12.     except Exception, e:
  13.         pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement