by EDM115 · 3mo ago · 0 comments
I personally knew about this when I needed to extract all images from a Word document in 2015, I had the idea to rename the extension to .zip and wow a conveniently placed media folder !
since then I renamed countless file extensions to zip, just to test. it worked nearly every single time
A much more robust way to figure out what's in a file is using libmagic, accessible through the `file` command on *nix. I don't know if there's an alternative Windows though.
JAR/WAR, iOS apps, and others
In fact, relevantly to this article: https://sqlite.org/affcase1.html
Zip is a known format, so library support is mature. It can contain a local file system. And no one is going to casually muck about in it, so you can trust the structure.