Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Inject and write in memory

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
sav3nger
How do I cheat?
Reputation: 0

Joined: 24 May 2020
Posts: 5

PostPosted: Thu Mar 11, 2021 8:50 am    Post subject: Inject and write in memory Reply with quote

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
View user's profile Send private message
sbryzl
Master Cheater
Reputation: 6

Joined: 25 Jul 2016
Posts: 252

PostPosted: Thu Mar 11, 2021 11:51 am    Post subject: Reply with quote

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
View user's profile Send private message
sav3nger
How do I cheat?
Reputation: 0

Joined: 24 May 2020
Posts: 5

PostPosted: Thu Mar 11, 2021 1:22 pm    Post subject: Reply with quote

oh its so cool, thank u!)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites