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 


code injection problem

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

Joined: 12 Jun 2022
Posts: 15

PostPosted: Thu Jun 23, 2022 11:52 pm    Post subject: code injection problem Reply with quote

i opened two processes in one game, A and B.

normally,when i inject code to A process, B will not be affected.

but i have a game ,which need to activate the dbvm cloak before code injection. in this situation,when i inject code to A process,B process will be changed too.

how can i deal with that? Very Happy
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25815
Location: The netherlands

PostPosted: Fri Jun 24, 2022 12:07 am    Post subject: Reply with quote

trigger a copy-on-write before enabling cloak.

try writing unchanged code to that address

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
niucha9
Newbie cheater
Reputation: 0

Joined: 12 Jun 2022
Posts: 15

PostPosted: Fri Jun 24, 2022 12:45 am    Post subject: Reply with quote

Dark Byte wrote:
trigger a copy-on-write before enabling cloak.

hi DB,thx for replying !
there is my code,is that corect? (it still affect B process'code)
Code:

-- address of inject point
local address = getAddress("0055A014")
-- copy-on-write
writeInteger(address,readInteger(address))
local PA=dbk_getPhysicalAddress(address)
dbvm_cloak_activate(PA, address)
-- code injection
autoAssemble(xxx)


edit :
my aim is to inject a function call to "0055A014".

when i inject the function to the address "0055A014" of process A,it change to "jmp 01234567"

in this time,the address "0055A014" of process B is also changed to "jmp 01234567"

but the address "01234567" of process B is all "???"

so how can i inject the code to both processes (with dbvm cloak)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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