[PLUG] stack smash issue

null null giimale at gmail.com
Fri Jul 31 18:36:05 IST 2009


On Fri, Jul 31, 2009 at 5:07 PM, abhi<abhi.elementx at gmail.com> wrote:
> Oh and heres the asm code:
> gdb code:
> (gdb) disas main
> Dump of assembler code for function main:
> 0x0804844e <main+0>:    lea    0x4(%esp),%ecx
> 0x08048452 <main+4>:    and    $0xfffffff0,%esp
> 0x08048455 <main+7>:    pushl  -0x4(%ecx)


using gdb: once inside function() -
"info reg" and "p &buffer1[0]" give me a difference of 9 between
buffer1 and ebp, so
ret = buffer1 + 13; // ebp + 4
works fine for me, try n let me know what u get

-- 
Cheers,
@




More information about the Plug-mail mailing list