Buffer Overflow not working

前端 未结 4 1027
囚心锁ツ
囚心锁ツ 2020-12-20 21:33

I was trying to do a buffer overflow (I\'m using Linux) on a simple program that requires a password. Here\'s the program code:

#include 
#inc         


        
4条回答
  •  独厮守ぢ
    2020-12-20 21:58

    In modern linux distributions buffer overflow is detected and the process is killed. In order to disable that mode simply compile your application with such flags (gcc):

    -fno-stack-protector -fno-stack-protector-all

提交回复
热议问题