Zip Bomb!

The constant threat: viruses, trojans, spyware, ... the list goes on

Zip Bomb!

Post by Fl0urite on Sun Feb 16, 2014 2:36 am
([msg=79494]see Zip Bomb![/msg])

Alright now what in Satan's name is a zipbomb?
http://en.wikipedia.org/wiki/Zip_bomb

now that you know how awesome a zip bomb is how do I create one?
create a file containing loads of zeros, like a 2 gigabyte file.

then add that file to an archive and compress it using the fastest method.
keep adding it untill you think you are done.

then decompress the file :P
Fl0urite
New User
New User
 
Posts: 6
Joined: Wed Feb 12, 2014 5:01 am
Blog: View Blog (0)


Re: Zip Bomb!

Post by Rezlets on Sun Feb 16, 2014 9:08 am
([msg=79504]see Re: Zip Bomb![/msg])

It's also possible to create an "infinite zip file", which contains a zip file which contains a zip file which contains a zip file ad infinitum.
Rezlets
New User
New User
 
Posts: 34
Joined: Mon Jan 13, 2014 9:54 am
Blog: View Blog (0)


Re: Zip Bomb!

Post by Goatboy on Sun Feb 16, 2014 1:49 pm
([msg=79512]see Re: Zip Bomb![/msg])

Fl0urite wrote:now that you know how awesome a zip bomb is how do I create one?
create a file containing loads of zeros, like a 2 gigabyte file.

then add that file to an archive and compress it using the fastest method.
keep adding it untill you think you are done.

then decompress the file :P

Why waste that much time? Compression works like this: http://computer.howstuffworks.com/file-compression.htm

Basically you find frequent, repeating patterns in the text and you replace that text with a "symbol" identifying it. No, not a symbol like a smiley face or a heart. A symbol in this case just means a much shorter string of characters. So if you have "ABCABCABC" in your text, it might become "3ABC". Then to decompress you just look for those symbols.

So in our case, we would need to hand-craft a ZIP file (or generate one using a program) that contains something like "1000000000000000000000000000000ABC" which of course would expand into something very large.
Assume that everything I say is or could be a lie.
1UHQ15HqBRZFykqx7mKHpYroxanLjJcUk
User avatar
Goatboy
Expert
Expert
 
Posts: 2782
Joined: Mon Jul 07, 2008 9:35 pm
Blog: View Blog (0)



Return to Malware

Who is online

Users browsing this forum: No registered users and 0 guests