Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Exploits, Hacks & Tools
You last visited: Today at 19:40

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

Advertisement



.NET 2.0/c# - CO2 Proxy Library

Discussion on .NET 2.0/c# - CO2 Proxy Library within the CO2 Exploits, Hacks & Tools forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2006
Posts: 5
Received Thanks: 0
Hi,
As I spent a good days work writing this, and I got a lot of help from reading through posts from this forum to get it going I feel I should contribute something back! Maybe some of you could help me expand this code by sharing some your knowledge of the structure of the packets. I will cover the following in this post:

1) What this code does, and how to use it
2) What I know about different packets types (and what I'm assuming, I may be wrong!)
3) What I want to know!

If anyone feels like responding, reply here or in PM I don't mind. I feel like sharing today, but don't mind keeping it private!


What does this code do, andhow to use it

Simple answer it provides a proxy for CO2 that decodes all the data that passes through it, splits it into packets and then reencodes it and sends it onto the server. By doing this is can modify each packet sent either by the client or the server, and it can also inject packets in either direction at any time.
  • It is written in c#
  • It uses events to notify client classes of packets and other events
  • Its multithreaded (it can support anynumber of connections theoretically
  • Its an API, it is not a finished tool. IT IS FOR PROGRAMMERS!
  • Its pratically untested, and horribly unfinnished, it is not threadsafe (probably)

To use it you need to do the following

Quote:

ConquerProxy proxy = new ConquerProxy();
(new Thread(new ThreadStart(proxy.Run))).Start();
To do anything useful, you need to hook the NewConnection event on proxy, then you need to hook events on each new game connection you get notified of. I'll leave you to work that out!

What I know about different packets types
Ok simple answer, NOT VERY MUCH!

Well ok a little . I have made the following assumptions:
1) There must be some structure, its just a matter of how uniform this is, do they have some sane encoding system or do they just through structs down the wire? I'm in no mood to go disassembling conquer, so maybe one of u can shed some light on this.
2) All packets have a length (this is pretty damn certian, I am breaking the up by the length bytes, and its working).
3) All packets have a typeId. This would make a lot of sense, but I have seen no attempts to make a list of ids on this forum, I would REALLY LIKE THIS LIST!


So heres what I see a packet as being:

ushort length; (including this field)
ushort type;
byte[] data; remaining data of packet.


The only packet I've really looked at so far is the packet you get sent for each item in a shop its structure is as follows:

ushort length; // 0x28 (40)
ushort type; // 0x454 (1108)
uint32 itemid; // Unique ID For Item?? Just a guess
uint32 shop; // 6D B9 01 00 - same for same shop - This ids seem to get allocated sequentially on a time basis, not on a location basis. How do we determine the shop ids of the shops around us, what packets tell us this?
uint32 price; // Price
uint32 itemtypeid; // Maps to ItemTypes.data
uint32 id2; // Another Id that seems to change from item 2 item
uint32 unknown1; // usually 0x1
uint32 unknown2; // usually 0x0 - not always
uint32 unknown3; // usually 0x0 - not always
uint32 unknown4; // usually 0x0 - never seen otherwise in my limited testing

We need to document a structure like this for every packet we can, any help on this would be great I dont feel like reversing every one!





What I want to know
  • As much concrete structure information for useful packets as possible!
  • Any mistakes I have made in my code!


- Share and enjoy
Attached Files
File Type: ibf post-85-1144582475.ibf (17.1 KB, 252 views)
cheesewhore66 is offline  
Old 04/09/2006, 14:35   #2
 
elite*gold: 0
Join Date: Apr 2006
Posts: 2
Received Thanks: 1
lets see
lolold is offline  
Old 04/09/2006, 14:50   #3
 
elite*gold: 0
Join Date: Nov 2005
Posts: 415
Received Thanks: 7
lets see? wtf what kind of a helpful post was that

well anyways, back to the thread, isnt this just COPAC?
blueshad0vv is offline  
Old 04/09/2006, 15:12   #4
 
elite*gold: 0
Join Date: Apr 2006
Posts: 5
Received Thanks: 0
Yes its doing essentially the same thing as the other packet tools, I wanted c# code to do it, as the base for writing other things......

I've just noticed the server emulator is c# so having a fish round there for ideas, I'm interested in building an api that can be used as the basis for bots...

Like I said if its useful, enjoy, otherwise don't worry about it
cheesewhore66 is offline  
Old 04/09/2006, 15:42   #5
 
elite*gold: 0
Join Date: Jul 2005
Posts: 120
Received Thanks: 6
great work cheese, ill have a look through the code, i might re adjust my bot to work off of this, once i make it more stable. How many packet structs do you have so far? just the item ones?
Robsta is offline  
Old 04/09/2006, 15:55   #6
 
elite*gold: 0
Join Date: Apr 2006
Posts: 5
Received Thanks: 0
Thanks Robsta, not many (thats the online one I have full detail on right now, seems the server emulator has some comments which will be useful tho I might get a few packeted decoded soon)! I am building the basic code structure for decoding packets at the moment.....
cheesewhore66 is offline  
Old 04/09/2006, 16:16   #7
 
elite*gold: 0
Join Date: Dec 2005
Posts: 91
Received Thanks: 0
***, Please for the LOVE OF ***, Remove this...

I dont want noobs to be making there nooby bots, if they want to make bots they can do this themselfs!

PLEASE!, take this down Its great you want to contribute but dude this is just making it easy for the noobs, Please I beg you take this down....

If people want to make hacks they can read they guide and make it themselfs...
Doobs is offline  
Old 04/09/2006, 16:31   #8
 
elite*gold: 0
Join Date: Apr 2006
Posts: 5
Received Thanks: 0
Ahem...... I am a noob!
cheesewhore66 is offline  
Old 04/09/2006, 16:44   #9
 
elite*gold: 0
Join Date: Mar 2006
Posts: 76
Received Thanks: 1
Quote:
Originally posted by Doobs@Apr 9 2006, 16:16
***, Please for the LOVE OF ***, Remove this...

I dont want noobs to be making there nooby bots, if they want to make bots they can do this themselfs!

PLEASE!, take this down Its great you want to contribute but dude this is just making it easy for the noobs, Please I beg you take this down....

If people want to make hacks they can read they guide and make it themselfs...
gtfo
Samm_br is offline  
Old 04/09/2006, 17:12   #10
 
elite*gold: 0
Join Date: Jun 2005
Posts: 327
Received Thanks: 4
Quote:
Originally posted by Doobs@Apr 9 2006, 16:16
***, Please for the LOVE OF ***, Remove this...

I dont want noobs to be making there nooby bots, if they want to make bots they can do this themselfs!

PLEASE!, take this down Its great you want to contribute but dude this is just making it easy for the noobs, Please I beg you take this down....

If people want to make hacks they can read they guide and make it themselfs...
you are kidding.....right? What exactly, may I ask, is wrong with noobs attempting to make their own bots? Would it hurt anyone at all? Just don't use them, thats all. And if they are noobs to begin with, I highly doubt they would have much use for this.
mindxspike is offline  
Old 04/09/2006, 17:29   #11
 
elite*gold: 0
Join Date: May 2005
Posts: 279
Received Thanks: 6
nice work, i hope this advances to somewhere good.. +1 karma for the good starting efforts
Fataladmin is offline  
Old 04/09/2006, 20:04   #12
 
elite*gold: 0
Join Date: Jun 2005
Posts: 294
Received Thanks: 63
Quote:
Originally posted by cheesewhore66@Apr 9 2006, 06:34
Simple answer it provides a proxy for CO2 that decodes all the data that passes through it, splits it into packets and then reencodes it and sends it onto the server. By doing this is can modify each packet sent either by the client or the server, and it can also inject packets in either direction at any time.
ok in this quote you basically saying that this proxy can decrypt all Conquer packets and provide to you so you can edit them and then resend them to the server If you'd like. Now I know that all packets in the game are encrypted with 4 different keys which I assume your proxy does. Now I know that the first packet you send, being the log in packet, doesn't use all 4 keys only 2. Does your proxy account for the log in packet and only use the 2 keys on it?
~Unknown~ is offline  
Old 04/10/2006, 09:37   #13
 
elite*gold: 0
Join Date: Dec 2005
Posts: 91
Received Thanks: 0
Ok, when im trying to say is, if people want to make hacks they can make them themselfs, No im not calling the maker a noob...
Doobs is offline  
Old 04/10/2006, 13:51   #14
 
elite*gold: 0
Join Date: Jul 2005
Posts: 120
Received Thanks: 6
@ unknown, im sure it does, otherwise he wouldnt beable to get the keys to decrypt the other packets, the first 2 keys are hte same always, the 2nd and third are pulled from the login packet, dont remember what bytes.
Robsta is offline  
Old 04/10/2006, 14:27   #15
 
elite*gold: 0
Join Date: Jun 2005
Posts: 166
Received Thanks: 4
Quote:
Originally posted by cheesewhore66@Apr 9 2006, 13:34
Hi,
As I spent a good days work writing this, and I got a lot of help from reading through posts from this forum to
...

Edited out because jangotat complained i quote everything... noted.

...
- Share and enjoy
not bad
S.O is offline  
Reply


Similar Threads Similar Threads
[C#] Socket Library
03/28/2010 - Coding Releases - 2 Replies
Release Notes: This SocketLibrary (.dll) can be used for any purposes. From something big like a complete MMORPG, to something as small as a chat. I do not really care a bout you giving me credits for this release, but it would be nice if you did. You do not have to believe I made this, if you can prove I didn't create this, please show me. As far as I know, I did create this, didn't take me more than 10 minutes. Version(s): 0.1 - The first release, not many extras yet, just a basic,...
Longju2- Kernel Library
10/20/2008 - Metin2 Private Server - 9 Replies
mein problem: ich starte longju2 nach 3 sek kommteine meldung. Not found the kernel library or the kernel library is invaild or... ich habe die sufu benutzt und ich habe google benutzt. ratet mal was ich gefunden habe: nur topics wo andere das gleiche problem haben und auf die sufu und auf google verwiesen werden -.- ALSO KANN MIR BITTE JEMAND SAGEN WAS ICH TUN KANN???
uninstall agbpt and library
10/16/2008 - SRO Private Server - 1 Replies
sorry...i have very bad english... i wold like to uninstall agbot and library.exe and dot_ocx_files is possible ?? and how i can do it ? thk
Library Files ?
08/06/2008 - Silkroad Online - 2 Replies
Hi, I bought me a new pc and I want to install agbot but the link to the library files on rev6 is dead ? Does anybody have a other link ? I couldn't find it :( thx
Easily Defend the Library
04/04/2006 - General Gaming Discussion - 0 Replies
To the best of my knowledge this is the quest that wipes the most groups, here is the solution: Obviously you need a well disciplined group, and you need a Wizard that understands he is ONLY going to cast two spells, that is Web and Fireball. You must defend the named NPC for 16 minutes, against a never ending barrage of mobs, the other NPC?s can be ignored. Quite a few groups try the ?Block? method, where you try to block the NPC in a corner and keep him in one place so he does not die,...



All times are GMT +1. The time now is 19:41.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.