Linux栈溢出保护机制

root@# sysctl -w kernel.randomize_va_space=0
root@# sysctl -w kernel.exec-shield=0
root# gcc -fno-stack-protector -z execstack -g -o test test.c

GDB

(gdb) disass main

 

 

CategoriesOS