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
|
2020-02-11 23:43:08 +01:00
|
|
|
|
|
|
|
all: exploit.mscsb
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f exploit.mscsb payload.s payload.bin main.s
|
|
|
|
|
|
|
|
exploit.mscsb: payload.s Scripts main.s
|
2020-02-11 23:52:47 +01:00
|
|
|
$(PYTHON) ../pymsc/asm.py
|
2020-02-11 23:43:08 +01:00
|
|
|
|
2020-03-06 19:51:36 +01:00
|
|
|
payload.s:
|
2020-02-11 23:52:47 +01:00
|
|
|
$(PYTHON) generate_payload.py
|
2020-02-11 23:43:08 +01:00
|
|
|
|
|
|
|
main.s: rop_setup.s
|
2020-02-11 23:52:47 +01:00
|
|
|
$(PYTHON) generate_rop.py
|
2020-02-11 23:43:08 +01:00
|
|
|
|