Let's run checksec
on the binary we have.
$> checksec --file bonus3
RELRO STACK CANARY NX PIE RPATH RUNPATH FILE
No RELRO No canary found NX enabled No PIE No RPATH No RUNPATH bonus3
Same security as previous level expect NX is enabled this time.
Useful data on the binary itself.
Use this command to compile source.c
, reproduction source-code of the given binary.
$> gcc -Wl,-z,norelro -fno-stack-protector -z execstack -o bonus3 source.c