Update targets

This commit is contained in:
Yorick Barbanneau 2023-03-30 02:08:10 +02:00
parent 7b5895f781
commit 0cb659ea99

View file

@ -23,9 +23,17 @@ $(BUILD_DIR)/%: %.c
build: $(addprefix $(BUILD_DIR)/, $(TGT)))
PHONY: gdb_anodin
gdb_anodin: build/anodin configure
PYTHONPATH=${PWD}/pframe${PYTHONPATH:+:${PYTHONPATH}} \
setarch -R gdb ./$(BUILD_DIR)/anodin
PHONY: gdb
gdb: build/exploit build/anodin configure
echo '0x7fffffffe490' | ./$(BUILD_DIR)/exploit > hack.txt
ifeq ($(A_ADDR),)
$(error A_ADDR must be defined, launch make gdb_anofin then run it)
endif
echo '$(A_ADDR)' | ./$(BUILD_DIR)/exploit > hack.txt
PYTHONPATH=${PWD}/pframe${PYTHONPATH:+:${PYTHONPATH}} \
setarch -R gdb ./$(BUILD_DIR)/anodin --command=anodin.gdb
rm hack.txt