Skip to content

PIE TIME

cat vuln.c

Need to provide address to the win() function

gdb ./vuln
(gdb) info functions

main() is at 0x000000000000133d and win() is at 0x00000000000012a7

So, we just have to change 33d to 2a7 in the main() address provided when the binary is run