-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
158 lines (133 loc) · 3.52 KB
/
index.html
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<html>
<style type="text/css">
H1{
font-size: 140%;
color: #366D9C;
margin: 0.7em 0 0.7em 0;
}
H2 {
font-size: 140%;
color: #366D9C;
margin: 0.7em 0 0.7em 0;
}
H3{
color: black;
text-decoration: underline;
font-weight: bold;
font-family: Georgia, "Bitstream Vera Serif", "New York", Palatino, serif;
line-height: 1em;
}
H4{
color: black;
font-weight: bold;
font-family: Georgia, "Bitstream Vera Serif", "New York", Palatino, serif;
line-height: 1em;
}
H1, H2, H5 {
font-family: Georgia, "Bitstream Vera Serif", "New York", Palatino, serif;
font-weight: normal;
line-height: 1em;
}
</style>
<h1>unzipbomb v1.1</h1>
<p> A python module which defuses the zipbomb also can extract all the zip files that are contained in a specific root folder</p>
<div>
<h5 style="font-weight:bold;display:inline;">Author: </h5>
<h5 style="display:inline;">Ankitesh Gupta, Saif Vazir</h5>
</div>
<div>
<h5 style="font-weight:bold;display:inline;">Email: </h5>
<h5 style="display:inline;">ankiteshguptas@gmail.com, ssv.saif@gmail.com</h5>
</div>
<div>
<h5 style="font-weight:bold;display:inline;">Country: </h5>
<h5 style="display:inline;">India</h5>
</div>
<p>note: only works in unix based operating system, will make it compatible with windows and other operating systems in further releases.</p>
<p>Also, if you have any suggestions/correction please comment on github<p>
<h2>What is it?</h2>
<p>If you have a zip bomb to defuse, or if you have a directory containing many zip files that you want to extract this module will definitely help you out</p>
<p>This is great for </p>
<ul>
<li>defusing zip bombs</li>
<li>extracting multiple files</li>
<li>extracting nested files and folders</li>
</ul>
<h2>Usage</h2>
<h3>Class Available:</h3>
unzipbomb
<h3>Functions Available:</h3>
<ol>
<li>
<h4>showroot()</h4>
<p>
returns(string) the root folder path that was set
</p>
</li>
<li>
<h4>suppresstimer(option=True)</h4>
<p>
while the processing is done a timer is displayed in the output window, one can suppress that timer using this method .<br>
suppresstimer(False) if you don’t want to see timer in the output window<br>
suppresstimer(True) if you want to see the timer in the output window
</p>
</li>
<li>
<h4>showerrorlog()</h4>
<p>
returns the error log(list of dictionaries), that shows the errors that were occured while processing the decompression.
</p>
</li>
<li>
<h4>clearerrorlog()</h4>
<p>
clears the error log
</p>
</li>
<li>
<h4>showdestination()</h4>
<p>
returns(string) the destination folder that was set
</p>
</li>
<li>
<h4>showcount()</h4>
<p>
returns the number of extracted files
</p>
</li>
<li>
<h4>resetcount()</h4>
<p>
resets the count variable to 0
</p>
</li>
<li>
<h4>setrootfolder(rootfolder)</h4>
<p>
set the root folder from where the extraction should begin<br>
arguments: rootfolder A valid directory path(supplied as string)
</p>
</li>
<li>
<h4>setdestinationfolder(destination)</h4>
<p>
set the destination folder where the files should be extracted
</p>
</li>
<li>
<h4>unzipbomb()</h4>
<p>
begins the extraction
</p>
</li>
</ol>
<h2>Cookbook</h2>
<p>from unzipbomb.unzipbomb import unzipbomb</p>
extractobj = unzipbomb()<br>
extractobj.setrootfoler(‘/home/path/to/root/folder’)<br>
extractobj.setdestinationfolder(‘/home/path/to/destination/floder’)<br>
extractobj.unzipbomb()
<h2>Installation</h2>
<p style="font-weight:bold;">pip install unzipbomb</p>
</html>