Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 00:20

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

Advertisement



[Workshop] Updating code to work post client V.5018

Discussion on [Workshop] Updating code to work post client V.5018 within the CO2 Private Server forum part of the Conquer Online 2 category.

Closed Thread
 
Old 02/03/2009, 22:46   #106
 
unknownone's Avatar
 
elite*gold: 20
Join Date: Jun 2005
Posts: 1,013
Received Thanks: 381
Drop the "new header" - leave it at 11 bytes.
Size is now 8 too small.

You should be looking how TQ's co does things. How coemu does it matters not.
unknownone is offline  
Thanks
1 User
Old 02/03/2009, 22:53   #107
 
Hyberkill's Avatar
 
elite*gold: 0
Join Date: Jun 2006
Posts: 52
Received Thanks: 0
yea.. but im using coemu client .
Hyberkill is offline  
Old 02/04/2009, 20:26   #108
 
elite*gold: 0
Join Date: Oct 2005
Posts: 5
Received Thanks: 1
Hyberkill take a look at this website. It worked for me.
Diffie-Hellman key exchange - Wikipedia, the free encyclopedia
maharaja is offline  
Thanks
1 User
Old 02/04/2009, 20:40   #109
 
Hyberkill's Avatar
 
elite*gold: 0
Join Date: Jun 2006
Posts: 52
Received Thanks: 0
ive seen it before but ty anyway
Hyberkill is offline  
Old 02/04/2009, 23:59   #110
 
unknownone's Avatar
 
elite*gold: 20
Join Date: Jun 2005
Posts: 1,013
Received Thanks: 381
Hyber. I've added you to msn. If you follow my instructions, you'll have it done in no time. If you insist on trying to copy CoEmu in your own way though, forget it.
unknownone is offline  
Thanks
1 User
Old 02/05/2009, 00:08   #111
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
Oh, add me too, I have a few questions I would like to ask.
kinshi88 is offline  
Old 02/05/2009, 00:41   #112
 
unknownone's Avatar
 
elite*gold: 20
Join Date: Jun 2005
Posts: 1,013
Received Thanks: 381
Quote:
Originally Posted by kinshi88 View Post
Oh, add me too, I have a few questions I would like to ask.
np, but, can't add invisible mail address sorry.
unknownone is offline  
Old 02/05/2009, 13:24   #113
 
Hyberkill's Avatar
 
elite*gold: 0
Join Date: Jun 2006
Posts: 52
Received Thanks: 0
ty so much for trying to help me feel free to pm me (even if it says offline). Ill be online till 10 pm GMT coz ill get up early in the morning. Thx again.

