Class 02 · KP 19 / 23
checksec and /proc/<pid>/maps
$ checksec --file=./vuln
RELRO STACK CANARY NX PIE
Partial No canary NX enabled No PIE
$ cat /proc/$(pidof vuln)/maps
555555554000-555555555000 r-xp ... /home/ctf/vuln # .text
7ffff7dc0000-7ffff7fb0000 r-xp ... libc.so.6 # libc code
7ffffffde000-7ffffffff000 rw-p ... [stack] # the stack
checksec reports which mitigations are on: NX, stack canary, PIE, RELRO — this dictates your attack strategy./proc/<pid>/maps shows the live memory map with real addresses and permissions.