./haders <mode> <size> <out_zip_file>
./haders nested 10tb funny.zip
nested
flat
GB
- Giga ByteTB
- Tera Byte (1024 GB)PB
- Peta Byte (1024 TB)EB
- Exa Byte (1024 PB)
- Computer
- Internet connection
Rust
cargo
- Rust's package manager
A zip bomb is a malicious archive file designed to exploit compression algorithms to create a disproportionately large file when decompressed.
It works by nesting multiple layers of compressed data within each other, taking advantage of the way compression algorithms work. When the file is extracted, the decompression process repeatedly expands the inner layers, consuming an excessive amount of system resources, often leading to system crashes or slowdowns. Zip bombs are typically used for malicious purposes, such as disrupting systems, overwhelming storage, or evading security measures.
- Creates a dummy file of size (say 1 GB)
- Compresses dummy file to a zip (deflated)
- Makes
n
(say 10) copies of this zip file and adds these files to another zip archive - Repeats step 3
x
number of times - Voila, zip bomb has been created
Author: Tymoteusz Hołubowicz