Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Development

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #16  
Old 07-29-2004, 07:39 AM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default

Quote:
Originally Posted by RangerDown
And did you try to set Key2 to 0 all the time, does that make the user/pass send in the clear?
Perhaps something else is wrong in my code, but if i set key2 to 0, it is still not sent in the clear... EQ is accepting the packets, so I think the crc is correct, it must be using different encryption or something...

It might have something to do with key1... because I am not doing anything with key1 except echoing it back in the reply, after that it seems worthless... but it might be a weak 'CRC' type of check to make sure the reply comes back and at least partially makes sense (key1 is the same)
Reply With Quote
  #17  
Old 07-29-2004, 07:51 AM
RangerDown
Demi-God
 
Join Date: Mar 2004
Posts: 1,066
Default

Drat :( In that case, they must've changed some stuff up with the user/pass encryption after June 22.

When I'm back at home this evening I'll post the contents of a collected session between my Emu-compatible client and the Emu login server so you at least have something to compare the existing protocol to.
Reply With Quote
  #18  
Old 07-29-2004, 10:53 AM
kathgar
Discordant
 
Join Date: May 2002
Posts: 434
Default

When the old new login came out, passwords and usernames were sent plaintext, and that key had nothing to do with it. I think about a month in to the new login they decided that encryption would be a good idea.
__________________
++[>++++++<-]>[<++++++>-]<.>++++[>+++++<-]>[<
+++++>-]<+.+++++++..+++.>>+++++[<++++++>-]<+
+.<<+++++++++++++++.>.+++.------.--------.>+.
Reply With Quote
  #19  
Old 07-29-2004, 11:24 AM
RangerDown
Demi-God
 
Join Date: Mar 2004
Posts: 1,066
Default

Quote:
I think about a month in to the new login they decided that encryption would be a good idea.
Wait a minute... SOE had a good idea??!!!

/hoards canned food and bottled water... armageddon is coming!
Reply With Quote
  #20  
Old 08-06-2004, 04:23 PM
Doodman's Avatar
Doodman
Developer
 
Join Date: Aug 2003
Posts: 246
Default

You can send the 16 bit crc as 00 00 and the client will accept it just fine.

I do it in the chat channels and in my partially implemented login server.

As for the crypto key, it is not sent from server->client. It is static and in eqmain.dll. Everytime you log in on live you send the same chunk of data for the same user/pass. Supposedly it is 3des with some transpositions. Just need the key and what transpositions they do.
Reply With Quote
  #21  
Old 08-06-2004, 04:29 PM
Doodman's Avatar
Doodman
Developer
 
Join Date: Aug 2003
Posts: 246
Default

Plus, beyond the leading op_code (OP_SessionRequest is 0x01 and Op_SessionResponse is 0x02) here is the structure of the SessionRequest and SessionResponse packets:
Code:
struct SessionRequest {
        unsigned long UnknownA;
        unsigned long Session;
        unsigned short UnknownB;
        unsigned short MaxLength;
};              
                
struct SessionResponse {
        unsigned long Session;
        unsigned long Key;
        unsigned short UnknownA;
        unsigned char UnknownB;
        unsigned char UnknownC;
        unsigned short MaxLength;
        unsigned long UnknownD;
};
In the login server Key is ignored and unused. In the chatchannels it is used to "scramble" the packets being sent.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 10:13 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3