import zipfile import threading def extractFile(zFile,password): try: zFile.extractall(pwd = password) print password except: pass def main(): zFile = zipfile.ZipFile(r"这里写要爆破的zip文件的路径") passFile = open(r‘这里写字典的路径‘,‘r‘) for line in passFile.readlines(): password = line.strip(‘\n‘) t = threading.Thread(target = extractFile,args=(zFile,password)) t.start() if __name__ == "__main__": main()
时间: 2024-12-30 05:30:12