finish TD5

This commit is contained in:
Yorick Barbanneau 2023-03-11 00:26:21 +01:00
parent 99e7388994
commit bcd853f871
2 changed files with 78 additions and 69 deletions

View file

@ -25,7 +25,7 @@ build: $(addprefix $(BUILD_DIR)/, $(TGT)))
PHONY: gdb
gdb: build/exploit build/anodin configure
./$(BUILD_DIR)/exploit > hack.txt &
echo '0x7fffffffe490' | ./$(BUILD_DIR)/exploit > hack.txt
PYTHONPATH=${PWD}/pframe${PYTHONPATH:+:${PYTHONPATH}} \
setarch -R gdb ./$(BUILD_DIR)/anodin --command=anodin.gdb
rm hack.txt