开发者

what does stack and heap overflow exploit means

what does this stack and heap 开发者_高级运维over flow exploit mean


An example of Stack-based exploitation: (implementation defined or possibly undefined, nevertheless interesting!)

Just look at the output: http://www.ideone.com/A3vlY

Also note the runtime-error!

I'm particularly trying to do this:

  • By overwriting the return address in a stack frame. Once the function returns, execution will resume at the return address as specified by the attacker, usually a user input filled buffer.

From wikipedia's Stack-based exploitation bullet points

This example possibly demonstrates the above bullet-point quoted from wikipedia, giving you an interesting starting point of what Stack-based exploitation could mean. Sort of impetus for thought!


Wikipedia has a pretty good overview of these types of exploits: http://en.wikipedia.org/wiki/Buffer_overflow


For a real world example of this, check out this other Stack Overflow question:

Writing to pointer out of bounds after malloc() not causing error

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