View previous topic :: View next topic |
Author |
Message |
Immusama How do I cheat? Reputation: 0
Joined: 08 Sep 2019 Posts: 6
|
Posted: Sun Sep 08, 2019 10:48 pm Post subject: Find static address |
|
|
Hello everyone,
I'm trying to find the gold value in UnderMine v0.1.3.4 which obviously works if I search 4 bytes and do some scans.. now I'm trying to find the static address(correct me if I'm wrong here, doing it first time) but everytime I generate the pointermap or do the pointerscan a couple times I end up with no results.
Can someone explain?
|
|
Back to top |
|
|
Csimbi I post too much Reputation: 94
Joined: 14 Jul 2007 Posts: 3108
|
Posted: Mon Sep 09, 2019 12:18 am Post subject: |
|
|
A few possibilities:
a. You are not scanning for the right address (does changing it actually give you more gold? try spending/earning some to test)
b. You did not go deep enough and hence, no results. Very game-dependent (well, abstraction-dependent).
c. The gold value does not belong to any specific object. (maybe it's just a variable in a script)
d. The developer made some efforts to hide it.
Instead of looking for a static pointer, try to find a piece of code that reads the value, hook that code with an AOB script (so it will work in future versions, too). In the script, take a copy of the pointer and use that for your sinister purposes
|
|
Back to top |
|
|
Immusama How do I cheat? Reputation: 0
Joined: 08 Sep 2019 Posts: 6
|
Posted: Mon Sep 09, 2019 1:10 am Post subject: |
|
|
a. Changing does affect the gold so it's the right one and not the display only one.
b. I think I did? I searched the address opened the debug to see what writes to that address and I saw that it has an offset +38, tried to find the pointer with given informations but still doesn't show anything.
c. Not experiences enough to know what to do
d. Maybe
I literally started doing this yesterday so I don't know what I'm doing to be honest..
|
|
Back to top |
|
|
Csimbi I post too much Reputation: 94
Joined: 14 Jul 2007 Posts: 3108
|
Posted: Mon Sep 09, 2019 2:04 am Post subject: |
|
|
Before that +38, there's a register.
That's the value of the pointer, save that to a variable of your own.
Select that instruction in the Memory Viewer, then go to:
Tools->Auto Assemble->Template
Pick AOB injection.
1.
Below these lines:
label(code)
label(return)
Put:
label(pGold)
registersymbol(pGold)
2.
Below the instruction of yours, put:
mov dword ptr [pGold],xxx -> xxx is the name of the register
3.
Below these lines:
return:
registersymbol(INJECT)
Put:
pGold:
dd 0
4.
Below this line:
unregistersymbol(INJECT)
Put:
unregistersymbol(pGold)
When you enable the script pGold will eventually take the pointer's value.
Go to the address list and click the button above: "Add address manually".
Put [pGold]+38 into into the address field and Gold into description and click ok.
Now you should see the gold in the table.
|
|
Back to top |
|
|
|