Get value with Pointer and Offfset

02/11/2018 18:41 reyjhulyan#1
Hi, i have a problem, when i tried get the value of the address:
"metin2client.exe"+00F5565C Offset: 130, like this:
Code:
float result = *(float*)(ModuleBase+0x00F5565C+0x130);
not work, but when i get the real address of this Pointer and Offset it work
Code:
float result = *(float*)(0x22B020);
i want know how i get the value of a address with multi level pointer, thanks;
02/11/2018 20:54 algernong#2
What's the type of ModuleBase?
02/11/2018 23:53 maxi39#3
Quote:
Originally Posted by reyjhulyan View Post
Hi, i have a problem, when i tried get the value of the address:
"metin2client.exe"+00F5565C Offset: 130, like this:
Code:
float result = *(float*)(ModuleBase+0x00F5565C+0x130);
not work, but when i get the real address of this Pointer and Offset it work
Code:
float result = *(float*)(0x22B020);
i want know how i get the value of a address with multi level pointer, thanks;
versuch mal:

Code:
*(float*)( (* (int*) ((int*)ModuleBase+0x00F5565C)) +0x130)
mit den casts weiß ich net ob ich richtig liege.
aufjedenfall erstmal *(ModuleBase+0x00F5565C) und dann auf die adresse die du erhälst das offset 0x130 addieren.
02/12/2018 00:54 warfley#4
Quote:
Originally Posted by reyjhulyan View Post
Hi, i have a problem, when i tried get the value of the address:
"metin2client.exe"+00F5565C Offset: 130, like this:
Code:
float result = *(float*)(ModuleBase+0x00F5565C+0x130);
not work, but when i get the real address of this Pointer and Offset it work
Code:
float result = *(float*)(0x22B020);
i want know how i get the value of a address with multi level pointer, thanks;
Maybe overflow, check your types