LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   How can I find static memory addresses with scanmem? (http://www.linuxquestions.org/questions/linux-software-2/how-can-i-find-static-memory-addresses-with-scanmem-4175453782/)

Vexe 03-12-2013 11:00 AM

How can I find static memory addresses with scanmem?
 
I don't know if I should ask this here, but since it's related a bit to scanmem, which is a software, then I think it's OK.
That's not my only question actually, they're a bunch about scanmem.

1- As from the title, how can I find the base pointer, of say, an ammo variable of some game that I'm hacking? In CE, I just do 'find what writes/accesses this address' and follow along the series of pointers...

2- How can I freeze a value that I find? using 'set' will only set it, tried 'write', it was the same. I looked in scanmem's help, couldn't find any.

3- What about memory dissecting?

Maybe I should have asked, what's the tool(s) that could do that for me?
If scanmem can't do that, what can then?
And if there's no tool for that, how will be able to achieve those?
Do I have to for C? How will I go about doing that? what are the functions used? In C++/WinAPI there are WriteMemory, ReadMemory, etc that I could use to manipulate memory, how about C?

A lot of questions, I know, but they're all circling around one pole, which is mem hacking.

Thanks!

(Couldn't find the best tags)

pan64 03-12-2013 01:02 PM

Theoretically the processes (or the OS) protects the memory, so you cannot access or alter it from outside. For example the game doom can handle the ammo but you cannot inspect/modify it from another program. Probably you can try to modify the game itself to not handle the amount of ammo (or handle in a different way), but you need to find how it is implemented and also you need to modify the game code itself.
There is no general solution, it is game specific and also you need to learn about how a game implemented (in general).


All times are GMT -5. The time now is 06:50 AM.