fenix01 / cheatengine-library

Cheat Engine Library is based on CheatEngine a debugger and coding environment particularly aimed at games, but can also be used for other purposes like debugging applications and used in schools for teaching how computers work
259 stars 79 forks source link

aobscanmodule script not working #16

Open sesey opened 6 years ago

sesey commented 6 years ago

aobscanmodule script not working? please give support.

[ENABLE]
aobscanmodule(INJECT,test.exe,44 8B 80 34 01 00 00 EB) // should be unique
alloc(newmem,$1000,"test.exe"+1BBB3E3)
label(code)
label(return)

newmem:

code:
  mov r8d,[rax+134]
  jmp return

INJECT:
  jmp newmem
  nop
  nop
return:
registersymbol(INJECT)

[DISABLE]
//code from here till the end of the code will be used to disable the cheat
INJECT:
  db 44 8B 80 34 01 00 00
unregistersymbol(INJECT)
dealloc(newmem)