View previous topic :: View next topic |
Author |
Message |
fishcorpse How do I cheat?
Reputation: 0
Joined: 06 May 2015 Posts: 4
|
Posted: Sun May 31, 2015 1:30 pm Post subject: Attaching a script to two processes at the same time? |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25788 Location: The netherlands
|
Posted: Sun May 31, 2015 3:05 pm Post subject: |
|
|
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 |
|
 |
|