unzipbomb v1.1

A python module which defuses the zipbomb also can extract all the zip files that are contained in a specific root folder

Author:
Ankitesh Gupta, Saif Vazir
Email:
ankiteshguptas@gmail.com, ssv.saif@gmail.com
Country:
India

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

What is it?

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

Usage

Class Available:

unzipbomb

Functions Available:

  1. showroot()

    returns(string) the root folder path that was set

  2. suppresstimer(option=True)

    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

  3. showerrorlog()

    returns the error log(list of dictionaries), that shows the errors that were occured while processing the decompression.

  4. clearerrorlog()

    clears the error log

  5. showdestination()

    returns(string) the destination folder that was set

  6. showcount()

    returns the number of extracted files

  7. resetcount()

    resets the count variable to 0

  8. setrootfolder(rootfolder)

    set the root folder from where the extraction should begin
    arguments: rootfolder A valid directory path(supplied as string)

  9. setdestinationfolder(destination)

    set the destination folder where the files should be extracted

  10. unzipbomb()

    begins the extraction

Cookbook

from unzipbomb.unzipbomb import unzipbomb

extractobj = unzipbomb()
extractobj.setrootfoler(‘/home/path/to/root/folder’)
extractobj.setdestinationfolder(‘/home/path/to/destination/floder’)
extractobj.unzipbomb()

Installation

pip install unzipbomb