How does one make a Zip bomb?

前端 未结 14 1518
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-12 11:13

This question about zip bombs naturally led me to the Wikipedia page on the topic. The article mentions an example of a 45.1 kb zip file that decompresses to 1.3 exabytes.

14条回答
  •  不思量自难忘°
    2020-12-12 11:42

    This is easily done under Linux using the following command:

    dd if=/dev/zero bs=1024 count=10000 | zip zipbomb.zip -

    Replace count with the number of KB you want to compress. The example above creates a 10MiB zip bomb (not much of a bomb at all, but it shows the process).

    You DO NOT need hard disk space to store all the uncompressed data.

提交回复
热议问题