News for hackers. Stuff that matters.
Re:Super Mario World "Executes Arbitrary Code" [video] by tptacek on Monday January 13, 2014 @06:20PM (#7054292)
Here's the basic technique:

http://tasvideos.org/3957S.html

I can't read this without thinking that I have wasted a life that could have been better spent synthesizing shell code out of the precise contents of Yoshi's mouth.

Re:Super Mario World "Executes Arbitrary Code" [video] by hmsimha on Tuesday January 14, 2014 @02:39AM (#7055886)
real hackers use KoopaShell
Re:Super Mario World "Executes Arbitrary Code" [video] by raldi on Tuesday January 14, 2014 @03:53PM (#7059637)
> shell code

I see what you did there.

Re:Super Mario World "Executes Arbitrary Code" [video] by peterkelly on Tuesday January 14, 2014 @02:51AM (#7055909)
This is not responsible disclosure. The person who discovered this vulnerability should have notified nintendo and given them enough time to respond with a patch.

Think about how many hard-earned coins and power ups could potentially be lost due to malware that takes advantage of this vulnerability.

Re:Super Mario World "Executes Arbitrary Code" [video] by jlgaddis on Tuesday January 14, 2014 @08:14AM (#7056783)
Heh, after I read your first two sentences and was ready to downvote you (having had "bad experiences" with "responsible disclosure").

After I read the last sentence, I imagined 10-year-old me playing Super Mario Brothers and suddenly freaking out because all my coins were just hacked and stolen.

"MOOOOOOOM!"

Re:Super Mario World "Executes Arbitrary Code" [video] by zetx on Monday January 13, 2014 @05:52PM (#7054143)
This appears to be the same as what was shown at AGDQ 2014 (Awesome Games Done Quick): http://gamesdonequick.com/

Here's their live run with them explaining what is happening: http://www.twitch.tv/speeddemosarchivesda/b/492923053?t=10h2...

Re:Super Mario World "Executes Arbitrary Code" [video] by joshschreuder on Monday January 13, 2014 @06:01PM (#7054195)
I love stuff like this. It's been posted a few times here, but the Pokemon Yellow code execution is amazing to watch also:

http://tasvideos.org/3767S.html

Re:Super Mario World "Executes Arbitrary Code" [video] by batmansbelt on Monday January 13, 2014 @05:15PM (#7053886)
What are we looking at here? Would this hypothetically work with a cartridge, or is this exploiting a bug in the emulator?
Re:Super Mario World "Executes Arbitrary Code" [video] by panic on Monday January 13, 2014 @05:53PM (#7054155)
This was actually done live with a real cartridge last week at AGDQ: http://www.youtube.com/watch?v=ioQmbEoYL0M
Re:Super Mario World "Executes Arbitrary Code" [video] by Sniffnoy on Monday January 13, 2014 @09:35PM (#7055020)
A note, to ward off confusion: This was done with a real cartridge, but with a computer hooked up to the controller ports; it wasn't done unassisted.
Re:Super Mario World "Executes Arbitrary Code" [video] by jalada on Tuesday January 14, 2014 @04:46AM (#7056186)
This is impressive. Emulators have nuances that make me wonder when watching TASs if they would actually work on the game itself.

Are all 'accepted' TASs tested in a similar way?

Re:Super Mario World "Executes Arbitrary Code" [video] by AndyKelley on Tuesday January 14, 2014 @05:46AM (#7056330)
Not all of them. Here are the rules: http://tasvideos.org/MovieRules.html
Re:Super Mario World "Executes Arbitrary Code" [video] by enneff on Tuesday January 14, 2014 @05:46AM (#7056331)
No.
Re:Super Mario World "Executes Arbitrary Code" [video] by w-ll on Monday January 13, 2014 @11:21PM (#7055358)
So pong and snake where already in SMW?
Re:Super Mario World "Executes Arbitrary Code" [video] by pilif on Tuesday January 14, 2014 @12:03AM (#7055490)
No. They weren't. That's the idea. By exploiting some bugs, they managed to make the game execute arbitrary code. The menu, the two games and the victory screen were all programmed by manipulating the RAM using nothing but controller input.

This is why it's so bloody impressive.

Re:Super Mario World "Executes Arbitrary Code" [video] by sputnikus on Monday January 13, 2014 @05:21PM (#7053918)
He's using dual multitab to connect 8 controllers and then programming game through control ports, more here http://hackaday.com/2014/01/10/teaching-mario-to-play-pong-a...
Re:Super Mario World "Executes Arbitrary Code" [video] by noselasd on Monday January 13, 2014 @07:16PM (#7054545)
For the uninitiated, can anyone explain what's going on ? What does this video show me ?
Re:Super Mario World "Executes Arbitrary Code" [video] by mey on Monday January 13, 2014 @07:20PM (#7054555)
TAS stands for Tool ASsisted, basically scripts pressing the buttons on the controller

On the right side of the screen each letter lighting up represents a controller input (l is left, r is right etc)

Each line represents a gamepad controller (virtual in this case). When you see multiple lines it means multiple controllers (I am assuming this, as later there is more than 8 contollers active which is strange)

Whats happening is a script running to glitch the game from the start into a certain state, beginning of the video until 1:40, then it looks like an exploit happens of the previous glitches in memory, followed quickly after by a massive data load that is the code for the pong/snake demos that follow.

Re:Super Mario World "Executes Arbitrary Code" [video] by TheSisb2 on Monday January 13, 2014 @07:35PM (#7054612)
TAS stands for Tool Assisted Speedruns. There's a huge history of gamers competing to complete games as quickly as possible. Eventually tools were created that allowed people to simulate key presses in such a way that previously impossible feats became a reality. For example, many game quirks rely on pixel perfect or frame perfect executions of button presses. Also, some sequences of button presses are simply too quick or elaborate for the human hand to reproduce. Thus, the TAS scene emerged and took speedrunning to a whole new level. It's unfair to compare a human speedrun with a TAS speedrun, so it is necessary to specify the "TAS" acronym whenever a run is shown having been created with the use of tools. Human and TAS speedruns are completely different to watch and both highly interesting.
Re:Super Mario World "Executes Arbitrary Code" [video] by mey on Monday January 13, 2014 @08:30PM (#7054788)
Thanks for the correction, I should've known that but missed it in my brief check.
Re:Super Mario World "Executes Arbitrary Code" [video] by city41 on Monday January 13, 2014 @08:46PM (#7054856)
From the tasvideos link:

> This run uses two multitaps in port 1 and port 2 which allows for 8 controllers (1-1, 1-2 ,1-3, 1-4, 2-1, 2-2, 2-3, 2-4) of which 4 are used (1-1, 1-2, 2-1, 2-2) for the last input.

Re:Super Mario World "Executes Arbitrary Code" [video] by bvk on Tuesday January 14, 2014 @10:22AM (#7057474)
In general, Super Mario World is being played back on a Super Nintendo emulator using prerecorded inputs (a file exists that says which buttons should be held down on each frame). But these inputs aren't a recording of someone actually playing; these button presses were constructed frame-by-frame very carefully to produce these specific effects. Theoretically, if you could manipulate a Super Nintendo controller with perfect precision 60 times per second you could reproduce this.

Specifically, some objects in-game have pointers to code associated with them ("what to do if this block gets hit by a turtle shell", that sort of thing). The P-switch has one of these pointers assigned to a very special value by coincidence: its pointer points to the memory location where button presses are mapped. This pointer is never supposed to be followed, but by making a bunch of objects very carefully the authors can glitch the game into jumping to that memory address. Once execution is there, they can write a bootloader by making sure the button inputs on each frame correspond to the correct opcodes, letting them execute arbitrary code that they write in on the controller port.

I wasn't involved in the production of this TAS, so I'm not an expert, but that's my understanding of what's going on.

Re:Super Mario World "Executes Arbitrary Code" [video] by IvyMike on Tuesday January 14, 2014 @02:19AM (#7055831)
Matrix reboot starring Mario as Neo, and instead of escaping the Matrix, he just changes it to play pong.
Re:Super Mario World "Executes Arbitrary Code" [video] by notthemessiah on Tuesday January 14, 2014 @11:12AM (#7057758)
Relevant xkcd: http://xkcd.com/117/
Re:Super Mario World "Executes Arbitrary Code" [video] by richforrester on Monday January 13, 2014 @06:27PM (#7054321)
Funny. I remember calling the Dutch Nintendo help-line (from a land-line no less) to find out how to get to the final castle's backdoor. This is back when I was about 10 years old.

Now, there's people coding games in that game by playing it.

I thought myself a gamer.

Re:Super Mario World "Executes Arbitrary Code" [video] by kylek on Tuesday January 14, 2014 @01:05AM (#7055645)