vaguilar / pokemon-red-cable-club-hack

This is a proof of concept to demonstrate a buffer overflow in the Cable Club
Apache License 2.0
18 stars 5 forks source link

change the build file of the shellcode "hello world" #1

Closed gogo2464 closed 4 years ago

gogo2464 commented 4 years ago

The build file https://github.com/vaguilar/pokemon-red-cable-club-hack/blob/master/asm/hello/build is depreciated. It does not work with the binaries built from https://github.com/vhelin/wla-dx. When we launch the build file, many program crash and the compilation fails.

The new script file should be:

`#!/bin/bash

if [ -z "$1" ] then name="hello" else name=$1 fi

wla-gb -x -o $name.o $name.asm && wlalink -d -v -s linkfile $name.gb && dd if=$name.gb of=$name.bin bs=1 skip=50646 count=196 && hexdump $name.bin`

vaguilar commented 4 years ago

fixed with #2