On Sat, Aug 1, 2009 at 10:01 AM, abhi<abhi.eleme...@gmail.com> wrote: >>ret = buffer1 + 13; // ebp + 4 >>works fine for me, try n let me know what u get > > Hi null null(heh) > I tried but* aint working*. > What OS, kernel, gcc do u have? >
compile using: -fno-stack-protector option to gcc Doesn't matter what version u are using. only thing restricting it in 4.3.3 is the default stack smash protection. you need to just calulate the difference between eip and buffer1 (which should be 13 in this case) and it should work. Yes, I'm using the same kernel and gcc version -- Cheers, @ _______________________________________ Pune GNU/Linux Users Group Mailing List