PS.
Hyberkill is offline  
Old 02/18/2009, 17:51   #114


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
I request an add as well then I don`t want to talk (just) about this, but everything, people seem to learn a lot from you :P

P.S. - MSN at my profile
KraHen is offline  
Old 02/20/2009, 11:34   #115
 
elite*gold: 0
Join Date: Aug 2007
Posts: 68
Received Thanks: 9
can any1 upload a source 5095 + that would be nice ^^
lesley21 is offline  
Old 02/20/2009, 13:54   #116
 
© Haydz's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 1,042
Received Thanks: 252
Quote:
Originally Posted by lesley21 View Post
can any1 upload a source 5095 + that would be nice ^^
Won't happen.
© Haydz is offline  
Old 03/06/2009, 06:00   #117
 
elite*gold: 0
Join Date: Mar 2009
Posts: 17
Received Thanks: 5
ooo, superb post... can't wait till tomorrow im going to try it

- sadly on lotf but still

so get ready for a boat load of questions, i'll probably get confused in it somewhere ( hopefully i wont ) , good post though i read the whole thread and tomorrow ill re read just to get it all

- Nice Post ,

Small Note: 12 AM now - BEDTIME
Hello Kitty is offline  
Old 03/14/2009, 22:00   #118
 
elite*gold: 0
Join Date: Mar 2009
Posts: 178
Received Thanks: 45
Quote:
Originally Posted by unknownone View Post
Ok, people who are interested in getting the job done, this is the thread to ask questions. I will assist with code problems in any language provided they're on this topic, but if you can't code, don't bother.

Any code I post here will be generic, and not based on any specific source releases, so don't expect to just plug it in and run it. You'll need to modify, or encapsulate the code into something that works with your server.

I'll explain the process, with some sample code, then answer any questions you have.

Ok, so firstly, you have an account server that is largely unmodified, except the recent clients use a new login packet, which I'm not going to go into detail with, you can figure it out yourself. The encryption of packets to the login server remains unchanged from before client V5018.

The main change is the protocol when connecting to the game server, where packets are received in a different order, and the encryption is no longer the same. The encryption now used is Blowfish, with an initial key of "DR654dt34trg4UI6", and initialization vectors with all bits initially unset. This setup is used to decrypt both the first packet received from the server, and the first from the client. Afterwards, blowfish then uses a different key and different initialization vectors.

So in C#, something like this (I've not tested it)
To use this code, you need to have the wrapper. In your project, you can add a reference to openssl-net/bin/release/ManagedOpenSsl.dll

Edit: C# Code updated on Pg 2 - Now tested and confirmed working

C++ code (Tested and working)
Code:
#include <stdint.h>
#include <openssl/blowfish.h>

    class game_crypt
    {
    private:
        BF_KEY* m_bf_schedule;
        uint8_t m_enc_ivec[8];
        uint8_t m_dec_ivec[8];
        int m_enc_num;
        int m_dec_num;
    protected:
    public:
        game_crypt();
        virtual ~game_crypt();
        void set_key(const uint8_t* key, int len);
        void set_enc_ivec(const uint8_t* data, int);
        void set_dec_ivec(const uint8_t* data, int);
        void encrypt(byte_buffer* in, byte_buffer* out);
        void decrypt(byte_buffer* in, byte_buffer* out);
    };

    game_crypt::game_crypt()
    {
        m_bf_schedule = new BF_KEY;
        BF_set_key(m_bf_schedule, 16, (uint8_t*)"DR654dt34trg4UI6");
        m_enc_num = 0; m_dec_num = 0;
        memset(m_enc_ivec, '\0', 8);
        memset(m_dec_ivec, '\0', 8);
    }

    game_crypt::~game_crypt()
    {
        delete m_bf_schedule;
    }

    void game_crypt::set_key(const uint8_t* key, int len)
    {
        BF_set_key(m_bf_schedule, len, key);
        m_enc_num=0; m_dec_num=0;
    }

    void game_crypt::set_enc_ivec(const uint8_t* data, int len)
    {
        memcpy(m_enc_ivec, data, 8);
    }

    void game_crypt::set_dec_ivec(const uint8_t* data, int len)
    {
        memcpy(m_dec_ivec, data, 8);
    }

    void game_crypt::encrypt(byte_buffer* in, byte_buffer* out)
    {
        BF_cfb64_encrypt(in->buffer(), out->buffer(), in->length(), m_bf_schedule, m_enc_ivec, &m_enc_num, 1);
    }

    void game_crypt::decrypt(byte_buffer* in, byte_buffer* out)
    {
        BF_cfb64_encrypt(in->buffer(), out->buffer(), in->length(), m_bf_schedule, m_dec_ivec, &m_dec_num, 0);
    }
Instantiate the GameProtocolCrypto Class, as you would've done previously for the crypto classes on older client versions. Decrypt and Encrypt are used in the same way on received packets.

I'll post more when people manage to get this much working. You'll know when it's working if you can successfully decrypt the first server and client packets, which will be noticable by the long hex strings they contain.
Note though, that these two packets follow a different format compared to all the other packets on CO. There is no 16bit length, 16bit type.

Nice thx...=)

But can you help me on this problem???


Metin2_Team is offline  
Old 03/16/2009, 23:10   #119
 
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
Quote:
Originally Posted by Metin2_Team View Post
Nice thx...=)

But can you help me on this problem???


Metin2_Team-or ur IQ is 0 or...u`re too stupid? THIS THREAD IS NOT ABOUT SOME ******* TQ BINARIES, ITS ABOUT MAKING UR SOURCE TO WORK WITH p5018+.Please stay at ur Metin2 , and dont ask stupid questions. We all knew u are too stupid for this world....but just dont show ur stupidity.
alexbigfoot is offline  
Old 03/18/2009, 04:59   #120
 
elite*gold: 0
Join Date: Mar 2007
Posts: 10
Received Thanks: 0
yes yes that is what i need but it is small work

i need Private server working on patch 5065 or higher ( not binary
)
profseer1 is offline  
Closed Thread


Similar Threads Similar Threads
sunworld client not updating
07/18/2009 - SRO Private Server - 7 Replies
i have downloaded the the client but its not updating its matter thats im using windows 7? i did "run as administrator"
omg most hack wont work in new patch 5018
03/18/2008 - Conquer Online 2 - 14 Replies
most of hack doesnt work sv,and most of all cotobo :(
Multi Client for patch 5018
03/18/2008 - CO2 Exploits, Hacks & Tools - 3 Replies
Hi all ... This is my 1st time 2 post a work for me .. feel free 2 ask or say ur opinion. If any1 no how 2 make multi client work for cotobo or hook it wid cotobo .. i ll be thankful Good Luck.



All times are GMT +1. The time now is 00:20.


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.