Posted: Tue Jun 08, 2021 8:41 am Post subject: AOB injection, Unable to get pointer
Hi, very amateur cheater here.
I am creating a very simply table for editing HP and I found the function as follows
Code:
movss [r14+00000120],xmm5
r14+120 is the address for the HP, so I tried to get the pointer by adding the following to the AOB injection
Code:
globalalloc(HPpointer,64)
newmem:
mov [HPpointer],r14
and setting up a pointer with HPpointer+120
But the address do not match with the actual HP address (since I found that first and got the function by doing "find out what writes to this address")
Anyone know the reason why this didn't work? cause I had success getting the pointers this way in other games.
1: did you check if that instruction accesses other addresses?
2: the globalalloc generally won't be within +-2GiB of the code injection to use RIP-relative addressing, so that instruction will only compile if you're lucky. Use alloc / registersymbol, pass a third parameter to globalalloc as well, or address it through a register.
3: the size of allocs is in bytes, not bits. Changing 64 to 8 is more appropriate. _________________
I don't know where I'm going, but I'll figure it out when I get there.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum