-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathzip_killer.py
93 lines (74 loc) · 2.91 KB
/
zip_killer.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Importing Required modules
import time
import optparse
import zipfile
import os
# Banner for Zip Killer
xyz = \
'''\033[1;35m
/$$ /$$ /$$ /$$ /$$
|__/ | $$ |__/| $$| $$
/$$$$$$$$ /$$ /$$$$$$ | $$ /$$ /$$| $$| $$ /$$$$$$ /$$$$$$
|____ /$$/| $$ /$$__ $$ | $$ /$$/| $$| $$| $$ /$$__ $$ /$$__ $$
/$$$$/ | $$| $$ \ $$ | $$$$$$/ | $$| $$| $$| $$$$$$$$| $$ \__/
/$$__/ | $$| $$ | $$ | $$_ $$ | $$| $$| $$| $$_____/| $$
/$$$$$$$$| $$| $$$$$$$/ | $$ \ $$| $$| $$| $$| $$$$$$$| $$
|________/|__/| $$____/ |__/ \__/|__/|__/|__/ \_______/|__/
| $$
| $$
|__/
\033[1;31mCrack Zip File Password \033[1;33m
+======================================+
# Version : v1.0 #
# --------------------- #
# Developed By : Encryptor #
# Author : Sathyaprakash Sahoo #
# Instagram : _.encryptor._ #
# Website : www.cyberbuddy.co.in #
# Github : Encryptor-Sec #
+======================================+
-------OPTIONS-------
[1] Crack Zip File
[2] Exit Tool
\033[0m
'''
print xyz
# Main Function
def main():
x = input('[+] Select an Option : ')
if x == 1:
# Input path for zip file
file_path = raw_input('[+] Enter Zip File Path : ')
file_path = file_path.replace(' ', '')
# Input path for wordlist file
word_list = raw_input('[+] Enter Wordlist Path : ') \
or '/usr/share/wordlists/rockyou.txt' # Default Rockyou dictionary file
word_list = word_list.replace(' ', '')
z_file = zipfile.ZipFile(file_path)
pwd_list = open(word_list)
print "\033[\n1;32m[+] Brute Force Initiated ..."
print "\033[\n1;36m[+] Checking For Correct Password ..."
for line in pwd_list.readlines():
passwd = line.strip('\n')
# Password Brute Forcing
try:
z_file.extractall(pwd=passwd)
print "\033[\n1;31m[+] Congrats!! Password Found : " \
+ passwd + "\n\033[0m"
if passwd != '':
quit()
except Exception:
pass
print """
\033[1;31m[+] Password Not Found in Given Wordlist
\033[0m"""
else:
print """\033[1;31m
Thank You !!
\033[0m"""
time.sleep(1)
quit()
if __name__ == '__main__':
main()