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 


[Help]Finding the value of rdi in c++

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
jobeth213
Newbie cheater
Reputation: 0

Joined: 27 Sep 2016
Posts: 22

PostPosted: Thu Feb 24, 2022 1:17 am    Post subject: [Help]Finding the value of rdi in c++ Reply with quote

how to find the value of a game register in c++

I manage to find the asembly that access player X but I don't know how to read rdi of the game registers in c++ . Any help is appreciated.

Code:
movsd [rdi+00000248],xmm0   //rdi+00000248 - player X

_________________
I'm idiot
Back to top
View user's profile Send private message
mindoff
Advanced Cheater
Reputation: 0

Joined: 12 Jun 2016
Posts: 96

PostPosted: Thu Feb 24, 2022 4:15 am    Post subject: Reply with quote

should be the same way with ce lua,inject asm code to jump to a new memory you allocated with win32 api

then use asm to write rdi to another memory address you created.

then jump back to original op code address(next op address)

since the memory are all what you created manually,you know your memory address in c++,and you can use it as you wish

you need to calucate jump to and jump back address and the asm code(op code, byte code) with it then should be ok to work,that's it i think,that's my way to do so
====================

let me make it a little bit clear

1.allocate memory in c++ by win32 api,VirtualAllocEx

2.inject asm(op code) to original code,just like ce does to your allocated memory

and write some asm code(op code) to record rdi to another memory,something like

move [addr], rdi

using WriteProcessMemory

3.copy original code and jump back to original code address next to where you come from,just like ce does

4.read memory where you record rdi,using ReadProcessMemory
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 Gamehacking 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