Register for your free account! | Forgot your password?

You last visited: Today at 17:57

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

Advertisement



Upgrading version

Discussion on Upgrading version within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
Upgrading version

Hello everybody.

I am trying to upgrade a 5165 version (from the sticky thread started by Arco I believe) to 5730 or something close to it.

I am not a guru in programming and it took me a while just to get past the server accepting my socket connection from the client.

The point I am at is this:

The server accepts the connection.
The server sends the PasswordSeed (type 1059)
The client sends back the authentication user and password.

Here is the part where I should send the "go forward / wrong info packet"

From what I've seen the packet should consist of header 1055 , the type (2 - ready, 0-banned, 1-invalid info), a random int indentifier, server ip and game port.

The client sends back a packet 1100 of size 80 (?? I have no idea what this should mean, nor found any useful information that could brighten my eyes ??)

This is where my client crashes, it does not matter if I input random account/password or fill in with correct information.

I dunno if I gave enough information for anyone to pinpoint what I'm doing wrong but if anyone has any ideas please let me know. I ran out of ideas and now I really don't know what to do.

I appreciate any answers

Best regards,

Vali.
ryuchetval is offline  
Old 10/16/2013, 21:24   #2
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Quote:
Originally Posted by ryuchetval View Post
...
On the latest patches TQ added more banned IPs for localhost. If you try to send an IP from 192.168.0.1/24 or 127.0.0.1 the client will crash. You can either force an IP on a random network adapter or use Hamachi.
-impulse- is offline  
Old 10/17/2013, 14:40   #3
 
.Beatz's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
Quote:
Originally Posted by -impulse- View Post
On the latest patches TQ added more banned IPs for localhost. If you try to send an IP from 192.168.0.1/24 or 127.0.0.1 the client will crash. You can either force an IP on a random network adapter or use Hamachi.
Really? I have not had this problem and I use 192.168.0.4 for my servers and clients when testing right from 42xx > 57xx
.Beatz is offline  
Old 10/17/2013, 21:42   #4
 
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
I believe that the authorization packet is wrong as I tried using hamachi and it's the same problem.

I am using the old "wrong auth" packet when wrong acc/info is input and it tells me that the acc/user is wrong. But when I go for the right user/pass input it crashes the client.

Now I'm wondering if my packet is correct the way it is written.

I tried with a packet found on a 5700 source but it didn't work (the one mentioned in the first post) and then I tried with this packet by here:


Code:
byte[] Packet = new byte[54];//32
            COPacket P = new COPacket(Packet);
            P.WriteInt16((ushort)Packet.Length);
            P.WriteInt16(0x41f);
            P.WriteInt32((uint)Program.Rnd.Next(int.MaxValue));//acc unique id (don't have a list so I just generate one)
           
            P.WriteInt32(Type); //2 - ready 0 - banned 1- invalid info (login token ? )
            P.WriteInt16(5816); // port
            P.WriteInt32((uint)Program.Rnd.Next(int.MaxValue));//hash (dunno what for)
            P.WriteString(ip);
            P.Move(16 - ip.Length);
Is the packet wrong or I'm sending something wrong inside the packet?
ryuchetval is offline  
Old 10/17/2013, 23:57   #5
 
U2_Caparzo's Avatar
 
elite*gold: 0
Join Date: Aug 2011
Posts: 314
Received Thanks: 90
Quote:
Originally Posted by ryuchetval View Post
I believe that the authorization packet is wrong as I tried using hamachi and it's the same problem.

I am using the old "wrong auth" packet when wrong acc/info is input and it tells me that the acc/user is wrong. But when I go for the right user/pass input it crashes the client.

Now I'm wondering if my packet is correct the way it is written.

I tried with a packet found on a 5700 source but it didn't work (the one mentioned in the first post) and then I tried with this packet by here:


Code:

Is the packet wrong or I'm sending something wrong inside the packet?
Try writing the port as an Int32, so the IP will be in the offset 20, or just use Move, this is structure that i'm using, patch 5740, the length aren't the same, but maybe because we are working on different patchs.

Code:
            Stream = new Packet(58);
            Stream.Write<ushort>(58);//0
            Stream.Write<ushort>(1055);//2
            Stream.Write<uint>(UId);//4
            Stream.Write<uint>((uint)ResponseType);//8
            Stream.Write<ushort>(GamePort);//12
            //i don't write the hash, like u i don't know what is the use of it
            Stream.Seek(20, Origin.Begin);
            Stream.Write<string>(GameServerIP);//20
U2_Caparzo is offline  
Old 10/19/2013, 13:39   #6
 
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
Seems like it adcanced a little by skypping the hash and puttin the IP at postion 20.

