Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 20:48

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

Advertisement



Upgrading Alchemy Proxy

Discussion on Upgrading Alchemy Proxy within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
miketheking's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 63
Received Thanks: 10
Upgrading Alchemy Proxy

So im trying to upgrade p4n's alchemy proxy to work with the 5700+ pservers everything works fine until the client's DH pack is received its encrypted into bullshit by the proxy and i really have no idea why is that happening
miketheking is offline  
Old 06/25/2013, 15:09   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,381
If it's getting to game server then you have everything working as far as login server is concerned.

You simply need to upgrade the dhkey exchange packets (client and server) as well as the encryption itself.
pro4never is offline  
Thanks
1 User
Old 06/25/2013, 16:46   #3
 
miketheking's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 63
Received Thanks: 10
Quote:
Originally Posted by pro4never View Post
If it's getting to game server then you have everything working as far as login server is concerned.

You simply need to upgrade the dhkey exchange packets (client and server) as well as the encryption itself.
i did both but after some research i found out the the problem isn't in the cryptography anyway its possibly in the way the proxy handles the client DHkey pack not the structure itself ill try and figure this out now thnx anyway

Edit:everything seems to work fine even after the DHkey exchange but then the Packets sent from the server are ****** up don't know what's wrong i logged the lengths of the game packets identified in them they are always like 12252 and some random big numbers
miketheking is offline  
Old 06/25/2013, 17:31   #4

 
Arby's Avatar
 
elite*gold: 83
Join Date: May 2011
Posts: 11,029
Received Thanks: 6,037
Arrow CO2 PServer - Discussions / Questions -> CO2 Programming

#moved
Arby is offline  
Old 06/25/2013, 18:09   #5
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,381
Quote:
Originally Posted by miketheking View Post
i did both but after some research i found out the the problem isn't in the cryptography anyway its possibly in the way the proxy handles the client DHkey pack not the structure itself ill try and figure this out now thnx anyway

Edit:everything seems to work fine even after the DHkey exchange but then the Packets sent from the server are ****** up don't know what's wrong i logged the lengths of the game packets identified in them they are always like 12252 and some random big numbers


This means you've not structured the DHKey packet structures properly. Their packet structures are not obvious as they are trying to hide data inside of them.

Look at an updated pserver source to get an idea for how the packets should be structured. Much of it is 'junk' data just there to hide the real information you're looking for.
pro4never is offline  
Thanks
1 User
Old 06/25/2013, 19:13   #6
 
miketheking's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 63
Received Thanks: 10
Quote:
Originally Posted by pro4never View Post
This means you've not structured the DHKey packet structures properly. Their packet structures are not obvious as they are trying to hide data inside of them.

Look at an updated pserver source to get an idea for how the packets should be structured. Much of it is 'junk' data just there to hide the real information you're looking for.
before i started this i tested a pserver source on the client and it worked i have been using that source as a reference for cryptography and packet structures and i checked the DHkey packs in the proxy multiple times and im also logging the keys to see if it works every time i run the proxy and till now every time it worked correctly so i don't think that the packet structures are the problem but i'll check again thnx for your help

Edit:Checked again and i couldn't find any problem with the DHpackets structures
miketheking is offline  
Old 06/25/2013, 19:48   #7
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,381
The first packets you receive are the exchange keys. You need to read the correect offsets to pull the key from them and if you are not getting the correct key then either.

A: You are not using the correct encryption (which you should have already updated)
B: You are not reading the packet structure properly

Once you have the key you need to generate your own custom client exchange packet and server exchange packet using the proper structures to complete the man in the middle attack and finalize both sets of encryption.


So yes.. the only things that CAN go wrong assuming you've hit the game server is the game encryption or the exchange process.
pro4never is offline  
Thanks
1 User
Old 06/25/2013, 20:05   #8
 
miketheking's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 63
Received Thanks: 10
Quote:
Originally Posted by pro4never View Post
The first packets you receive are the exchange keys. You need to read the correect offsets to pull the key from them and if you are not getting the correct key then either.

A: You are not using the correct encryption (which you should have already updated)
B: You are not reading the packet structure properly

Once you have the key you need to generate your own custom client exchange packet and server exchange packet using the proper structures to complete the man in the middle attack and finalize both sets of encryption.


So yes.. the only things that CAN go wrong assuming you've hit the game server is the game encryption or the exchange process.
well since i log all the keys and they always return meaningful strings then i don't think there is a problem with the cryptography or the packet struct
miketheking is offline  
Old 06/25/2013, 20:55   #9
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,381
If it's returning the same keys then there's no problem. If not then the structures and handling are incorrect.
pro4never is offline  
Old 06/25/2013, 21:11   #10
 
