Comments on Stack Overwriting Function

Juan Edwards said:

Good article. This is how buffer overflow is exploited. But I guess, kernel provides some random stack alignment to prevent this.

Jerald Long said:

I think you mean ASLR. On Linux, this can be turned off by running echo 0 > /proc/sys/kernel/randomize_va_space. On Windows, DEP can be turned off at Control PanelSystemAdvancedPerformanceSettings, if I remember correctly.