View previous topic :: View next topic |
Author |
Message |
greenzyzyzy Newbie cheater Reputation: 0
Joined: 26 Sep 2014 Posts: 23
|
Posted: Wed Oct 01, 2014 11:04 am Post subject: what does the function CreateRemoteAPC used for in dbk32? |
|
|
what does the function CreateRemoteAPC used for in dbk32.
Create a remote thread?
how to use?
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25295 Location: The netherlands
|
Posted: Wed Oct 01, 2014 2:46 pm Post subject: |
|
|
it lets you execute a piece of code from within another thread and then return to where that thread left off
The thread must not be sleeping, so you have to wake it
_________________
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 |
|
|
greenzyzyzy Newbie cheater Reputation: 0
Joined: 26 Sep 2014 Posts: 23
|
Posted: Wed Oct 01, 2014 9:24 pm Post subject: |
|
|
Will add any functions to create remote thread in future ce versions?
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25295 Location: The netherlands
|
Posted: Thu Oct 02, 2014 4:29 am Post subject: |
|
|
You can already do that with createRemoteAPC (let it run CreateThread from inside the process)
Only issue is that you have to wake the thread somehow, or else wait till the game is running (usually when a game is tabbed out the thread is sleeping so thread creation will not return until the game is running again)
_________________
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 |
|
|
greenzyzyzy Newbie cheater Reputation: 0
Joined: 26 Sep 2014 Posts: 23
|
Posted: Thu Oct 02, 2014 5:01 am Post subject: |
|
|
do you means.use CreateRemoteAPC to create a thread function.
and this function use CreateThread to create a new thread?
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25295 Location: The netherlands
|
Posted: Thu Oct 02, 2014 5:24 am Post subject: |
|
|
See createRemoteAPC as a "Change EIP/RIP on breakpoint" with such a breakpoint on every single instruction of the target
As soon as the target is executing a single instruction (actually as soon as a taskswitch happens into it) it will store the current state of the target and change EIP/RIP to the destination
Now, from inside that thread, you can load libraries, or create threads, or do whatever you want (even change memory) but make sure you do eventually come back because the thread is waiting to continue from where it left off
_________________
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 |
|
|
greenzyzyzy Newbie cheater Reputation: 0
Joined: 26 Sep 2014 Posts: 23
|
Posted: Thu Oct 02, 2014 5:37 am Post subject: |
|
|
en,you means createRemoteAPC is a blocking funciton?
games will waiting the function call from createRemoteAPC,right?
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25295 Location: The netherlands
|
Posted: Thu Oct 02, 2014 5:58 am Post subject: |
|
|
yes, the thread you targeted with createRemoteAPC will be halted while the code inside the function executes (the other threads will keep executing)
_________________
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 |
|
|
greenzyzyzy Newbie cheater Reputation: 0
Joined: 26 Sep 2014 Posts: 23
|
Posted: Thu Oct 02, 2014 6:19 am Post subject: |
|
|
if the called function run some minutes.the game will not run.
it is not a good idea.if i want to return from function immediately.
i can call CreateThread( ) in CreateRemoteApc( )?like you said
is it a good idea?
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25295 Location: The netherlands
|
Posted: Thu Oct 02, 2014 6:32 am Post subject: |
|
|
If you wish to run something that runs for a long time create a thread and then return yes
_________________
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 |
|
|
greenzyzyzy Newbie cheater Reputation: 0
Joined: 26 Sep 2014 Posts: 23
|
Posted: Thu Oct 02, 2014 6:43 am Post subject: |
|
|
would you like to give me some example codes?
|
|
Back to top |
|
|
|