Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import zipfile
- from threading import Thread
- def extractFile(zfile, password):
- try:
- zfile.extractall(pwd=password)
- print '[+] Password = ' + password + '\n'
- exit(0)
- except Exception, e:
- pass
- def main():
- zFile = zipfile.ZipFile("evil2.zip")
- passFile = open('dictionary.txt')
- for line in passFile.readlines():
- password = line.strip('\n')
- #guess = extractFile(zFile, password)
- #if guess:
- # print '[+] Password = ' + password + '\n'
- # exit(0)
- t = Thread(target = extractFile, args = (zFile, password))
- t.start()
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement