PDA

Click to See Complete Forum and Search --> : Api Hooking a Process's loaded dll (HELP!)


kanazky
Feb 11th, 2006, 03:32 AM
Names Of WS2_32.dll - Send

71AB429A .text Export send

->
I am trying to api hook WS2_32.dll's Send/Receive function. It is loaded in a program I have also loaded. I want to use my app (external) to hook the ws2_32.dll inside the other process and use it to send packets and log the received ones from it.

My App -> Client -> Server -> Client -> My App

(after openprocess is complete)
LoadLibAddy1 = GetProcAddress(GetModuleHandle("ws2_32.dll"), "Send")
LoadLibAddy2 = GetProcAddress(GetModuleHandle("ws2_32.dll"), "Receive")

Does that code I did actually hook the dll inside the processes? and if so how do I call apon the send and receive function?

the182guy
Feb 11th, 2006, 12:23 PM
Are you sure this is the correct forum for this question? It may get more relevant people viewing it if its in the API forum.

Chris

kanazky
Feb 11th, 2006, 02:10 PM
I know I switched the forum where im asking but no ones posted there either.