Update targets
This commit is contained in:
parent
7b5895f781
commit
0cb659ea99
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue