Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 03:57

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Sending Packets

Discussion on Sending Packets within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2011
Posts: 147
Received Thanks: 5
Sending Packets

hi, i'm new into hacks/bots i know how to make simple hacks for games which has no security
i wanna know how to send packets like / walk packets target an npc etc, to make bots in mmo games, i checked all over the internet its kinda hard to find tutorials like this
if anyone can give me an example or tutorial i would appreciate it
ahmed1234550 is offline  
Old 07/02/2019, 13:02   #2
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,137
Received Thanks: 573
Let me try to explain to you how these packets work, and if you have understood this, there it shouldn't be hard for you to build your bot.

An online game has to communicate with a server, it does so via . There are two types of sockets, Streaming sockets (which use TCP) and Packet/Datagram Sockets (using UDP) (technically theres also the option to implement your own protocol on top of IP raw, but I think no game is actually going for this).

A streaming socket treats the communication as a stream of data, meaning if you send something over this socket, it will always be received (i.e. retried on failure until it gets through) and it will arrive in the same order as it is sent. In order to do this a lot of control information has to be tracked, and with a high error probability the effective round trip time (i.e. the time from sending the data until you get the info your peer has received it) is going up. This is bad for most games, as they require low latency, but can often cope with loss of data (Not that there aren't any games that use streams, but most don't).

The other options is to use UDP, which is based on datagrams. The idea being, rather than sending a continous stream, you send discrete packets. If a packet arrives it will be correct (i.e. error detection), but you have absolutely no guarantees that the packet will arrive at the target, or that it will arrive at a certain time.

Due to it's flexible and lightwight nature most games use UDP, but you have to find out what your game uses. If it uses TCP than, in order to manipulate the stream, you need to be able to access all the information of the stream. As the data in the stream uses sequence numbers, if you send a packet that the game doesn't know about, the following sequence numbers will be out of sync, which could lead to funny side effect (i.e. acknowledging the next packet before it is sent), but mostly will break your connection (at least if you are doing it more often). Therefore to avoid this you need to use a proxy, which has it's own stream with the target server, as well as a stream to the game, so you can insert packets in your outgoing stream, without breaking the games stream. (Of course you also need to forward the packets send by the game)

With UDP this is much easier, as the protocol doesn't make any guarantees on when a packet comes, it also doesn't have any control structures that can be broken when sending additional packages. So with udp you can basically just send out your data, without breaking anything. But by default most operating systems don't just let you create a new UDP socket on the same port as an exsisting UDP socket. So you have basically two possibilities, 1. Spoof your destination port, or 2. Write a proxy as you would for using TCP.
While the first option is by far more fun, the second option is easier, more flexible and overall better.

PS: I've just found out, you can even reuse the same socket for multiple processes on Windows and Linux () for TCP and UDP, which could work as long as you just want to send data. But if you want to also be able to read packets, you need to write a proxy
warfley is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Packets packets packets...
10/06/2012 - CO2 Private Server - 13 Replies
I have been struggling to understand what is a Packet how could i create one with the data i want then send it to my server So please any one tell if as example i want to send some info from my client to my server, then handle them from the server how could i do that : i have my socket server, also i don't wanna copy and paste codes i want to UNDERSTAND. My PacketReader.cs
Sending Packets (need advice)
03/20/2008 - Conquer Online 2 - 7 Replies
OK well im finaly trying to stop leaching off of everybodys work its been great n all download n play :D But im tired of being a begger n the past couple months ive been learning as much as i can about macros memery add blah blah you know ... After playing around with ce and ahk the past couple months i stumbled across wpe pro, theres not alot of tuturals and its hard to find good help. Well heres what ive been doing so far, open my CO then i attach it to my sniffer. I change my...
what have you achieved sending bad-formed packets?
01/01/2008 - Archlord - 5 Replies
I've seen a couple of threads about WPE Pro. Now my question is: what have been the outcomes of this? any successful one? I got the impresion nothing apart from knowing how to interpret TCP/IP packets and waste some spare time since the server-side doesn't get fooled as much as in EPI. Am I mistaken? If I am, what does it work? cooldown decrease? gold hack?
Scamming by sending packets???
04/15/2006 - Conquer Online 2 - 1 Replies
Well my friend and i came up with the idea to send packets to the server to show a certain item in the trade window. We want to use this as a type of scam. I didnt see this in any other threads and was wondering if anyone knew if this is possible and if they could point use in the right direction. My friend was pretty good with packets in CO 1.0 but we arent really sure to go about doing it. If anyone one could please lend a helping hand? P.S.- Before I get flamed for this because i know i...
Sending packets
10/12/2005 - Conquer Online 2 - 10 Replies
I've a question. Is it possible to send 1 packet multiple times at the exact same time?



All times are GMT +1. The time now is 03:57.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.