Ahmed Jihad How do I cheat?
Reputation: 0
Joined: 06 Jan 2024 Posts: 9
|
Posted: Sun Jan 07, 2024 5:31 am Post subject: create Remote thread |
|
|
There is a game it is simple 2D game.
so when you play it you can incress the player speed for some seconds when you complete a back flip in area it's like power of player,
so i found this function and i can call it in new thread and active this speed but the problem here when i create a thread on this function several time for example between each time i wait for 1 second and call it agin the game crash, it's freeze but i still can listen the sound of game but screen freezed.
so the question here is that happend becouse i call this function on thread and it not in the context of game or the game confuse when i call it severl time.
the Code:
the code in dart language it is the same function that in C++
String pAddress =
_memoryEditor.pointer(altoDllBase + 0x00883FF0, sizeOf<Int64>(), offsets: [0x10, 0x108, 0xC0, 0x18, 0x0, 0x40, 0x0]).toHexString(64);
String funcAddress = (altoDllBase + 0x12DE930).toHexString(64);
String opCode = 'push rbp;'
'mov rbp, rsp;'
'mov rax, $funcAddress;'
'mov rcx, $pAddress;'
'mov edx, 0x4;'
'call rax;'
'mov rsp, rbp;'
'pop rbp;'
'ret'.toOpCode();
String speedUpAlocAddress = VirtualAllocEx(_attachProcess.processDetails!.processHandle, nullptr, bytes, MEM_COMMIT, PAGE_EXECUTE_READWRITE).address;
_memoryEditor.writeBytes(speedUpAlocAddress, opCode, byte: opCode.length ~/ 2);
CreateRemoteThread(
_attachProcess.processDetails!.processHandle,
nullptr,
0xFF,
Pointer.fromAddress(speedUpAlocAddress),
nullptr,
0,
nullptr,
)
The code is right every think is right but like i sade the game crash after When I call it many times and do not leave a long period of time between them !!
|
|