performing simple stack overflow on Mac os 10.6

Posted by REALFREE on Stack Overflow See other posts from Stack Overflow or by REALFREE
Published on 2010-06-11T21:28:33Z Indexed on 2010/06/11 21:32 UTC
Read the original article Hit count: 360

Filed under:
|
|

I'm trying to learn about stack base overflow and write a simple code to exploit stack. But somehow it doesn't work at all but showing only Abort trap on my machine (mac os leopard)

I guess Mac os treats overflow differently, it won't allow me to overwrite memory through c code. for example,

strcpy(buffer, input) // lets say char buffer[6] but input is 7 bytes

on Linux machine, this code successfully overwrite next stack, but prevented on mac os (Abort trap)

Anyone know how to perform a simple stack-base overflow on mac machine?

© Stack Overflow or respective owner

Related posts about c

    Related posts about mac