Homework - Cannot exploit bufferoverflow

前端 未结 2 2096
被撕碎了的回忆
被撕碎了的回忆 2021-01-05 18:38

I am trying to learn to exploit simple bufferover flow technique on Backtrack Linux.

Here is my C program

#include 
#include 

        
相关标签:
2条回答
  • 2021-01-05 19:31

    I have answered my own question, the problem was "Executable Stack Protection", where in stack memory cannot be executed. This can be disabled in gcc as follows

    gcc -z execstack

    0 讨论(0)
  • 2021-01-05 19:31

    Have you disabled stack smashing protection in GCC (-fno-stack-protector)?

    How to turn off gcc compiler optimization to enable buffer overflow

    0 讨论(0)
提交回复
热议问题