Getting a value with two pointers? [Solved]

Memory scanning, code injection, debugger internals and other gamemodding related discussion
Post Reply
ned_is_dead
Novice Cheater
Novice Cheater
Posts: 16
Joined: Fri Mar 24, 2017 9:13 am
Reputation: 6

Getting a value with two pointers? [Solved]

Post by ned_is_dead »

Hey guys,

I have a question about creating a pointer via AOB injection.

Normally I search for a value and check what is accessing it. And with that method I find something like:

mov rdi,[rsi+10]

So I can create a AOB injection for that instruction, create a pointer in that script, add the pointer to the table
and add the offset 10 to get to my value. Done!

In my last attempt to find a specific value I found the following instruction:

mov rdi,[rsi+rbx+10]

Now I am not able to do something like this to create a pointer:

mov [pMyPointer],rsi+rbx

rsi contains an address and rbx contains and offset value as address. Something like 000180. So to get to my
value I would need to use the pointer address from rsi and add 000180 and add 10.

How do I do it?

Just creating a pointer for rsi and a second pointer for rbx does not work, because I cannot add the "address" from the rbx
pointer as offset to the rsi pointer.

Any help would be great. :)
Last edited by ned_is_dead on Wed May 11, 2022 10:46 pm, edited 1 time in total.

User avatar
Rhark
Expert Cheater
Expert Cheater
Posts: 2894
Joined: Tue Apr 16, 2019 1:27 am
Reputation: 1236

Re: Getting a value with two pointers?

Post by Rhark »

Example:

Code: Select all

push rax
lea rax,[rsi+rbx]
mov [myPointer],rax
pop rax

ned_is_dead
Novice Cheater
Novice Cheater
Posts: 16
Joined: Fri Mar 24, 2017 9:13 am
Reputation: 6

Re: Getting a value with two pointers?

Post by ned_is_dead »

Thank you.

That worked great! :)

Post Reply

Who is online

Users browsing this forum: No registered users