 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
sav3nger How do I cheat?
Reputation: 0
Joined: 24 May 2020 Posts: 5
|
Posted: Thu Mar 11, 2021 8:50 am Post subject: Inject and write in memory |
|
|
I found opcodes in the game (movss [rbx+00000178],xmm0) which give access to needed address, but with attach debugger. Find pointers to address is impossible, dynamic loading python, nwm. So i want to inject my code into that opcodes and write value in rbx to any allocated address in memory.
If i will be allocating memory with ctrl+alt+m, memory will be alocated in main .exe memory and i can't get access to them from .dll
How to allocate address into dll and write to value of register and how i can to know that address for get info as by pointer?
p.s. if i try write into free address in dll, i got error: 8:offset too big
why?
Code: |
define(address,"_trinity_dx11_deploy.dll"+5F0055)
define(bytes,F3 0F 11 83 78 01 00 00)
[ENABLE]
assert(address,bytes)
alloc(newmem,$1000,"_trinity_dx11_deploy.dll"+5F0055)
alloc(pSpeed,4)
label(code)
label(return)
newmem:
mov [pSpeed],rbx
code:
movss [rbx+00000178],xmm0
jmp return
address:
jmp newmem
nop 3
return:
[DISABLE]
address:
db bytes
// movss [rbx+00000178],xmm0
dealloc(newmem)
dealloc(pSpeed)
|
so i write that scrip and it working! but pSpeed alloc i can know only in new opcodes, can i add to table allocated address or somethink like this?
|
|
Back to top |
|
 |
sbryzl Master Cheater
Reputation: 6
Joined: 25 Jul 2016 Posts: 252
|
Posted: Thu Mar 11, 2021 11:51 am Post subject: |
|
|
Use registersymbol to make it accessible in table or other scripts.
Code: |
define(address,"_trinity_dx11_deploy.dll"+5F0055)
define(bytes,F3 0F 11 83 78 01 00 00)
[ENABLE]
assert(address,bytes)
alloc(newmem,$1000,"_trinity_dx11_deploy.dll"+5F0055)
// alloc(pSpeed,4)
label(pSpeed)
registersymbol(pSpeed)
label(code)
label(return)
newmem:
mov [pSpeed],rbx
code:
movss [rbx+00000178],xmm0
jmp return
align 8
pSpeed:
dd 0
address:
jmp newmem
nop 3
return:
[DISABLE]
address:
db bytes
// movss [rbx+00000178],xmm0
unregistersymbol(pSpeed)
dealloc(newmem)
// dealloc(pSpeed) |
|
|
Back to top |
|
 |
sav3nger How do I cheat?
Reputation: 0
Joined: 24 May 2020 Posts: 5
|
Posted: Thu Mar 11, 2021 1:22 pm Post subject: |
|
|
oh its so cool, thank u!)
|
|
Back to top |
|
 |
|
|
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
|
|