TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

42.zip (2004)

120 pointsby geekamalmost 11 years ago

17 comments

0x0almost 11 years ago
That&#x27;s nothing. How about an infinite zip file :)<p><a href="http://research.swtch.com/zip" rel="nofollow">http:&#x2F;&#x2F;research.swtch.com&#x2F;zip</a>
评论 #7895272 未加载
DanBCalmost 11 years ago
Here are some other compression oddities: <a href="http://www.maximumcompression.com/compression_fun.php" rel="nofollow">http:&#x2F;&#x2F;www.maximumcompression.com&#x2F;compression_fun.php</a><p>A 42 byte file that expands to 5 MB; a file that compresses in one compression software but not another; a file that compresses to itself; and some extreme compression software.
评论 #7894563 未加载
DyslexicAtheistalmost 11 years ago
10 years ago most virus scanners were vulnerable to it.<p>actually you can build your own collection of files with cat &#x2F;dev&#x2F;zero &gt;foo.txt ... then zip all those into a final collection of zip&#x27;s -&gt; n-levels deep ... resulting individual zip files will be tiny, but once extracted the file eats massive space (idea is to fill disk on scanning server up and create I&#x2F;O errors or keep the server busy with a DOS). Also servers usually limit now the depth they are willing to scan in a zip to avoid this type of attack (workaround: only use up to 4 levels ...)
derefralmost 11 years ago
Here&#x27;s an information-theory question: would there be a way to estimate the size of the decompressed output, just given the raw zip data and no size metadata, without attempting to extract it (i.e. without spending time or space proportional to the compression factor)?
评论 #7894126 未加载
评论 #7893756 未加载
评论 #7893721 未加载
评论 #7894912 未加载
评论 #7893709 未加载
vezzy-fnordalmost 11 years ago
Context: <a href="https://en.wikipedia.org/wiki/Zip_bomb" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Zip_bomb</a>
评论 #7893667 未加载
huhtenbergalmost 11 years ago
That&#x27;s a good test for pass-through antivirus appliances :)
评论 #7893671 未加载
评论 #7893590 未加载
zupa-hualmost 11 years ago
Gmail won&#x27;t allow you to send this file to anyone, throws an error pointing you to <a href="https://support.google.com/mail/answer/6590" rel="nofollow">https:&#x2F;&#x2F;support.google.com&#x2F;mail&#x2F;answer&#x2F;6590</a><p>Ah, I almost forgot we are not spied on. Tried via local email client.
评论 #7893729 未加载
评论 #7894544 未加载
IvanK_netalmost 11 years ago
All files at the same &quot;level&quot; are identical. The 4GB file contains zeros only. I think these &quot;data&quot; could be compressed into even smaller size using some different methods.
评论 #7894365 未加载
nsajkoalmost 11 years ago
There&#x27;s this old discussion about zip bombs: <a href="https://news.ycombinator.com/item?id=4616081" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=4616081</a> A certain Caspian Maclean published a gzip quine on the Web in 2004, but I cannot seem to find it.
phirialmost 11 years ago
It&#x27;s funny, first got to know about this a few days ago when I came across this [1, 2] interesting thread on Quora.<p>[1] <a href="http://qr.ae/sQnm5" rel="nofollow">http:&#x2F;&#x2F;qr.ae&#x2F;sQnm5</a><p>[2] What is the most compressed file ever?
flux_w42almost 11 years ago
NOD32 detects it as an Arch-bomb. Made me think of the somewhat similar &#x27;Billion laughs&#x27; XML bomb but for archives.
iancarrollalmost 11 years ago
Now we have to ask, how did he create that file without using petabytes of disk space?
评论 #7893967 未加载
评论 #7894766 未加载
level09almost 11 years ago
so what&#x27;s the content of the final files ? just a bunch of redundant zero&#x27;s and one&#x27;s ?
评论 #7893926 未加载
gegenschallalmost 11 years ago
I&#x27;m sorry, but I have to say this: I like how this entry had 42 comments before this one: <a href="http://i.imgur.com/KmCodSM.png" rel="nofollow">http:&#x2F;&#x2F;i.imgur.com&#x2F;KmCodSM.png</a>
gdi2290almost 11 years ago
42.zip has a weissman score of 42
mundizzlealmost 11 years ago
wow, that has a Weissman Score close to the theoretical limit
untilHellbannedalmost 11 years ago
got nothing on Pied Piper