# author: huangyuhui # envir: python 3.7.3 # date: november 20,2019 # tested on the os: windows10 # desc: brute force attack the specified zip file # repo address: https://github.com/yubuntu0109/penetration-testing-learning
import zipfile import optparse from threading import Thread
defextractfile(zfile, password): try: print('[-] try to decompress the zip file by the password: %s' % password) zfile.extractall(pwd=bytes(password, "utf8")) print('[+] the zip file has decompressed successfully by the password: %s' % password) exit(0) except: pass