1
0
Fork 0

Update README.md

This commit is contained in:
Abdul Fatir 2016-06-09 14:14:57 +05:30
parent f5552fa1a3
commit 2757e02ba9
1 changed files with 22 additions and 1 deletions

View File

@ -1,2 +1,23 @@
# ZipBomb
A simple implementation of ZipBomb in Python
This is for the people who watch Silicon Valley. In Season 3 Episode 7, Gilfoyle sends a sort of recursive program to Gavin Belsons laptop and cellphone which forces him to shut down the power at Hooli. Such a program is called a *zip bomb*. What is it basically is a huge file with dummy data compressed to many levels to generate a very small compressed file. For example in a test run, this script of mine generates a compressed file of size **30.58 KB** which when decompressed is actually **10000000000 GB**. This is done to drain out a computers memory until it shuts down. Read More on [Wikipedia](https://en.wikipedia.org/wiki/Zip_bomb#Details_and_use).
This is a small script written in Python which generates such a zip bomb.
##Usage
`zipbomb.py n_levels out_zip_file`
##Sample Run
```bash
python zipbomb.py 10 out.zip
```
###Output
```
Compressed File Size: 30.58 KB
Size After Decompression: 10000000000 GB
Generation Time: 10.40s
```