Jump to content

Multilevel pointer


Recommended Posts

I am trying to read a multi level pointer from an .exe and it seems i have done everything right, but the value doesnt get read or it gets read wrong. First i tryed doing everything myself, but this code is from a script on this forum that automaticly makes a pointer read script from a cheatengine copy clipboard. So this should work, but it still doesnt read the value. Can anyone please help me. Thanks.

#include <NomadMemory.au3>

$pid=ProcessExists("<program>.exe")
$value=_Read($pid)
MsgBox(0,0,$value)


Func _Read($pid)

    Global $Offset[4]
    $Offset[0] = 0
    $Offset[1] = Dec("105C")
    $Offset[2] = Dec("0070")
    $Offset[3] = Dec("000C")
    $StaticOffset = Dec("4C3E88")
    $openmem = _MemoryOpen($pid)
    $baseADDR = _MemoryGetBaseAddress($openmem, 1)
    $finalADDR = "0x" & Hex($baseADDR + $StaticOffset)
    $MemPointer = _MemoryPointerRead($finalADDR, $openmem, $Offset)
    _MemoryClose($openmem)

    Return $MemPointer
EndFunc
Edited by darkmaster071
Link to comment
Share on other sites

Not sure about read but here is some write. Check this to see if it looks similar.

Also make sure you are using the array correctly. Reading returns an array of value and address.

If you are familiar with the Tutorial.exe try using this and change write to read with a message box or something.

If this must be removed feel free to remove it. I personally see no problem with it, but I know others do.

NomadMemory.au3

GetAddressFromCheatEngineTable.au3

Trainer.au3

Edited by darkjohn20
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...