Zip Bomb Size

I was making a zip bomb (for fun and not for malicious purposes), and I couldn't believe the amount of data there was in it. I checked my math multiple times and got the same result. I have 11 Zettabytes of data in one zip file. I don't actually want to send it out, but I do want to know whether my math was right. I used nesting to create the file. Here was the entire process:

One file: 1.1 MB

Compress

1st folder, 100 items: 209KB

Compress

2nd folder, 100 items: 9.9 MB

Compress

3rd folder, 100 items: 35.1 MB

Compress

4th folder, 100 items: 78.1 MB

Compress

5th folder, 100 items: 146.8 MB

Compress

6th folder, 100 items: 262 MB

Compress

7th folder, 100 items: 369 MB

Compress

8th folder, 100 items: 17.31 GB

Compress

Basically what I did is I took a 1.1 MB file filled with zeros, and compressed it. I duplicated it 100 times into the first folder. I then compressed that folder. I then put it into a second folder, duplicating it 100 times. I then compressed it. Etc. The equation I had to determine its full size was 1.1*100*100*100*100*100*100*100*100. I multiplied by 100 for each time I made a new folder. According to the calculation, I got 11,000,000,000,000,000 MB. That converts to 11 Zettabytes. Anyways, could anyone see if my math was correct?

submitted by /u/Warm_Championship215
[link] [comments]

from hacking: security in practice https://ift.tt/gk9Khty

Comments