About gcc

About gcc

gcc -fno-stack-protector -no-pie -z execstack -mpreferred-stack-boundary=4 -o output input.c

 

 

No canary found

-fno-stack-protector

No PIE

-no-pie

NX disabled

-z execstack

ASLR disable

sudo -s 
echo 0 > /proc/sys/kernel/randomize_va_space
exit

ASLR enable

sudo -s 
echo 2 > /proc/sys/kernel/randomize_va_space
exit

32bit

-m32

 

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注