ROBChain/poc/Makefile

25 lines
485 B
Makefile
Raw Normal View History

PYTHON := python3
ifeq (, $(shell which python3))
# if no python3 alias, fall back to `python` and hope it's py3
PYTHON := python
endif
2019-02-13 17:54:06 +01:00
2019-01-18 22:51:28 +01:00
all: exploit.mscsb
clean:
2019-01-18 23:23:30 +01:00
rm -f exploit.mscsb payload.s payload.bin main.s
2019-01-18 22:51:28 +01:00
exploit.mscsb: payload.s Scripts main.s
$(PYTHON) ../pymsc/asm.py
2019-01-18 22:51:28 +01:00
payload.s: payload.bin
$(PYTHON) generate_payload.py
2019-01-18 22:51:28 +01:00
2019-01-18 23:23:30 +01:00
payload.bin: crashText.txt
cp -f crashText.txt payload.bin
printf "\0" >> payload.bin
2019-01-18 22:51:28 +01:00
main.s: rop_setup.s
$(PYTHON) generate_rop.py
2019-01-18 22:51:28 +01:00