Now It stops at logging in game server after it receives the announce new connection from the server and it receives the packet from the DH KEY exchange. It is really strange as it gives no error and the client just hands in there for about 20 secconds before it says failed to connect.

The server postion adcances to the game announ e receiver and it stops after reading the lenght of the junk leght and few more bytes before setting the new client's game crypto . After setting it nothing happens therefore I am stuck at a new problem but I'm glad that I adcanced a little bit from crashing to actually getting into the echange of DH packet. Now I have to figure out what's wrong with the client crypto.
ryuchetval is offline  
Old 10/19/2013, 18:18   #7
 
U2_Caparzo's Avatar
 
elite*gold: 0
Join Date: Aug 2011
Posts: 314
Received Thanks: 90
Quote:
Originally Posted by ryuchetval View Post
Seems like it adcanced a little by skypping the hash and puttin the IP at postion 20.

Now It stops at logging in game server after it receives the announce new connection from the server and it receives the packet from the DH KEY exchange. It is really strange as it gives no error and the client just hands in there for about 20 secconds before it says failed to connect.

The server postion adcances to the game announ e receiver and it stops after reading the lenght of the junk leght and few more bytes before setting the new client's game crypto . After setting it nothing happens therefore I am stuck at a new problem but I'm glad that I adcanced a little bit from crashing to actually getting into the echange of DH packet. Now I have to figure out what's wrong with the client crypto.

not completly sure but i remember seeing changes changes in the position of some values in that packet, and u have to change the GameCryptography, download any trinity source out there to take the Crypto., i'm not sure if CptSky implemented it in his CO2_CORE_DLL..
U2_Caparzo is offline  
Old 10/25/2013, 14:51   #8
 
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
Well I managed to get past the DH key exchange and setting the client's game crypto but now the first packet that is sent by the client is not 1052 (login) as it should be and instead it is any random number 10k-60k and it differs every single time.

Could it be from the game crypto that it does not encrypt/decrypt accordingly and that could be the problem why it doesn't get the 1052 packet the first time after the DH key exchange?
ryuchetval is offline  
Old 10/25/2013, 23:15   #9
 
U2_Caparzo's Avatar
 
elite*gold: 0
Join Date: Aug 2011
Posts: 314
Received Thanks: 90
Quote:
Originally Posted by ryuchetval View Post
Well I managed to get past the DH key exchange and setting the client's game crypto but now the first packet that is sent by the client is not 1052 (login) as it should be and instead it is any random number 10k-60k and it differs every single time.

Could it be from the game crypto that it does not encrypt/decrypt accordingly and that could be the problem why it doesn't get the 1052 packet the first time after the DH key exchange?
Looks pretty much like a crypto. problem, look for it in {Angelius}'s threads, he coded a library to use instead the Libeay32.dll and the instructions to use it
U2_Caparzo is offline  
Thanks
1 User
Old 10/27/2013, 20:05   #10
 
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
Well thanks for your help. I finally managed to log-in. Now I'm having trouble seeing the character, npcs, anything I input (chat) and so forth but this is probably normal since most packets differ from 5165 to 5730 and I'll have to re-make all packets so they can fit in the new version. At least I was able to log-in which is something good.
ryuchetval is offline  
Reply


Similar Threads Similar Threads
[ALPHA-RELEASE]Skylab Bot Compact Version (Only Upgrading)
04/18/2013 - DarkOrbit - 28 Replies
Hey Guys, because my Sending Resources Function doesn't work, how I want and I MUST release something since 5 Days, as I said in the mid of february I gonna release it, here is a compact version of the bot. Screenshot: http://i.epvpimg.com/VYnBe.png Download: Skylab Bot.rar Virustotal:
Darkorbit Auto Item Upgrading v1.05 NEW VERSION?
09/16/2012 - DarkOrbit - 20 Replies
Hi, can someone update Darkorbit Auto Item Upgrading v1.05. Or create a similar program THANKS
upgrading necklace bug working 100% all version
04/11/2011 - Grand Chase Hacks, Bots, Cheats & Exploits - 11 Replies
working in all gc >>>>>>>>>>>>& gt;>>>>>>>>>>>> ;>>>>>>>> >>>>>first u go in your inventory and you go in trial forest 3 star and trial forest 1 star and go in your inventory again u.p the necklace if success its u.p +1 and sell it and buy again
Nid Help To Upgrading 100%
06/19/2008 - RF Online - 2 Replies
i have find of all forum about 100 % upgrade ,but i am still not get it ,so can anyone teach me a toturial WPE for 100% upgrade success



All times are GMT +1. The time now is 17:59.


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.