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
|
2020-02-11 23:52:47 +01:00
|
|
|
PYTHON := python3
|
|
|
|
ifeq (, $(shell which python3))
|
|
|
|
# if no python3 alias, fall back to `python` and hope it's py3
|
|
|
|
PYTHON := python
|
|
|
|
endif
|
2019-01-23 21:31:59 +01:00
|
|
|
|
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
|
2020-02-11 23:52:47 +01:00
|
|
|
$(PYTHON) ../pymsc/asm.py
|
2019-01-18 21:09:44 +01:00
|
|
|
|
2019-01-23 21:31:59 +01:00
|
|
|
payload.s: payload.bin
|
2020-02-11 23:52:47 +01:00
|
|
|
$(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
|
2019-02-13 17:54:06 +01:00
|
|
|
|
2019-01-23 21:31:59 +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
|
|
|
|
2019-01-23 21:31:59 +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;
|