Well I need to make a winsock hook. I want to send packets from the game client itself, instead of connecting to the server as my own client and sending packets. Any clue how to do this?
Printable View
Well I need to make a winsock hook. I want to send packets from the game client itself, instead of connecting to the server as my own client and sending packets. Any clue how to do this?
anyone?
i don't understand exactly what you mean.
you can easly use winsock API directly to send packets,
that needs a little hook.
is that what you need ?
I meant sending packets to the server through another client that i have not made, so the server will think its that client that sent the packets. Sorta like this:
Hook|Client --> Server
the hook makes the client send packets on my command. Even if the client is firefox, a game or whatever.
I hope i am using the right word 'hook'. Maybe this is called something else...
[QUOTE=cc2^^;3851544]aha, now i understand. yes i think hook the server (or maybe the client) can help you.Quote:
I meant sending packets to the server through another client that i have not made
i didn't have the time yet, to learn this stuff,
but i saw some good working examples, in this site.
make a search for hook, hook control.
cc2 if this was resolved, i (and probably other), will be glad to know the solution,
at least the direction.
thanks.
here is a good example of hook,
http://www.vbforums.com/showthread.p...t=hook+control
if something going wrong, this is a working example that i fixed
http://www.vbforums.com/showthread.php?t=616057#16
about the undo, yes you can, i did it once, but i don't remember how :)
EDIT: i found it.
edit the first post, go advanced, and you can edit the header and erase the word resolved
Thanks for the thread you showed me!
I read through it and tested the hooking example on notepad and i think i understand it alot better now :)
But i still wonder how to make it hook an app with Winsock, i tried changing the ParentCaption to the name of a program that uses winsock. The error i get then is You must set handle before setting hook.
Maybe the ChildClassName and ChildCaption should also be changed?
as i said i didn't have the time to test this yet, sorry.
what i think, that you have a windowproc function
that you receive messages from windows.
you examine the message id, if it's a socket message, then you process it,
if no, you send the message to the next process on the hook.
only a thought,i didn't test this at all yet.