|
-
May 10th, 2005, 11:12 PM
#1
Thread Starter
Addicted Member
Hooking functions with code-injection
I wanted to know if it was possible to hook a certain function in this program. The function is WriteProcessMemory. Is it possible that I could MessageBox() the parameters of this function every time its called?
-
May 11th, 2005, 05:31 PM
#2
Hyperactive Member
Re: Hooking functions with code-injection
Yes,
Done it with other API's. WriteProcessMemory would be the same.
Web Search for Import address table patching.
Actuall I got an example on my site under Projects. Look at IAT patching.
http://www.martinm.net/
-
May 14th, 2005, 10:31 AM
#3
New Member
Re: Hooking functions with code-injection
I'm not good at Assembly.. but i've learnt about hooking with vb... i'm just curious if it's possible to alter the ouput of a function in a process after hooking to it...
like changing the output of a process that is supposed to make some calculation.
-
May 14th, 2005, 01:13 PM
#4
Re: Hooking functions with code-injection
 Originally Posted by bashterror
I'm not good at Assembly.. but i've learnt about hooking with vb... i'm just curious if it's possible to alter the ouput of a function in a process after hooking to it...
like changing the output of a process that is supposed to make some calculation.
As I understand it, you may be able to just re-write a whole function. I think I saw in parts of the Half-Life 1 SDK, that the functions used hooked the actual HL Engine functions, to re-write functions to make team-based games possible. I could possibly be wrong. Without looking at the Half-Life 1 engine source right now (which I suppose I could just download the Quake engine source!), I wouldn't know.
Looks suspiciously like it though,
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Oct 26th, 2005, 08:28 PM
#5
Lively Member
Re: Hooking functions with code-injection
Hmmm... where can I find more information on hooking.
Is hooking where my application "attaches" to a process and waits for an event to trigger?
I primarily develop under linux... asm, c/c++. VB examples may not help as much.
thanks!
Master of Cyber Fu - A Temple of Digital Chi
-
Nov 10th, 2005, 03:57 AM
#6
Addicted Member
Re: Hooking functions with code-injection
No i don't think so.....what hooking is:
An application calls a function. <---and you want don't want it to call that function only
1.) You can change the pointer to that function and call the old one again.
2.) You want it to call a new function.
3.) You want to modify the function at that pointer.
I believe all these circumstances come under hooking.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|