News for hackers. Stuff that matters.
Re:A picture got my PostgreSQL database to start mining Monero by yread on Monday March 19, 2018 @09:02AM (#16618005)
I thought this was one of those files that are an image and an executable AT THE SAME TIME. Slightly disappointed that it's just catted together
Re:A picture got my PostgreSQL database to start mining Monero by TremendousJudge on Monday March 19, 2018 @09:39AM (#16618227)
Totally unrelated, but I'm always reminded of Spore's (the videogame) save files. Creatures, buildings and such would be saved as .png and you'd get a nice preview screenshot of the creation, but the same file also contained the information for the game to actually load the thing. It was pretty cool
Re:A picture got my PostgreSQL database to start mining Monero by curiousGambler on Monday March 19, 2018 @12:47PM (#16619920)
Any idea how they did it? Stenography or just catting things together like this example?
Re:A picture got my PostgreSQL database to start mining Monero by TremendousJudge on Monday March 19, 2018 @01:36PM (#16620686)
I don't think so, the images were pretty low res iirc. I did some googling though, and the only thing I found was somebody that said "the game reads the model data out from the file's alpha channel". However, I'd expect the data to just be appended to the end of the file, since PNG works anyway with that.
Re:A picture got my PostgreSQL database to start mining Monero by tialaramex on Monday March 19, 2018 @05:12PM (#16623229)
PNG is extensible, so they could totally have defined a PNG "chunk" in the private namespace and shoved the data in that. They didn't though. They treated PNG as just a way to store image data and wrote their extra data into the image, encrypted in an amateurish way.
Re:A picture got my PostgreSQL database to start mining Monero by ianlevesque on Monday March 19, 2018 @10:05AM (#16618390)
That’s genius
Re:A picture got my PostgreSQL database to start mining Monero by woodrowbarlow on Monday March 19, 2018 @09:21AM (#16618115)
even polyglot image/executables are usually _mostly_ two files mashed together. some cleverness is always required to construct a header that is valid for both formats, but then the trick is usually to make the executable jump past the image data (or, for interpreted languages, comment out the image data) and then store the executable payload at the end of the file.
Re:A picture got my PostgreSQL database to start mining Monero by Piskvorrr on Monday March 19, 2018 @09:34AM (#16618207)
One has headers at start of file, other has headers (footers?) at end of file; slightly useful :)