View previous topic :: View next topic |
Author |
Message |
Falco_ How do I cheat? Reputation: 0
Joined: 28 Nov 2016 Posts: 2
|
Posted: Mon Nov 28, 2016 9:32 am Post subject: [Node.JS] Get correct address with pointers |
|
|
Hello, I know this has been asked a lot but I still can't figure out how to use pointers even after reading multiple posts about it.
I'm trying to get to the addresses as shown on this screenshot but I have no idea how to get there:
i.imgur . com/VIdZy93l.png
I am however able to get the value of the first static address with +0086F0B0 but I have no clue what to do with it in order to end up with 197E65AD7F0, 197F7121D20, etc.
Node.JS output: i.imgur . com/XK1rRry.png
Here's the code that was output into the console:
Code: |
function start(base_address){
obj.open();
console.log("Application base address " + base_address.toString(16) + "\n-------------------------------------");
function readBytes(a){
var result = obj.read(a, 4);
console.log("Address " + a.toString(16) + " value: (hex) " + result.toString(16) + " (int) " + result + " (bytes) " + swap16(result).toString(16));
return result;
}
readBytes(0x07FF7AEA10000);
readBytes(0x07FF7AEA10000 + 0x0086F0B0);
console.log("^ static address (+86F0B0)");
obj.close();
}
|
If anyone could help me understand it, I'd really appreciate it.
|
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Mon Nov 28, 2016 5:44 pm Post subject: |
|
|
64-bit process. Pointers are 8 bytes, not 4.
Look at the bytes you returned: Code: | Found: e65ad7f0
Wanted: 197E65AD7F0 |
|
|
Back to top |
|
|
Falco_ How do I cheat? Reputation: 0
Joined: 28 Nov 2016 Posts: 2
|
Posted: Tue Nov 29, 2016 5:18 am Post subject: |
|
|
It works now, thank you Zanzer.
|
|
Back to top |
|
|
|