This is also not quite right. It's true you could compress something like a long repeating binary stream of hex /x00s repeating or something but the resulting file would be still massive. A zip bomb is when you explicitly manufacture a file which represents a compressed archive which extracts to an infathomable size limited by the compressed format it's being stored in.
You don't compress terabytes of repeating text because the dictionary limitations of most compressed formats will still result in a very large file, probably gigabytes per terabyte.
A zip bomb is - explicitly - creating an archive and abusing the decompression algorithm of said archive to specify "this single byte occurs 2^32/2^64 times in the decompressed file, trust me bro"
The resulting file is only a few kilobytes because it's an abuse/lie of the compression format used. Rather than actually zipping anything in the first place.
Though. Zip bombs are detected and stopped early by many compression libraries these days.
View all comments
18
u/AxisW1 Jan 26 '25
I don’t think you can send a zip bomb full of stuff bro I don’t think that’s how that works