Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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).
- Host: GitHub
- URL: https://github.com/damianrusinek/zip-bomb
- Owner: damianrusinek
- Created: 2017-05-22T21:26:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-09-15T07:02:15.000Z (about 4 years ago)
- Last Synced: 2024-06-26T00:36:44.937Z (5 months ago)
- Language: Python
- Size: 10.7 KB
- Stars: 79
- Watchers: 4
- Forks: 33
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- WebHackersWeapons - zip-bomb - bomb?label=%20)|[`zipbomb`](/categorize/tags/zipbomb.md)|![linux](/images/linux.png)![macos](/images/apple.png)![windows](/images/windows.png)[![Python](/images/python.png)](/categorize/langs/Python.md)| (Weapons / Tools)
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.pyCreates 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
```