Okay. That is hilarious.
Okay. That is hilarious.
http://bin.smwcentral.net/u/1686/boredom.asm
You won't believe me unless you try it for yourself, but ... download xkas v06 here:
http://www.romhacking.net/utilities/269/
Then download the above boredom.asm. And now run the following on the command-line:
touch boredom.sfc
xkas boredom.asm boredom.sfc
Note again that this is a cross-assembler to produce code for the Super Nintendo. Yet you will be greeted by a fully-playable game of Snake in the terminal window. No, I am not kidding. (The black hats here can probably guess what's going on.) For those who won't/can't try it out: http://i.imgur.com/LTSAHw1.pngI guess they found a way to make it produce something your terminal can process.
He exploits the parser to corrupt the stack frame, and executes raw x86 instructions embedded in that file.
How exactly it converts that pile of gibberish into a valid x86 program is beyond even my comprehension.
Alcaro's always been a wizard at stuff like this. Here's an example of an SNES ROM image he crafted to execute native x86 code from inside ZSNES: https://www.youtube.com/watch?v=Q3SOYneC7mU (Yes, you can potentially get a real PC virus from loading up an SNES ROM in ZSNES. Or a specially crafted source code file in xkas v06.)