| View previous topic :: View next topic |
| Author |
Message |
broly7 Advanced Cheater
Reputation: 0
Joined: 13 Aug 2015 Posts: 60
|
Posted: Mon Nov 16, 2015 11:42 am Post subject: Simple function to place a Breakpoint (DELPHI) |
|
|
Hello.
Is there a simple function to place a Breakpoint to an address.
Within a dll?
So let's say i inject a dll to a process, now what's a proper function to place a Breakpoint and edit some register?
Thanks.
|
|
| Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Mon Nov 16, 2015 12:20 pm Post subject: |
|
|
Use MinHook.
_________________
|
|
| Back to top |
|
 |
broly7 Advanced Cheater
Reputation: 0
Joined: 13 Aug 2015 Posts: 60
|
Posted: Thu Nov 19, 2015 11:12 am Post subject: |
|
|
Definetly not for Delphi...
not valid.
|
|
| Back to top |
|
 |
hollow87 Cheater
Reputation: 0
Joined: 07 Feb 2015 Posts: 28
|
Posted: Thu Nov 19, 2015 1:59 pm Post subject: |
|
|
| What about DebugBreak or DebugBreakProcess in Kernel32.dll also MinHook should work with delphi same way you can use a C dll from delphi
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Thu Nov 19, 2015 3:08 pm Post subject: |
|
|
| hollow87 wrote: | | What about DebugBreak or DebugBreakProcess in Kernel32.dll also MinHook should work with delphi same way you can use a C dll from delphi |
I've explained to him in previous topics what API is needed to accomplish this, but doesn't seem like it did any good.
_________________
- Retired. |
|
| Back to top |
|
 |
broly7 Advanced Cheater
Reputation: 0
Joined: 13 Aug 2015 Posts: 60
|
Posted: Thu Nov 19, 2015 3:22 pm Post subject: |
|
|
| hollow87 wrote: | | What about DebugBreak or DebugBreakProcess in Kernel32.dll also MinHook should work with delphi same way you can use a C dll from delphi |
MinHook doesn't have the ability to place (NON MEMORY WRITE) Breakpoints as far as i know.
The best thing would be a Cheat engine lite library to use these hardware breakpoints feature
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25814 Location: The netherlands
|
Posted: Thu Nov 19, 2015 3:25 pm Post subject: |
|
|
use SuspendThread, ResumeThread and setThreadContext to set a breakpoint in every currently running thread. (use toolhelp32 or similar to enumerate all the threads and openThread of course)
and capture the debug exception one way or another.
I find the addVectoredExceptionHandler function pretty useful for this
_________________
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 |
|
 |
broly7 Advanced Cheater
Reputation: 0
Joined: 13 Aug 2015 Posts: 60
|
Posted: Thu Nov 19, 2015 3:27 pm Post subject: |
|
|
| Dark Byte wrote: | use SuspendThread, ResumeThread and setThreadContext to set a breakpoint in every currently running thread. (use toolhelp32 or similar to enumerate all the threads and openThread of course)
and capture the debug exception one way or another.
I find the addVectoredExceptionHandler function pretty useful for this |
Thank you.
|
|
| Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Fri Nov 20, 2015 2:03 am Post subject: |
|
|
| broly7 wrote: |
MinHook doesn't have the ability to place (NON MEMORY WRITE) Breakpoints as far as i know.
The best thing would be a Cheat engine lite library to use these hardware breakpoints feature  |
Not for breakpoint but changing register's value.
_________________
|
|
| Back to top |
|
 |
|