View previous topic :: View next topic |
Author |
Message |
luckruns0ut How do I cheat?
Reputation: 0
Joined: 02 Jul 2013 Posts: 3
|
Posted: Tue Jul 02, 2013 9:14 am Post subject: Help with getting static offset/pointer. |
|
|
I'm learning about memory and modifying it etc, so I thought it would be a good idea to do something simple: Monitoring a player's health in Runescape and whenever it goes below a threshold, click food. Nothing big.
I've managed to be able to find a pointer which leads to the health variable and it works fine inside cheat engine, I can see it move up and down as the health does and modifying it modifies the health. However, I can't work out how to get the offset for it even after hours of searching.
Anyway, I've scanned for the variable and found it. Two instructions were found:
mov[edx+ebx*4+0C],eax
mov ecx,[ebx+ecx*4+0c]
How do you work out an offset from this? I tried subbing in the values I received after double clicking on each and had no success.
I then scanned for a pointer and got one working, here is information about it should that be useful:
Code: |
18 0A083C70+18 = 0A03C88
148 0A4E3C70+148 -> 0A03C70
474 15392c80+474 -> 0A4EC70
440 1B3FB358+440 -> 15392C80
368 193B23D8+368 ->1B3FB358
"jvm.dll"+002F8588 -> 193B23D8
|
The memory reading functions I'm using work as I can put the non-static address into it and it works fine but it obviously stops working after the game has been restarted.
Help is greatly appreciated. Thanks.
|
|
Back to top |
|
 |
Gniarf Grandmaster Cheater Supreme
Reputation: 43
Joined: 12 Mar 2012 Posts: 1285
|
Posted: Tue Jul 02, 2013 10:16 am Post subject: Re: Help with getting static offset/pointer. |
|
|
luckruns0ut wrote: | Anyway, I've scanned for the variable and found it. Two instructions were found:
mov[edx+ebx*4+0C],eax
mov ecx,[ebx+ecx*4+0c]
How do you work out an offset from this? | When you've got a "mov [Something1+Something2*4+SomeConstant],Whatever" the offset is most cases Something2*4+SomeConstant. Sometimes there are earlier operations on Something1 (additions/subtractions) that make the above formula inaccurate.
luckruns0ut wrote: | I then scanned for a pointer and got one working, here is information about it should that be useful:
Code: |
18 0A083C70+18 = 0A03C88
148 0A4E3C70+148 -> 0A03C70
474 15392c80+474 -> 0A4EC70
440 1B3FB358+440 -> 15392C80
368 193B23D8+368 ->1B3FB358
"jvm.dll"+002F8588 -> 193B23D8
|
| Reboot your computer: does it still work? I don't know the specifics of your game, but I doubt your pointer will continue to work because jvm stands for Java Virtual Machine, and afaik the pointer approach is inappropriate for java games.
luckruns0ut wrote: | I'm learning about memory and modifying it etc, so I thought it would be a good idea to do something simple: Monitoring a player's health in Runescape and whenever it goes below a threshold, click food. Nothing big. | Unfortunately hacking java, flash or .net targets is more complicated than the average game. This is because the pointer approach will not work in those games, and patching their asm code requires scanning for signatures (aobscans).
To hack a java game I strongly suggest decompiling it. Google up, there are tons of .jar decompilers on the net.
|
|
Back to top |
|
 |
luckruns0ut How do I cheat?
Reputation: 0
Joined: 02 Jul 2013 Posts: 3
|
Posted: Tue Jul 02, 2013 10:47 am Post subject: |
|
|
Ok, thanks. I didn't realize that java was not possible to get a static address for... I've decompiled the client before but they have strong obfuscation accross multiple clients, when a client connects a random version of the client is sent over which makes it harder to get rid of the obfuscation :/
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25796 Location: The netherlands
|
Posted: Tue Jul 02, 2013 11:47 am Post subject: |
|
|
pointers work in java game, assuming the process only has one java game, and everyone used the same jvm version. It's just that the pointer paths tend to be a lot longer in java games
alternatively, you could play with openjdk
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
luckruns0ut How do I cheat?
Reputation: 0
Joined: 02 Jul 2013 Posts: 3
|
Posted: Tue Jul 02, 2013 5:45 pm Post subject: |
|
|
Dark Byte wrote: | pointers work in java game, assuming the process only has one java game, and everyone used the same jvm version. It's just that the pointer paths tend to be a lot longer in java games
alternatively, you could play with openjdk |
So what should I do in order to get this to work? It's not vital that I do get it to work, it was just something I thought might be a good idea to do whilst trying to learn about memory functions.
|
|
Back to top |
|
 |
|