Biosupremacy write MAX to Address

Memory scanning, code injection, debugger internals and other gamemodding related discussion
Post Reply
User avatar
Kalas
Expert Cheater
Expert Cheater
Posts: 548
Joined: Fri Mar 03, 2017 9:49 am
Reputation: 134

Biosupremacy write MAX to Address

Post by Kalas »

Hello,

I found out that at offset of 18 the value of 100 is the MAX Stamina,
How can I write a Script so it will write 100 always to my Stamina?

This is the Script without modifications:

Code: Select all

[ENABLE]

aobscan(aobStaminaMAX,ERROR: Could not find unique AOB, tried code "F3 0F 11 68 1C")
alloc(newmem,$100,15A60EA5)

label(code)
label(return)

newmem:

code:
  movss [rax+1C],xmm5
  jmp return

aobStaminaMAX+B20268:
  jmp newmem
return:
registersymbol(aobStaminaMAX)

[DISABLE]

aobStaminaMAX+B20268:
  db F3 0F 11 68 1C

unregistersymbol(aobStaminaMAX)
dealloc(newmem)
Also, how do I add more Array of bytes, any tutorials about that please?

User avatar
++METHOS
Administration
Administration
Posts: 275
Joined: Thu Mar 02, 2017 9:02 pm
Reputation: 95

Re: Biosupremacy write MAX to Address

Post by ++METHOS »

Assuming current stamina is at [rax+1C] and the original instruction is not accessing any other addresses:
newmem:
movss xmm5,[rax+18]

code:
movss [rax+1C],xmm5
jmp return

User avatar
Kalas
Expert Cheater
Expert Cheater
Posts: 548
Joined: Fri Mar 03, 2017 9:49 am
Reputation: 134

Re: Biosupremacy write MAX to Address

Post by Kalas »

Oh ok thank you :)

Post Reply

Who is online

Users browsing this forum: No registered users