Stealthedit and alloc crashing my game

Memory scanning, code injection, debugger internals and other gamemodding related discussion
Post Reply
User avatar
LumInvader
What is cheating?
What is cheating?
Posts: 2
Joined: Sat Jan 12, 2019 8:33 pm
Reputation: 0

Stealthedit and alloc crashing my game

Post by LumInvader » Sat Jan 12, 2019 8:58 pm

Have this code below, works fine without stealthedit however when I try to allocate the game explodes

Code: Select all


[enable]

aobscanmodule(player,cheatenginewontgetsued.exe,00 11 22 33 44)
stealthedit(stealthedit1,player,10)
alloc(newmem,$1000)
label(code)
label(return)
label(backup)
label(playerptr)
registersymbol(playerptr)
label(stealthlocation1)
registersymbol(stealthlocation1)


newmem:
mov [backup],rax
mov rax,[rsi+20]
mov [playerptr],rax
mov rax,[backup]

code:
mov rcx,[rsi+20]
jmp return

backup:
dd 0

playerptr:
dd 0

stealthedit1:
  stealthlocation1:
    jmp code
       nop
         return:



[disable]
 stealthlocation1:
dd 00 11 22 33 44

unregistersymbol(stealthlocation1)
unregistersymbol(playerptr)
dealloc(newmem)
alloc(newmem,$1000) works but crashes game when I disable the cheat.

alloc(newmem,$1000,player) crashes my game which is what I am trying to fix

Anyone tell me what I am doing wrong here ?

User avatar
LumInvader
What is cheating?
What is cheating?
Posts: 2
Joined: Sat Jan 12, 2019 8:33 pm
Reputation: 0

Re: Stealthedit and alloc crashing my game

Post by LumInvader » Sun Jan 13, 2019 1:34 am

Maybe @sunbeam can take a look? for now I just used readmem which seems to work ¯\_(ツ)_/¯

Post Reply

Who is online

Users browsing this forum: No registered users