So recently I was trying to work with a process, to read/write memory from/to the process.
I've written a little wrapper class for ptrace, and I'm using that at the moment.
However the process uses multiple shared objects, which I need the offset of, in order to calculate the address.
So let's say on the windows version of my process, the address is base.dll+0xFF00, so on linux I'm expecting it to be base.so+0xFF00, I've found a nice alternative to cheat engine called scanmem, in combination with gameconqueror.
However, I am not able to get the base address of the base.so, I've found this code for windows systems, however that does not work on linux systems.
So all over this is what I'm looking for: A function that gets the base address of a module within a process, by it's name, like: getModuleBase(pid,"base.so");
Is this even possible, or am I looking into something that won't even work anyway?
Thanks in advance!