| View previous topic :: View next topic |
| Author |
Message |
ElectroFusion Grandmaster Cheater
Reputation: 0
Joined: 17 Dec 2006 Posts: 786
|
Posted: Fri Nov 21, 2008 12:25 pm Post subject: [C++] best method for PMX |
|
|
Instead of doing the method everyone else is using, couldn't I just use the detours library?
Seems easier to me. _________________
| qwerty147 wrote: |
| ghostonline wrote: |
what world are you in?
|
bera
but i live in NZ
|
|
|
| Back to top |
|
 |
Odecey Master Cheater
Reputation: 1
Joined: 19 Apr 2007 Posts: 259 Location: Scandinavia
|
Posted: Fri Nov 21, 2008 12:51 pm Post subject: |
|
|
How is that easier than 6-7 lines of code? Am I missing something here? _________________
Never confuse activity with productivity. You can be busy without a purpose, but what's the point?- Rick Warren |
|
| Back to top |
|
 |
tombana Master Cheater
Reputation: 2
Joined: 14 Jun 2007 Posts: 456 Location: The Netherlands
|
Posted: Fri Nov 21, 2008 1:21 pm Post subject: |
|
|
Detours is for hooking the function yourself. But the case with PostMessage is that GG hooked it, and you need to jump around the hook. I don't think you can use Detours for that.
And also: then you would have to include detours.dll with your bot/hack. |
|
| Back to top |
|
 |
ElectroFusion Grandmaster Cheater
Reputation: 0
Joined: 17 Dec 2006 Posts: 786
|
Posted: Fri Nov 21, 2008 1:25 pm Post subject: |
|
|
Hm.. I'll just use the normal way. Also, as for getpixel, isn't it the EXACT same as postmessageA? like this
| Code: | ULONG GetPixel = GetProcAddress( LoadLibrary("gdi32.dll"), "GetPixel" ) + 5;
__declspec(naked) COLORREF WINAPI GetPixelX(HDC hdc, int nXPos, int nYPos)
{
__asm
{
mov edi,edi
push ebp
mov ebp,esp
jmp [GetPixel]
}
} |
_________________
| qwerty147 wrote: |
| ghostonline wrote: |
what world are you in?
|
bera
but i live in NZ
|
|
|
| Back to top |
|
 |
nog_lorp Grandmaster Cheater
Reputation: 0
Joined: 26 Feb 2006 Posts: 743
|
Posted: Fri Nov 21, 2008 1:33 pm Post subject: |
|
|
Yup, if the hook is installed the same way, hopping the hook will be done the same way.
Also, is it just more or does the girl in your sig have a cock in her mouth? _________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish |
|
| Back to top |
|
 |
ElectroFusion Grandmaster Cheater
Reputation: 0
Joined: 17 Dec 2006 Posts: 786
|
Posted: Fri Nov 21, 2008 2:30 pm Post subject: |
|
|
its ICE CREAM _________________
| qwerty147 wrote: |
| ghostonline wrote: |
what world are you in?
|
bera
but i live in NZ
|
|
|
| Back to top |
|
 |
BirdsEye Advanced Cheater
Reputation: 0
Joined: 05 Apr 2008 Posts: 94
|
|
| Back to top |
|
 |
tombana Master Cheater
Reputation: 2
Joined: 14 Jun 2007 Posts: 456 Location: The Netherlands
|
Posted: Fri Nov 21, 2008 3:29 pm Post subject: |
|
|
I thought GetPixel doesn't have mov edi, edi; push ebp; mov ebp, esp;
So see what it starts with and change your code. |
|
| Back to top |
|
 |
nog_lorp Grandmaster Cheater
Reputation: 0
Joined: 26 Feb 2006 Posts: 743
|
Posted: Fri Nov 21, 2008 3:36 pm Post subject: |
|
|
Syscall NtGdiGetPixel. _________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish |
|
| Back to top |
|
 |
&Vage Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Jul 2008 Posts: 1053
|
Posted: Fri Nov 21, 2008 3:52 pm Post subject: |
|
|
| nog_lorp wrote: | | Syscall NtGdiGetPixel. |
You're able to call it in r3, correct? |
|
| Back to top |
|
 |
nog_lorp Grandmaster Cheater
Reputation: 0
Joined: 26 Feb 2006 Posts: 743
|
Posted: Fri Nov 21, 2008 3:57 pm Post subject: |
|
|
You need to use a syscall or sysenter (you cannot just 'call NtGdiGetPixel()'), but yes (the whole point of syscalls is they are how you drop through to r0 from r3) _________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish |
|
| Back to top |
|
 |
|