thamugadi / twilight-injector

Produces a Zelda: Twilight Princess (Gamecube, PAL) savefile that will execute arbitrary code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

twilight-injector

ret2code in Zelda: Twilight Princess (Gamecube) savefile.

Usage:

yourcode.s > code.s
make GCI="your_savefile.gci"

This will be triggered when Epona's name needs to be loaded.

code.s will be compiled into PowerPC raw machine code and will be copied in the savefile. At runtime, the instructions will be located at 0x803ed214. The payload is setting the saved return address at this value.

It takes advantage of the buffer overflow vulnerability widely used in 2008 by Team Twiizers : https://github.com/lewurm/savezelda & https://github.com/FIX94/twilight-hack-gc

About

Produces a Zelda: Twilight Princess (Gamecube, PAL) savefile that will execute arbitrary code.

License:GNU General Public License v3.0


Languages

Language:C 89.7%Language:Makefile 9.3%Language:Assembly 1.0%