We all have used and encountered zip files in our day to day work. However this one is different. It is referred to as the zip bomb!
Have a look at 42.zip. There is a zip file 42 KB in size but when you extract it it occupies a about 45PB that’s Peta Bytes!
How is it possible here is the logic they provide:
Have a look at 42.zip. There is a zip file 42 KB in size but when you extract it it occupies a about 45PB that’s Peta Bytes!
How is it possible here is the logic they provide:
The file contains 16 zipped files, which again contains 16 zipped files, which again contains 16 zipped files, which again contains 16 zipped, which again contains 16 zipped files, which contain 1 file, with the size of 4.3GB.
So, if you extract all files, you will most likely run out of space
![]()
How was 4.3 GB file compressed so much? Simply because it had all zeroes, so high redundancy and thus greater compression
Extract and let me know how much did it occupy







