Jump to content

Memory write to a pointer + offset


Recommended Posts

Using nomadmemory and reading a pointer by

$result = _MemoryPointerRead($address, $handle, $offset)

Works fine. However, I cannot write to a pointer. I have only succeeded with writing to an address, but can't get it to work with a pointer.

_MemoryWrite($addressitpointsto,$handle, $somevalue)

Is it possible to include the offset in there somewhere? I tried after $somevalue, but it returned an error.

Edited by pokemaster
Link to comment
Share on other sites

Maybe you could give us some parts of your code, so that we exactly know what you want, because there are no relationships between your two codeparts O.o

I think you should get the adress, the pointer points to, then sum the offset (in HEX !!) and then you have to rewrite this adress

for example

$adress1 = _MemoryRead($pointer,$process)

$adress = Hex($adress1+$offset)

_MemoryWrite($adress,.......)

That's the way I do it and it works fine

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...