Winsock
Winsock
This is the first time I am using madshi's tools and never have I done anything quite alike what I am trying to do here. So, I really don't even know where to start.
I am trying to send my own packets to a server using Winsock as if it was the client itself sending it.
In theory, I suppose I have to hook the Winsock and use it to send packets with both the send and recv funcs. But how do I know where to send them to? And even if I had an ip and a port, if I had 2 clients working at the very same time I send a packet, how would the server know which one sent it and now screw up a the information?
Kinda confused here and would appreciate some help. Thank you.
I am trying to send my own packets to a server using Winsock as if it was the client itself sending it.
In theory, I suppose I have to hook the Winsock and use it to send packets with both the send and recv funcs. But how do I know where to send them to? And even if I had an ip and a port, if I had 2 clients working at the very same time I send a packet, how would the server know which one sent it and now screw up a the information?
Kinda confused here and would appreciate some help. Thank you.
I have been in that thread already and it helps, but there's some things not very clear there. Nildo talks about both hooking the application and the dll (winsock).
He also says I gotta use the handle of the socket used by the program in the socket parameter of the winsock send function, and after that he talks about using the IPC technique to pass from the dll to the exe. That part is a bit confusing
Also, how to I get the handle of the socket itself? I got the handle of the program, but not the socket the program uses.
He also says I gotta use the handle of the socket used by the program in the socket parameter of the winsock send function, and after that he talks about using the IPC technique to pass from the dll to the exe. That part is a bit confusing
Also, how to I get the handle of the socket itself? I got the handle of the program, but not the socket the program uses.