ROBChain/kexploit/Makefile

28 lines
816 B
Makefile
Raw Normal View History

wiiuhaxx_common_path := ../wiiuhaxx_common/wiiu_browserhax_common.php
wiiuhaxx_common_cfg := wiiuhaxx_common_cfg.php
pymsc_asm_py := ../pymsc/asm.py
2019-02-13 17:54:06 +01:00
python=python3
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
exploit.mscsb: $(pymsc_asm_py) payload.s Scripts main.s
2019-02-13 17:54:06 +01:00
$(python) ../pymsc/asm.py
2019-01-18 21:09:44 +01:00
payload.s: payload.bin
2019-02-13 17:54:06 +01:00
$(python) generate_payload.py
2019-01-18 21:09:44 +01:00
main.s: rop_setup.s $(wiiuhaxx_common_cfg) $(wiiuhaxx_common_path)
php generatepayload.php > main.s
2019-02-13 17:54:06 +01:00
$(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
$(wiiuhaxx_common_cfg):
2019-02-13 17:54:06 +01:00
if [ -a $(wiiuhaxx_common_cfg) ]; then $(error missing $(wiiuhaxx_common_cfg)); fi;