[clug] Zip "bombs"

Andrew Janke a.janke at gmail.com
Tue Jul 16 08:56:44 UTC 2019


So, I was reading this:

   https://www.vice.com/en_us/article/597vzx/the-most-clever-zip-bomb-ever-made-explodes-a-46mb-file-to-45-petabytes

Simple! I thought...  I can do that too.

  for i in 1000 10000 100000 1000000
  do
     dd if=/dev/zero count=$i | zip $i.zip -
  done

   Magical-Unicorn:bob$ du -sk *.zip
   4    1000.zip
   8    10000.zip
   52    100000.zip
   500    1000000.zip

Hrmpfht! well that isn't going to work. At best I'm getting ~500MB of
zeros into 500K, I'm a few orders of magnitude off.

So, bash/perl golf time if anyone cares to educate me. I'll admit I
haven't read the paper in detail or the links pointed to but it
appears that there is more to this than meets the eye. Yes, I should
have known this from the start.


a



More information about the linux mailing list