Posted: Mon Oct 12, 2009 4:13 pm Post subject: Hooking Send and sending a packet
Ok, so I've made a dll that will hook the send function of a game. I then made a program to inject the dll and call the functions. The problem I'm facing is that I'm unable to send my own packet.
What I think is wrong is that I'm calling the functions of the dll as if it were not injected, I'm not calling the functions of an actively injected dll, but I know for a fact that it has been inject properly. So how do I call the injected functions of a dll?
Joined: 05 Sep 2006 Posts: 378 Location: The pizza country!
Posted: Tue Oct 13, 2009 12:38 pm Post subject:
Just grab the socket from a hooked connect/send and then use it inside your code like if you created it, no need to call remote functions inside your dll _________________
I have tried in my dll to set a global SOCKET variable and then in the send hook i set mySocket = Socket and then to get it I have a function that will return mySocket, but the problem is that mySocket always = null. Which means it is never getting set to Socket.
Let me get this straight. You are injecting the dll with your injector, and you want to be able to call the functions in the injected dll from the injector?
If that is the case you either need to use stubs or set up a named pipe.
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