Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Help] Coding a bot

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
shadow77
Newbie cheater
Reputation: 0

Joined: 10 Apr 2008
Posts: 22

PostPosted: Fri May 30, 2008 11:08 pm    Post subject: [Help] Coding a bot Reply with quote

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
View user's profile Send private message
HalfPrime
Grandmaster Cheater
Reputation: 0

Joined: 12 Mar 2008
Posts: 532
Location: Right there...On your monitor

PostPosted: Sat May 31, 2008 10:19 am    Post subject: Reply with quote

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
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sat May 31, 2008 12:09 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
jackyyll
Expert Cheater
Reputation: 0

Joined: 28 Jan 2008
Posts: 143
Location: here

PostPosted: Tue Jun 10, 2008 3:06 pm    Post subject: Reply with quote

I hear the term "Hook hopping" an awful lot.. Anyone mind pointing me somewhere that explains what it is? Or mind explaining it? Smile
Back to top
View user's profile Send private message AIM Address MSN Messenger
NothingToShow
Grandmaster Cheater Supreme
Reputation: 0

Joined: 11 Jul 2007
Posts: 1579

PostPosted: Tue Jun 10, 2008 3:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
Anden100
Grandmaster Cheater
Reputation: 0

Joined: 20 Apr 2007
Posts: 668

PostPosted: Wed Jun 11, 2008 11:23 am    Post subject: Reply with quote

If you want the delphi version, look up GPPMX.dll, i released the source (it has GetPixel bypass aswell Wink)
Back to top
View user's profile Send private message
HalfPrime
Grandmaster Cheater
Reputation: 0

Joined: 12 Mar 2008
Posts: 532
Location: Right there...On your monitor

PostPosted: Wed Jun 11, 2008 12:00 pm    Post subject: Reply with quote

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? Smile

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
View user's profile Send private message
jackyyll
Expert Cheater
Reputation: 0

Joined: 28 Jan 2008
Posts: 143
Location: here

PostPosted: Sat Jun 14, 2008 2:08 pm    Post subject: Reply with quote

Ah, i understand now. Thanks Very Happy
Back to top
View user's profile Send private message AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites