Gcc without stack protection
Submitted by madvip on Tue, 08/12/2008 - 07:10.
Most of the modern C compilers, like gcc, which are bundled in todays distros, have stack protection enabled. Sometimes, for security researchers like me, this can be a burden because we can't compile exploitable code, getting the following error:
*** stack smashing detected ***: ./vuln.o terminated
To disable stack protection during compile time, you need to pass the -fno-stack-protector argument:
gcc -fno-stack-protector -o vuln.o vuln.c

