How does one make a Zip bomb?

前端 未结 14 1536
佛祖请我去吃肉
佛祖请我去吃肉 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:36

    All file compression algorithms rely on the entropy of the information to be compressed. Theoretically you can compress a stream of 0's or 1's, and if it's long enough, it will compress very well.

    That's the theory part. The practical part has already been pointed out by others.

提交回复
热议问题