Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Node.JS] Get correct address with pointers

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Falco_
How do I cheat?
Reputation: 0

Joined: 28 Nov 2016
Posts: 2

PostPosted: Mon Nov 28, 2016 9:32 am    Post subject: [Node.JS] Get correct address with pointers Reply with quote

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. Very Happy
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Mon Nov 28, 2016 5:44 pm    Post subject: Reply with quote

64-bit process. Pointers are 8 bytes, not 4.
Look at the bytes you returned:
Code:
Found:     e65ad7f0
Wanted: 197E65AD7F0
Back to top
View user's profile Send private message
Falco_
How do I cheat?
Reputation: 0

Joined: 28 Nov 2016
Posts: 2

PostPosted: Tue Nov 29, 2016 5:18 am    Post subject: Reply with quote

It works now, thank you Zanzer.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites