If I have a libc file which is used on another server where the vulnerable binary is running, then how can I find the address of system in it?
I have both the vulnerable binary and the libc file with me.
Usually, on local system, I would use gdb to find system() address. But when I execute binary from on my system, it will be using libc from my system.
So, how can I make sure that the address I find using gdb is of the libc from another server and not on my local system?
Should I place the libc file (from another server) in the same directory as the binary so that it is loaded by default when it's executed instead of the libc of local system?
Thanks.