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 


Attaching a script to two processes at the same time?

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

Joined: 06 May 2015
Posts: 4

PostPosted: Sun May 31, 2015 1:30 pm    Post subject: Attaching a script to two processes at the same time? Reply with quote

I have these two programs below, running at the same time. I need to make a script which i can attach to the both, and read/write addresses/values from both of them.

    my proccesses:
    00001BC0-something.exe
    00001C84-game.exe



my pseudo script
choose first program to attach: assume i choose 00001BC0-something.exe
choose second program to attach: assume i choose 00001C84-game.exe

Code:
cmp [something.exe+AB](from first attach) , 1   //take the value from first attached proccess and compare
je donothack
mov  [game.exe+24](from second attach) , ff
mov  [something.exe+CD] ,  [game.exe+48]   //copy a value from second process to first proccess
donothack:


Is it possible? Can it be done with LUA? Or i need another scripting language?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sun May 31, 2015 3:05 pm    Post subject: Reply with quote

open two instances of ce and use the lua command allocateSharedMemory(name, size)

e. g in both after attaching to their process execute
Code:
 
 ceshare=allocateSharedMemory("ceshare",  4096)
 registerSymbol("ceshare",  ceshare)


now you can use the symbol ceshare in aa scriptswhich will point to a memoryblock both processes have access to (different virtual address, same physical)
it's up to you to design and fill in the layout of that block of memory

e. g a timer that writes a value there after reading it from somewhere and the other one uses it in a code injection

_________________
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
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