Return to libc attack
Hi,
Am currently doing Return to libc attack as part of an assignment. I have analysed the code and I have replaced the return address to point to system() with /bin/sh as argument. I have the following pattern in the stack. 4 bytes - return address - address of system() 4 bytes - address of exit() 4 bytes - Address of /bin/sh. When I execute the code in gdb my program spawns a shell, whereas when I execute without gdb my program goes for a gracefull exit and I dont get a shell prompt. Please help me out with this? Regards Sridhar M |
I notice that you are new to LQ and would like to suggest that you please review the LQ Rules, here.
Unfortunately, your question is a violation of two of them:
|
And on that note, I'm closing the thread.
msridhar87, LQ isn't the place to get help with attack code. |
All times are GMT -5. The time now is 09:30 PM. |