4 ms·
For extra confussion, most files have the info in a header at the begining, but zip files have the info at the end, so someone made a file that is at the same t
by gus_massa 3y ago
For extra confussion, most files have the info in a header at the begining, but zip files have the info at the end, so someone made a file that is at the same time a valid .pdf and a valivalid .zip. (I can't find the link now.)
- frabert 3y agohttps://www.sultanik.com/cv https://www.sultanik.com/cv
- capableweb 3y agoPOC||GTFO does this with their releases, where the file released usually doubles as multiple file formats, and contains a ton of hidden messages all over the place. https://pocorgtfo.hacke.rs/ https://pocorgtfo.hacke.rs/ From the latest edition (#21): > Technical Note: The electronic edition of this magazine is valid as both PDF and ZIP. Thanks to Ange Albertini, it is also a PCAP-NG packet capture of an experiment by Yannay Livneh. See page 7. Edit: Ah, and of course, Cosmopolitan (by @jart) that produces an amalgamation of formats bundled into one file (including ZIP) that runs across a bunch of OSes https://news.ycombinator.com/item?id=38101613 https://news.ycombinator.com/item?id=38101613
- BobaFloutist 3y agoThat's actually a very fun idea.
- saghm 3y agoThere also used to be an exploit where you could make a file both a valid .jar Java executable and a valid .gif, which back in the days of Java applets would potentially let you execute code when someone loaded your image (e.g. if you uploaded it as your profile picture): https://en.wikipedia.org/wiki/Polyglot_%28computing%29#GIFAR_attack https://en.wikipedia.org/wiki/Polyglot_%28computing%29#GIFAR...
- 13of40 3y agoMy favorite is storing a batch file uncompressed as the first entry in the ZIP archive, because you can rename it with .BAT or .CMD and run it. Sprinkle in some PowerShell and you can make a self extracting archive/installer.
- gsich 3y agoCommon Linux way of installing non-repo stuff (.sh with gzipped content at the end)