2019-01-23 21:31:59 +01:00
|
|
|
wiiuhaxx_common_path := ../wiiuhaxx_common/wiiu_browserhax_common.php
|
|
|
|
wiiuhaxx_common_cfg := wiiuhaxx_common_cfg.php
|
|
|
|
pymsc_asm_py := ../pymsc/asm.py
|
|
|
|
|
2019-01-23 19:42:11 +01:00
|
|
|
all: clean exploit.mscsb
|
2019-01-18 21:09:44 +01:00
|
|
|
|
|
|
|
clean:
|
2019-01-18 22:06:49 +01:00
|
|
|
rm -f exploit.mscsb payload.s main.s
|
2019-01-18 21:09:44 +01:00
|
|
|
|
2019-01-23 21:31:59 +01:00
|
|
|
exploit.mscsb: $(pymsc_asm_py) payload.s Scripts main.s
|
|
|
|
python ../pymsc/asm.py
|
2019-01-18 21:09:44 +01:00
|
|
|
|
2019-01-23 21:31:59 +01:00
|
|
|
payload.s: payload.bin
|
|
|
|
python generate_payload.py
|
2019-01-18 21:09:44 +01:00
|
|
|
|
2019-01-23 21:31:59 +01:00
|
|
|
main.s: rop_setup.s $(wiiuhaxx_common_cfg) $(wiiuhaxx_common_path)
|
|
|
|
php generatepayload.php > main.s
|
|
|
|
|
|
|
|
$(pymsc_asm_py):
|
|
|
|
if [ -a $(pymsc_asm_py) ]; then $(error missing $(pymsc_asm_py) (git clone recursive)); fi;
|
|
|
|
|
|
|
|
$(wiiuhaxx_common_path):
|
|
|
|
if [ -a $(wiiuhaxx_common_path) ]; then $(error missing $(wiiuhaxx_common_path)); fi;
|
2019-01-18 22:06:49 +01:00
|
|
|
|
2019-01-23 21:31:59 +01:00
|
|
|
$(wiiuhaxx_common_cfg):
|
|
|
|
if [ -a $(wiiuhaxx_common_cfg) ]; then $(error missing $(wiiuhaxx_common_cfg)); fi;
|