[Help] Change multiple values

Memory scanning, code injection, debugger internals and other gamemodding related discussion
Post Reply
primeval
Cheater
Cheater
Posts: 29
Joined: Thu Aug 31, 2017 11:41 am
Reputation: 2

[Help] Change multiple values

Post by primeval »

I want to edit the code to work number 2 3. What should I do? Because it only works with data 1.
[Link]

Code: Select all

{
  Game   : Sango7.exe
  Version:
  Date   : 2024-06-02
  Author : MSI

  This script modifies the value at the specified memory address and locks it at 999.
}

[ENABLE]

aobscanmodule(INJECT,Sango7.exe,89 46 48 5E C3) // should be unique
alloc(newmem,$1000)

label(code)
label(return)
label(done)

registersymbol(done)

newmem:

code:
  cmp byte ptr [done], 1
  je return
  mov [esi+48], 4E7  // lock the value at 999 (3E7 in hex)
  mov byte ptr [done], 1
  pop esi
  ret

INJECT:
  jmp newmem
return:
  db 5E C3

newmem+10:
done:
  db 0

registersymbol(INJECT)

[DISABLE]

INJECT:
  db 89 46 48 5E C3

unregistersymbol(INJECT)
dealloc(newmem)

Post Reply

Who is online

Users browsing this forum: No registered users