10 ms·
cat file.jpg file.zip > magic.jpg that's all there is to it (tested under linux, file compressed and decompressed with zip command)
by comboy 8y ago
cat file.jpg file.zip > magic.jpg
that's all there is to it (tested under linux, file compressed and decompressed with zip command)
- Retr0spectrum 8y agoThat's not all there is to it. Did you try uploading the resulting file to twitter?
- comboy 8y agoI did not. This is just a response to the parent comment not to the post itself. (Although if they do something with this file and you still are able to do this trick that would seem even more .. interesting on their side than leaving images below certain size untouched)
- tyingq 8y agoThe zip offset fields would be wrong, so your unzip must have some error correction. Use "zip -A zipfile" on Linux to fix them. As mentioned though, image upload sites would likely scrub out the extra data.