#! /usr/bin/env python
# -*- coding: utf-8 -*-


import zipfile
import argparse
from threading import Thread


def extractFile(zFile, password):
    try:
        zFile.extractall(pwd=password)
        print("[+] Password = " + bytes.decode(password) + "\n")
        return password
    except Exception as e:
        return


def main(file, pwd):
    zFile = zipfile.ZipFile(file)
    passFile = open(pwd)

    for line in passFile.readlines():
        password = line.strip('\n')
        password = bytes(password, encoding="utf8")
        t = Thread(target=extractFile, args=(zFile, password))
        t.start()


if __name__ == "__main__":
    parser = argparse.ArgumentParser()
    parser.description = "Unzip file use password lists!"
    parser.add_argument("-f", "--file", required=True, help="input zip file name")
    parser.add_argument("-p", "--password", required=True, help="input zip password list file")
    args = parser.parse_args()

    main(args.file, args.password)

61c889afdeaa4c87e64770f30e33f5b4d9562510
<mask token>


def main(file, pwd):
    zFile = zipfile.ZipFile(file)
    passFile = open(pwd)
    for line in passFile.readlines():
        password = line.strip('\n')
        password = bytes(password, encoding='utf8')
        t = Thread(target=extractFile, args=(zFile, password))
        t.start()


<mask token>

<mask token>


def extractFile(zFile, password):
    try:
        zFile.extractall(pwd=password)
        print('[+] Password = ' + bytes.decode(password) + '\n')
        return password
    except Exception as e:
        return


def main(file, pwd):
    zFile = zipfile.ZipFile(file)
    passFile = open(pwd)
    for line in passFile.readlines():
        password = line.strip('\n')
        password = bytes(password, encoding='utf8')
        t = Thread(target=extractFile, args=(zFile, password))
        t.start()


<mask token>

<mask token>


def extractFile(zFile, password):
    try:
        zFile.extractall(pwd=password)
        print('[+] Password = ' + bytes.decode(password) + '\n')
        return password
    except Exception as e:
        return


def main(file, pwd):
    zFile = zipfile.ZipFile(file)
    passFile = open(pwd)
    for line in passFile.readlines():
        password = line.strip('\n')
        password = bytes(password, encoding='utf8')
        t = Thread(target=extractFile, args=(zFile, password))
        t.start()


if __name__ == '__main__':
    parser = argparse.ArgumentParser()
    parser.description = 'Unzip file use password lists!'
    parser.add_argument('-f', '--file', required=True, help=
        'input zip file name')
    parser.add_argument('-p', '--password', required=True, help=
        'input zip password list file')
    args = parser.parse_args()
    main(args.file, args.password)

import zipfile
import argparse
from threading import Thread


def extractFile(zFile, password):
    try:
        zFile.extractall(pwd=password)
        print('[+] Password = ' + bytes.decode(password) + '\n')
        return password
    except Exception as e:
        return


def main(file, pwd):
    zFile = zipfile.ZipFile(file)
    passFile = open(pwd)
    for line in passFile.readlines():
        password = line.strip('\n')
        password = bytes(password, encoding='utf8')
        t = Thread(target=extractFile, args=(zFile, password))
        t.start()


if __name__ == '__main__':
    parser = argparse.ArgumentParser()
    parser.description = 'Unzip file use password lists!'
    parser.add_argument('-f', '--file', required=True, help=
        'input zip file name')
    parser.add_argument('-p', '--password', required=True, help=
        'input zip password list file')
    args = parser.parse_args()
    main(args.file, args.password)

#! /usr/bin/env python
# -*- coding: utf-8 -*-


import zipfile
import argparse
from threading import Thread


def extractFile(zFile, password):
    try:
        zFile.extractall(pwd=password)
        print("[+] Password = " + bytes.decode(password) + "\n")
        return password
    except Exception as e:
        return


def main(file, pwd):
    zFile = zipfile.ZipFile(file)
    passFile = open(pwd)

    for line in passFile.readlines():
        password = line.strip('\n')
        password = bytes(password, encoding="utf8")
        t = Thread(target=extractFile, args=(zFile, password))
        t.start()


if __name__ == "__main__":
    parser = argparse.ArgumentParser()
    parser.description = "Unzip file use password lists!"
    parser.add_argument("-f", "--file", required=True, help="input zip file name")
    parser.add_argument("-p", "--password", required=True, help="input zip password list file")
    args = parser.parse_args()

    main(args.file, args.password)
