I try exploit a format string in a vulnerable program.
For information, it is the lab4A of the RPIsec course. The NX protection and ASLR is disable but the program is FULL RELRO.
So my idea, it is to overwrite the ret address to execute my shellcode. I do it with gdb but without it, I can't find the good adress.
This is my payload:
0xbffff4dc is the location of the return adress in my program. It can change a little like 0xbffff4cc or 0xbffff4bc.
So without gdb, I try to execute my payload with different addresses like this: 0xbffff4ec 0xbffff4fc 0xbffff50c... but I did'nt get success.
How can I find the good address?