miketheking's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 63
Received Thanks: 10
im guessing the problem is with this part but i can't tell since its a bit confusing anyway ill run the source code i have locally and see if it returns the same keys
Code:
 static void SetUpCrypto(Client C)
        {
            try
            {
                BigNumber RealClientPublicKey = BigNumber.FromHexString(C.ClientDataDHP.Client_PubKey);
                BigNumber RealServerPublicKey = BigNumber.FromHexString(C.ServerDataDHP.Server_PubKey);

                GameCrypto ClientCrypto = new GameCrypto((C.ClientCrypt).DH.ComputeKey(RealServerPublicKey));
                GameCrypto ServerCrypto = new GameCrypto((C.ServerCrypt).DH.ComputeKey(RealClientPublicKey));

                ClientCrypto.Blowfish.EncryptIV = C.ServerDataDHP.ClientIV;
                ClientCrypto.Blowfish.DecryptIV = C.ServerDataDHP.ServerIV;

                ServerCrypto.Blowfish.EncryptIV = C.ServerDataDHP.ServerIV;
                ServerCrypto.Blowfish.DecryptIV = C.ServerDataDHP.ClientIV;

                C.ClientCrypt = ClientCrypto;
                C.ServerCrypt = ServerCrypto;
                C.Exchanging = false;
            }
            catch { }
        }
Edit:tested it locally and had no problems with the exchange packs probably the handling then
Edit:And not the handling so WTF

Edit:Found the problem this it was supposed to be like this
Code:
static void SetUpCrypto(Client C)
        {
            try
            {
                BigNumber RealClientPublicKey = BigNumber.FromHexString(C.ClientDataDHP.Client_PubKey);
                BigNumber RealServerPublicKey = BigNumber.FromHexString(C.ServerDataDHP.Server_PubKey);

                GameCrypto ClientCrypto = new GameCrypto((C.ClientCrypt).DH.ComputeKey(RealServerPublicKey));
                GameCrypto ServerCrypto = new GameCrypto(C.ClientDataDHP.DHKey((C.ServerCrypt).DH.ComputeKey(RealClientPublicKey)));
                ClientCrypto.Blowfish.EncryptIV = C.ServerDataDHP.ClientIV;
                ClientCrypto.Blowfish.DecryptIV = C.ServerDataDHP.ServerIV;

                ServerCrypto.Blowfish.EncryptIV = C.ServerDataDHP.ServerIV;
                ServerCrypto.Blowfish.DecryptIV = C.ServerDataDHP.ClientIV;

                C.ClientCrypt = ClientCrypto;
                C.ServerCrypt = ServerCrypto;
                C.Exchanging = false;
            }
            catch { }
        }
but still the client isn't loading but i'll assume the crypto is setup correctly for now well that's one problem dealt with
Edit:i was wrong there is a problem with the client crypto

Edit:Changing
Code:
   GameCrypto ClientCrypto = new GameCrypto((C.ClientCrypt).DH.ComputeKey(RealServerPublicKey));
to

Code:
  GameCrypto ClientCrypto = new GameCrypto(C.ServerDataDHP.DHKey((C.ClientCrypt).DH.ComputeKey(RealServerPublicKey)));
fixed the problem now it works thnx for your help and your amazing yet a bit confusing proxy
miketheking is offline  
Reply


Similar Threads Similar Threads
[HOT] Ghost 1.1 Beta.Proxy IPgrabber,Hidemyass.com HMA Proxy-Tool,Nice,Free
12/11/2013 - Coding Releases - 6 Replies
]Hab nun seit langem an meinen Ghost! Proxy-Tool weiter gefeilt, ist eig nichts besonderes draus geworden, deshalb ist es ne Beta für die eig. 1.1 :P - nun kannst du dir Freshe IP:PORT's von Hide My Ass! Free Proxy and Privacy Tools - Surf The Web Anonymously ziehen und die auch gleich verwenden, natürlich kannst du auch deinen Favoriten manuell eingeben(siehe bild) - links führen zu hidemyass.com, geoiptool.comund speedtest.net - Proxy-Liste kannst du speichern - Lock, verhindert das...
| Email | Proxy | Proxy Checked | Schnell | Sicher | Trusted |
12/12/2012 - Trading - 4 Replies
Hallo liebe Elitepvpers Trading Section Hier werdet ihr meine "Email - Proxy - Proxy Checked" Shops entdecken. Zuerst kommt die Katerogie "E-MAIL" E-MAIL 1.000 Emails = 10 Elite*Gold 5.000 Emails = 15 Elite*Gold 10.000 Emails = 40 Elite*Gold
Auto-Alchemy tool upgrading
05/29/2012 - SRO Private Server - 0 Replies
Hey I need help modifying the code for this program that upgrades gears automatically, it runs on autoIt code. It currently reaches +7 but i need it to go to +60 at least. Im terrible with programming so i ask for help here. Any help would be much appreciated. All credits go to schadowhunter for this code/program. Link to auto-alchemy script: upgradingItemScript.au3 - 4shared.com - online file sharing and storage - download - daniel cooce Program download/info can be found here:...
Help with alchemy proxy!!!
05/18/2011 - Conquer Online 2 - 7 Replies
I got error when i try to log in on my account... It passes the account server and than it shows me an error. "Could not connect to the game server." I will get crazy if this thing fuck up with me like this ... BTW Here are my configs Program.cs public static string AuthIp = "208.96.34.46"; public static string ProxyTitle = ""; public static string Version = "v1.1";



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


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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