Move python alias into a variable

This commit is contained in:
jam1garner 2019-02-13 11:54:06 -05:00
parent 6531d105ca
commit 0222c97c0b
2 changed files with 10 additions and 7 deletions

View File

@ -1,6 +1,7 @@
wiiuhaxx_common_path := ../wiiuhaxx_common/wiiu_browserhax_common.php wiiuhaxx_common_path := ../wiiuhaxx_common/wiiu_browserhax_common.php
wiiuhaxx_common_cfg := wiiuhaxx_common_cfg.php wiiuhaxx_common_cfg := wiiuhaxx_common_cfg.php
pymsc_asm_py := ../pymsc/asm.py pymsc_asm_py := ../pymsc/asm.py
python=python3
all: clean exploit.mscsb all: clean exploit.mscsb
@ -8,14 +9,14 @@ clean:
rm -f exploit.mscsb payload.s main.s rm -f exploit.mscsb payload.s main.s
exploit.mscsb: $(pymsc_asm_py) payload.s Scripts main.s exploit.mscsb: $(pymsc_asm_py) payload.s Scripts main.s
python ../pymsc/asm.py $(python) ../pymsc/asm.py
payload.s: payload.bin payload.s: payload.bin
python generate_payload.py $(python) generate_payload.py
main.s: rop_setup.s $(wiiuhaxx_common_cfg) $(wiiuhaxx_common_path) main.s: rop_setup.s $(wiiuhaxx_common_cfg) $(wiiuhaxx_common_path)
php generatepayload.php > main.s php generatepayload.php > main.s
$(pymsc_asm_py): $(pymsc_asm_py):
if [ -a $(pymsc_asm_py) ]; then $(error missing $(pymsc_asm_py) (git clone recursive)); fi; if [ -a $(pymsc_asm_py) ]; then $(error missing $(pymsc_asm_py) (git clone recursive)); fi;
@ -23,4 +24,4 @@ $(wiiuhaxx_common_path):
if [ -a $(wiiuhaxx_common_path) ]; then $(error missing $(wiiuhaxx_common_path)); fi; if [ -a $(wiiuhaxx_common_path) ]; then $(error missing $(wiiuhaxx_common_path)); fi;
$(wiiuhaxx_common_cfg): $(wiiuhaxx_common_cfg):
if [ -a $(wiiuhaxx_common_cfg) ]; then $(error missing $(wiiuhaxx_common_cfg)); fi; if [ -a $(wiiuhaxx_common_cfg) ]; then $(error missing $(wiiuhaxx_common_cfg)); fi;

View File

@ -1,18 +1,20 @@
python=python3
all: exploit.mscsb all: exploit.mscsb
clean: clean:
rm -f exploit.mscsb payload.s payload.bin main.s rm -f exploit.mscsb payload.s payload.bin main.s
exploit.mscsb: payload.s Scripts main.s exploit.mscsb: payload.s Scripts main.s
python3 ../pymsc/asm.py $(python) ../pymsc/asm.py
payload.s: payload.bin payload.s: payload.bin
python3 generate_payload.py $(python) generate_payload.py
payload.bin: crashText.txt payload.bin: crashText.txt
cp -f crashText.txt payload.bin cp -f crashText.txt payload.bin
printf "\0" >> payload.bin printf "\0" >> payload.bin
main.s: rop_setup.s main.s: rop_setup.s
python3 generate_rop.py $(python) generate_rop.py