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 


[?] Api Hooking

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
slippppppppp
Grandmaster Cheater
Reputation: 0

Joined: 08 Aug 2006
Posts: 929

PostPosted: Sun Jun 01, 2008 12:31 pm    Post subject: [?] Api Hooking Reply with quote

Is there anyway to hook an api without dll injection.
For example, on my speed hack, it get's injected into a process and that process hooks the api's so it enables the speed hack.
But what im wondering is if it's possibile to have a standalone application that makes another process hook the apis. meaning, could i make a speed hack for a seperate process without dll injection?..
Back to top
View user's profile Send private message AIM Address MSN Messenger
tombana
Master Cheater
Reputation: 2

Joined: 14 Jun 2007
Posts: 456
Location: The Netherlands

PostPosted: Sun Jun 01, 2008 12:56 pm    Post subject: Reply with quote

Is it for a game with anti-cheat stuff like gameguard?
If it is not, I think you can write the redirecting jmps with WriteProcessMemory, and you will have to Write a small routine (the routine which you normally have in you're dll which gets called instead of the original api) to the proces s too. (So the jumps point to them).
Still, it's much easier with a dll.

If the game has cheating protection stuff you might try it with a kernel mode driver with you're own WriteProcessMemory functions like CE does.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8585
Location: 127.0.0.1

PostPosted: Sun Jun 01, 2008 3:53 pm    Post subject: Reply with quote

Rewrite the bytes yourself as the DLL would. Alloc space for your new function, write the bytes, and have the API jump to your 'codecave' instead.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
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