Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/damianrusinek/zip-bomb

Create a ZIPBomb for a given uncompressed size (flat and nested modes).
https://github.com/damianrusinek/zip-bomb

Last synced: 3 months ago
JSON representation

Create a ZIPBomb for a given uncompressed size (flat and nested modes).

Awesome Lists containing this project

README

        

# ZipBomb

A zip bomb, also known as a zip of death or decompression bomb, is a malicious archive file designed to crash or render useless the program or system reading it.

This is a small script written in Python which generates such a zip bomb. It is based on [this repo](https://github.com/abdulfatir/ZipBomb) but it receives uncompressed size as input and provides two modes: nested and flat.

## Usage
```Usage: zip-bomb.py

Creates ZIP bomb archive

- mode of compression
nested - nested zip file (zip file of zip files of ...)
flat - flat file without nested zips
- decompression size in MB
- path to destination file
```

## Sample Run - Flat mode

`python zip-bomb.py flat 1024 out.zip`

### Output
```
Compressed File Size: 1020.36 KB
Size After Decompression: 1020 MB
Generation Time: 29.44s
```

## Sample Run - Nested mode

`python zip-bomb.py nested 1024 out.zip`

### Output
```
Warning: Using nested mode. Actual size may differ from given.
Compressed File Size: 1.90 KB
Size After Decompression: 4590 MB
Generation Time: 5.82s
```