A python module which defuses the zipbomb also can extract all the zip files that are contained in a specific root folder
note: only works in unix based operating system, will make it compatible with windows and other operating systems in further releases.
Also, if you have any suggestions/correction please comment on github
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
This is great for
returns(string) the root folder path that was set
while the processing is done a timer is displayed in the output window, one can suppress that timer using this method .
suppresstimer(False) if you don’t want to see timer in the output window
suppresstimer(True) if you want to see the timer in the output window
returns the error log(list of dictionaries), that shows the errors that were occured while processing the decompression.
clears the error log
returns(string) the destination folder that was set
returns the number of extracted files
resets the count variable to 0
set the root folder from where the extraction should begin
arguments: rootfolder A valid directory path(supplied as string)
set the destination folder where the files should be extracted
begins the extraction
from unzipbomb.unzipbomb import unzipbomb
extractobj = unzipbomb()pip install unzipbomb