2012. 6. 16. 15:41

[출처 : hackerschool.org]


gcc -o bookw0rm b.c -fno-stack-protector -z execstack -fno-builtin -mpreferred-stack-boundary=2


                         [스택 보호 ]                [스택 실행= DEP]           [까나리 해제]



dep 없애기
echo 0 > /proc/sys/kernel/exec-shield

ASLR 없애기
echo 0 > /proc/sys/kernel/exec-shield-randomize
sysctl -w kernel.randomize_va_space=0

Posted by k1rha