| View previous topic :: View next topic |
| Author |
Message |
shadow77 Newbie cheater
Reputation: 0
Joined: 10 Apr 2008 Posts: 22
|
Posted: Fri May 30, 2008 11:08 pm Post subject: [Help] Coding a bot |
|
|
| Well I'm trying to code just a simple bot to repeat a few key clicks, I know how to code the bot itself, but only problem is getting it to function along side a game with gameguard. I think I read somewhere about having to "hook" or something. I'm really not sure what's needed to do besides the bot itself to enable it to run with gameguard protected games. Any help? I use C++
|
|
| Back to top |
|
 |
HalfPrime Grandmaster Cheater
Reputation: 0
Joined: 12 Mar 2008 Posts: 532 Location: Right there...On your monitor
|
Posted: Sat May 31, 2008 10:19 am Post subject: |
|
|
You'll need to make your own hook hopping function (There are plenty of tuts floating around) or there is a premade DLL called PMX which does it for you.
_________________
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Sat May 31, 2008 12:09 pm Post subject: |
|
|
Speaking of PMX. Does anybody have the source for the dll?
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
jackyyll Expert Cheater
Reputation: 0
Joined: 28 Jan 2008 Posts: 143 Location: here
|
Posted: Tue Jun 10, 2008 3:06 pm Post subject: |
|
|
I hear the term "Hook hopping" an awful lot.. Anyone mind pointing me somewhere that explains what it is? Or mind explaining it?
|
|
| Back to top |
|
 |
NothingToShow Grandmaster Cheater Supreme
Reputation: 0
Joined: 11 Jul 2007 Posts: 1579
|
Posted: Tue Jun 10, 2008 3:07 pm Post subject: |
|
|
| oib111 wrote: | | Speaking of PMX. Does anybody have the source for the dll? |
I think you can find it in this topic.
http://forum.cheatengine.org/viewtopic.php?t=161006&postdays=0&postorder=asc&start=0
I don't know if this is what you're looking for?
| Code: | ULONG reentry_address = GetProcAddress( LoadLibrary("user32.dll"), "PostMessageA" ) + 5;
__declspec(naked) void myPostMessageA(void)
{
__asm
{
mov edi,edi
push ebp
mov ebp,esp
jmp [reentry_address]
}
} |
|
|
| Back to top |
|
 |
Anden100 Grandmaster Cheater
Reputation: 0
Joined: 20 Apr 2007 Posts: 668
|
Posted: Wed Jun 11, 2008 11:23 am Post subject: |
|
|
If you want the delphi version, look up GPPMX.dll, i released the source (it has GetPixel bypass aswell )
|
|
| Back to top |
|
 |
HalfPrime Grandmaster Cheater
Reputation: 0
Joined: 12 Mar 2008 Posts: 532 Location: Right there...On your monitor
|
Posted: Wed Jun 11, 2008 12:00 pm Post subject: |
|
|
| jackyyll wrote: | I hear the term "Hook hopping" an awful lot.. Anyone mind pointing me somewhere that explains what it is? Or mind explaining it?  |
Hook hopping is "hopping" over a hook. Mostly used on this forum to bypass the hooks set by GG on certain API.
Basically
| Code: | mov edi,edi
push ebp
mov ebp,esp |
is the first 5 bytes of the API in ASM.
After GG writes it's hook, the first 5 bytes are
| Code: | | JMP GameGuard.429160 |
or something. Basically, when you call the function, it jumps into GG's process instead of going through with that API.
In order to get around this, all you have to do is jump over that hook placed on the first 5 bytes. But, if we just did that, it would crash because we didn't execute those first 5 bytes that GG overwrote when it installed it's hook. So what we do is execute those first 5 bytes outselves in our program and then jump over the hook.
| Code: | void MyPostMessageFunction(...parameters...){
_ASM{mov edi,edi
push ebp
mov ebp,esp
JMP (PostMessage+5)}
} |
_________________
|
|
| Back to top |
|
 |
jackyyll Expert Cheater
Reputation: 0
Joined: 28 Jan 2008 Posts: 143 Location: here
|
Posted: Sat Jun 14, 2008 2:08 pm Post subject: |
|
|
Ah, i understand now. Thanks
|
|
| Back to top |
|
 |
|