From 3c5818c931984f770060bffe7b076165551b676d Mon Sep 17 00:00:00 2001 From: umar abdullahi Date: Wed, 3 Oct 2018 15:15:00 +0100 Subject: [PATCH 1/2] Create setup.py --- zip_password_cracker/setup.py | 45 +++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 zip_password_cracker/setup.py diff --git a/zip_password_cracker/setup.py b/zip_password_cracker/setup.py new file mode 100644 index 0000000..7c29295 --- /dev/null +++ b/zip_password_cracker/setup.py @@ -0,0 +1,45 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +print ''' +Free anyZipcrack-dictionary created by: +pyc0d3r: http://www.umarbrowser.co.vu/ +''' +#imports +import zipfile +import optparse +from threading import Thread +#Try extarct if found password +def extractFile(zFile, password): + try: + zFile.extractall(pwd=password) + print '[+] Found password ' + password + '\n' + except: + pass +# main thats gives an interace using optparse +def main(): + parser = optparse.OptionParser("usage %prog "+\ + "-f -d ") + parser.add_option('-f', dest='zname', type='string',\ + help='specify zip file') + parser.add_option('-d', dest='dname', type='string',\ + help='specify dictionary file') + (options, args) = parser.parse_args() + if (options.zname == None) | (options.dname == None): + print parser.usage + exit(0) + else: + zname = options.zname + dname = options.dname + + zFile = zipfile.ZipFile(zname) + passFile = open(dname) + + for line in passFile.readlines(): + password = line.strip('\n') + t = Thread(target=extractFile, args=(zFile, password)) + t.start() + + +if __name__ == '__main__': + main() From a9c19970a966f3316a3348602b9152ea927ea6d5 Mon Sep 17 00:00:00 2001 From: umar abdullahi Date: Wed, 3 Oct 2018 15:19:29 +0100 Subject: [PATCH 2/2] Create README.md --- zip_password_cracker/README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 zip_password_cracker/README.md diff --git a/zip_password_cracker/README.md b/zip_password_cracker/README.md new file mode 100644 index 0000000..aa88d4f --- /dev/null +++ b/zip_password_cracker/README.md @@ -0,0 +1,24 @@ +# anyZipcrack-dictionary +This python script will crack any zip file using given dictionary file +## Requipment + +python 3.++ or 2.++ + +# Usage +try using the given zip file and dictionary file + +## For windows + +```bash +$ python zipCrack.py -f evil.zip -d dictionary.txt +``` + +## For unix/mac/linux + +```bash +$ ./zipCrack.py -f evil.zip -d dictionary.txt +``` +or that way +```bash +$ python zipCrack.py -f evil.zip -d dictionary.txt +```