Register for your free account! | Forgot your password?

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

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

Advertisement



[Question]Common Mistakes in DH Key Exchange

Discussion on [Question]Common Mistakes in DH Key Exchange within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old 12/28/2010, 12:41   #16


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Well i mean have you tried swapping them, by reverse i meant that for me:

Encrypt = Decrypt = ClientIV
Decrypt = Encrypt = ServerIV

Yours is:

Encrypt = Decrypt = ServerIV
Decrypt = Encrypt = ClientIV

What they are named isnt all that relevant. But that would definately cause issues (i should know i had it set wrong at one time and was running round in circles for days)
Korvacs is offline  
Old 12/28/2010, 16:45   #17
 
elite*gold: 0
Join Date: Jun 2006
Posts: 457
Received Thanks: 67
Quote:
Originally Posted by Korvacs View Post
Well i mean have you tried swapping them, by reverse i meant that for me:

Encrypt = Decrypt = ClientIV
Decrypt = Encrypt = ServerIV

Yours is:

Encrypt = Decrypt = ServerIV
Decrypt = Encrypt = ClientIV

What they are named isnt all that relevant. But that would definately cause issues (i should know i had it set wrong at one time and was running round in circles for days)
just to double check. in just a client-server context, the client decrypts packet using serverIV and encrypts using clientIV right?

And also raising my previous question again. are you able to find the server iv in conquer.exe? somehow i can only find a client iv
shitboi is offline  
Old 12/29/2010, 02:27   #18


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Thats correct, however thats not how yours appears to be setup. Yours appears to be setup so that the client decrypts using the clientiv, and encrypts using the serveriv. You need the reverse of that.

I dont have time to check that for you, try reversing the IV's like ive suggested three times now.
Korvacs is offline  
Old 12/29/2010, 08:19   #19
 
elite*gold: 0
Join Date: Jun 2006
Posts: 457
Received Thanks: 67
Quote:
Originally Posted by Korvacs View Post
Thats correct, however thats not how yours appears to be setup. Yours appears to be setup so that the client decrypts using the clientiv, and encrypts using the serveriv. You need the reverse of that.

I dont have time to check that for you, try reversing the IV's like ive suggested three times now.
Well, i have suspected that before, i did try switching IVs, in fact i even tried to edit the IVs in the server DH packet to {0 0 0 0 0 0 0 0} so as to reduce the mistakes(variables) but to no avail.
I mean the logic in doing this is pretty straight cut, but i am not the only one having this problem when trying to develop this proxy in java.
shitboi is offline  
Old 12/29/2010, 12:44   #20


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Can you show a snippet of where you initialize the ciphers, just want to check your using the right type of blowfish.
Korvacs is offline  
Old 12/29/2010, 18:23   #21
 
elite*gold: 0
Join Date: Jun 2006
Posts: 457
Received Thanks: 67
Quote:
Originally Posted by Korvacs View Post
Can you show a snippet of where you initialize the ciphers, just want to check your using the right type of blowfish.
Sure. I have used an cache object - ProxyDataPool - to store all the references to keys and etc so that i can avoid writing so many accessors and mutators. This i am showing you if my game packet cryptograher.
shitboi is offline  
Old 12/31/2010, 12:53   #22


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Dunno what to suggest, you appear to be doing everything right, although the IVs have to be the way i stated otherwise it will never work. Really you need one of the Java guys in here incase this is something specific to Java, i get the feeling it is because the encryption hasnt been altered and my proxy still works without being altered in like a year.
Korvacs is offline  
Old 12/31/2010, 18:46   #23
 
elite*gold: 0
Join Date: Jun 2006
Posts: 457
Received Thanks: 67
Quote:
Originally Posted by Korvacs View Post
Dunno what to suggest, you appear to be doing everything right, although the IVs have to be the way i stated otherwise it will never work. Really you need one of the Java guys in here incase this is something specific to Java, i get the feeling it is because the encryption hasnt been altered and my proxy still works without being altered in like a year.
Indeed, conceptually, once you grasped it, you should know what to do. But funny enough the DH exchange doesn't seem to produce the correct shared key. I guess the quest to defeat co handshake continues...


This is how i wrote my DH Exchange. It contains static methods for generating a key pair for DH exchange
Code:
...
shitboi is offline  
Reply

Tags
dh_exchange


Similar Threads Similar Threads
I have a kind of stupid question about common hacks...
09/11/2010 - S4 League - 5 Replies
Well, you see... Most, if not all the hacks I see, have to be loaded and ready before the game is opened, and are presumably permanent until the game is shut down. Is there any way to make a hack togglable, so you could say, activate 1-hit kills mid-game, then switch it off later without shutting the game down? Or would these changes be impossible to slip past xtrap? The reason I ask is, it would be nice to be able to play normally most of the time, but in the event of we'll say...a...
[QUESTION] is it common???
10/01/2009 - Grand Chase Philippines - 7 Replies
is it common on the script file that i cant get any items from the boss ecample of kamikis horn partusay ruby or gaikoz sword pls help...or give me some tips on how to get it!!!thanks
|Works and Mistakes|
06/04/2009 - Rappelz - 6 Replies
hey guys, im relative new in this .. so.... a lot of complain ppl start with a simply question... what i have to search to hack rappelz? i got a program that can hide from GG, and i can see the memory used in the computer, but i dont understand very well what to do 0.0 ..... Some help? tuto? what program can check the sending of sframe? Some have any other progress? :confused: Sry bad english XD, just a brazilian trying to learn XD :confused: BTW.. someone can adopt me as a...
Token Exchange question
04/01/2007 - Eudemons Online - 2 Replies
Lately in EO... i went to check how many tokens i will get for giveing a 12-star mdefpdef... cause im try to gether 80k tokens to get that thunder juice well as class and level it passed but it failed in the star number..so here is my question I have found out that minimum lvl to be given is 50 but does anyone know how many stars and which pets can be given? Thanks in advance for answering and sorry if that is post somewhere but i looked and i found nothing
1 hit kill <--- Not a common question
05/19/2006 - World of Warcraft - 3 Replies
Hi all ive been fooling around with WPE, most of the common spells work and thats great (like the one that gives 20k dmg) but those that im interested in (namely 05 00 and 09 01, the so called "insta kills") dont appear to work. do i have to use a specific kind of spell to replace with these? ive been using smite as 05 00 and arcane explosin for the 09 01 area kill but none of them work. they actually appear to be casting but they just dont do anythiing! the ff 4f doesnt seem to work either!...



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


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.