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