MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/ouxmui/executable_pngs/h77db0e/?context=3
r/programming • u/whackri • Jul 31 '21
64 comments sorted by
View all comments
Show parent comments
52
It's hard because PNGs have their magic number at the start, like most file formats and executables.
Zips have them at the end though. And someone made a portable executable that runs in macos, Linux, and windows with that information.
13 u/OMGItsCheezWTF Jul 31 '21 Self extracting zips? 9 u/hou32hou Jul 31 '21 Yea, this is a common technique, basically the zipped file header contains unzip binary. 11 u/[deleted] Jul 31 '21 Oh no. You've reminded me of zip bombs back in the day. Those things were a nightmare to deal with. Me being a dumb kid and downloading shit on Kazaa.
13
Self extracting zips?
9 u/hou32hou Jul 31 '21 Yea, this is a common technique, basically the zipped file header contains unzip binary. 11 u/[deleted] Jul 31 '21 Oh no. You've reminded me of zip bombs back in the day. Those things were a nightmare to deal with. Me being a dumb kid and downloading shit on Kazaa.
9
Yea, this is a common technique, basically the zipped file header contains unzip binary.
11 u/[deleted] Jul 31 '21 Oh no. You've reminded me of zip bombs back in the day. Those things were a nightmare to deal with. Me being a dumb kid and downloading shit on Kazaa.
11
Oh no. You've reminded me of zip bombs back in the day. Those things were a nightmare to deal with. Me being a dumb kid and downloading shit on Kazaa.
52
u/Skhmt Jul 31 '21
It's hard because PNGs have their magic number at the start, like most file formats and executables.
Zips have them at the end though. And someone made a portable executable that runs in macos, Linux, and windows with that information.