Sign in to follow this  
Followers 0
MasterX

Reading memory pointer

6 posts in this topic

I would like to read a pointer , the adress is game.exe+0046A578 and it has a offset of 2EC. I used the MemoryGetBaseAddressUDF to get the adress of game.exe.

But the problem is the offset :P

$finalADDR = "0x" & Hex($baseADDR + $StaticOffset)

ow can i add the offset here ?

#include<NomadMemory.au3>
#include<MemoryGetBaseAddressUDF.au3>
$iv_Pid = WinGetProcess(WinGetTitle("**"))
$iv_DesiredAccess =0x1F0FFF
$iv_InheritHandle = 1
$sv_Type = "dword"
$OpenProccess = _MemoryOpen($iv_Pid)
$StaticOffset= Dec("0046A578")
$baseADDR=_MemoryGetBaseAddress($OpenProccess, 1)
$finalADDR = "0x" & Hex($baseADDR + $StaticOffset)
$Read =  _MemoryRead($finalADDR,$OpenProccess,$sv_Type)
MsgBox(0,"",$finalADDR)
_MemoryClose($OpenProccess)

Share this post


Link to post
Share on other sites



$finalADDR = "0x" & Hex($baseADDR + $StaticOffset + 0x2EC )

Share this post


Link to post
Share on other sites

Try with my _MemoryModuleGetBaseAddress:

#include <NomadMemory.au3>
#include <MemoryModuleGetBaseAddressUDF.au3>
Dim $iPID = WinGetProcess(WinGetTitle("**"))
Dim $hMem = _MemoryOpen($iPID)
Dim $baseAddr = _MemoryModuleGetBaseAddress($iPID, "whatever.exe") + 0x46A578
Dim $aOffset[1]
$aOffset[0] = 0x2EC
Dim $Read = _MemoryPointerRead($baseAddr, $hMem, $aOffset, "dword")
MsgBox(0, "", $Read)
_MemoryClose($hMem)

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Where do you get the function _MemoryPointerRead from ?

@DllParse

When i do what you wrote i get a false adress :P

The game.exe+0046A578 is from cheat engine.....

Edited by MasterX

Share this post


Link to post
Share on other sites

_MemoryPointerRead from NomadMemory. I modified the original a bit (return error shortened).

NomadMemoryNew.au3

Share this post


Link to post
Share on other sites

Yea it works !!!!!!

Thanks alot dude :P

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0