| View previous topic :: View next topic |
| Author |
Message |
kot1990 Expert Cheater
Reputation: 1
Joined: 06 Sep 2009 Posts: 131 Location: Greece
|
Posted: Wed Dec 23, 2009 3:51 pm Post subject: C++ networking question. |
|
|
| Anyone has any idea how can I send packets to a server? What I want is a client program that has already created a socket like 192.168.1.1:5554 and is communicating with the server. I want to send data through that socket with my program acting as the client. |
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
|
| Back to top |
|
 |
kot1990 Expert Cheater
Reputation: 1
Joined: 06 Sep 2009 Posts: 131 Location: Greece
|
Posted: Wed Dec 23, 2009 9:24 pm Post subject: |
|
|
| Well I think its hard for a beginner. The first step should be easier, like just send a packet to a local host and see reactions. I need a little code about winsock to just send a packet. Well I think I can google for that but any help would be appreciate. |
|
| Back to top |
|
 |
NoMercy Master Cheater
Reputation: 1
Joined: 09 Feb 2009 Posts: 289
|
Posted: Thu Dec 24, 2009 4:46 am Post subject: |
|
|
google for
kipe v2 source,
its a sender + reciever fucntion + block |
|
| Back to top |
|
 |
Anden100 Grandmaster Cheater
Reputation: 0
Joined: 20 Apr 2007 Posts: 668
|
Posted: Thu Dec 24, 2009 5:43 am Post subject: |
|
|
| NoMercy wrote: | google for
kipe v2 source,
its a sender + reciever fucntion + block |
Its a hook, with a call to the hooked function (x2), not in anyway useful in this case. |
|
| Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Thu Dec 24, 2009 5:50 am Post subject: |
|
|
| kot1990 wrote: | | Well I think its hard for a beginner. | Maybe then you shouldn't be doing network stuff yet? Get the basics first and then move to advanced topics. |
|
| Back to top |
|
 |
kot1990 Expert Cheater
Reputation: 1
Joined: 06 Sep 2009 Posts: 131 Location: Greece
|
Posted: Sun Dec 27, 2009 11:53 am Post subject: |
|
|
I downloaded commview, it's a packet sender/sniffer and I could see incoming/outgoing packets and resend them. The problem is that most applications use a strange way to send packets. They are a kind of encrypted or something, because everytime a client sends packets it sends different values for the same event and only that packet is valid. If I resend any previous sent packets that won't affect the server, it's like I am sending invalid packets. Maybe the client sends the time the packet was sent, or the server sends a new way of packet analyzing to the client time-time so it knows what to send. Anyway now I 've found that counter-strike is not sending encrypted shit. I created a local server and found the packet that connects to the map and start playing... yeah!! that worked.. when I send from commview that packet, the connection procedure beggins immediatelly, now I want to do that programmatically in C++.
| NoMercy wrote: | google for kipe v2 source,
its a sender + reciever fucntion + block |
Sorry, but I couldn't find that one..  |
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Sun Dec 27, 2009 12:52 pm Post subject: |
|
|
| what you may be talking about is how packet headers often contain packet numbers |
|
| Back to top |
|
 |
|