Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Help
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 16.12.2005, 20:04   #1
testdude
Архивный участник
 
Join Date: Nov 2005
Posts: 504
Default Crypt Key?

well i was looking into ways to prevent 3rd party programs like the l2packet framework or l2walker... i was looking at the source of l2pf and i noticed something... the crypt key... i was wondering what the crypt key actually does? ive searched the engine.dll and cannot seem to find anything on it... i run l2logger and every time i connect to the server i get sent a crypt key from it... packet header 0x00... is this needed to decrypt the packets sent from the server or what? if this is so then it should be quite easy to make a server+client mod to stop such 3rd party programs... can anyone help me with this? a little more info on what the crypt key is used for exactly? or maybe a possible location in the engine.dll where this packet could be located?
testdude is offline  
Old 17.12.2005, 21:16   #2
testdude
Архивный участник
 
Join Date: Nov 2005
Posts: 504
Default

someone must know... is the key used for decrypting/encrypting the packets? or is it just there to look pretty? help!
testdude is offline  
Old 17.12.2005, 23:20   #3
testdude
Архивный участник
 
Join Date: Nov 2005
Posts: 504
Default

ok then if no one knows about the crypt key, maybe someone could tell me, are the packets that are recieved by the client handled with the engine.dll? ive searched through it and found alot of stuff on recieved packets but not a single mention to the headers of those packets, say i wanted to change the CharInfo packet header so that people cant see other peoples HP... where in hell do i find the packet header client side... i already know where it is server side... someone must know something about this stuff, u dev guys post about it all the time...
testdude is offline  
Old 20.12.2005, 08:59   #4
Sindol
Архивный участник
 
Join Date: Oct 2005
Posts: 21
Default Re

Depends on version of L2.

The way current version of Lineage 2 works is, client requests connection from server, if the connection is granted, server sends back initiation packet, this packet contains the client's session ID, server protocol version, public RSA key, and dummy length padding.

Client uses the RSA public key to 1024bit encrypt the username / password contained in login packet, entire login packet is then encrypted with blowfish.

After a client's credentials are validated, packets are just encrypted with blowfish, occasionally the client requests the blowfish key, which the server sends to the client RSA encrypted.

Older versions Lineage 2 of did not use RSA, it was just blowfish encrypted packets, the "crypt-key" packet wasn't really an encryption key, it was just a validation / initiation packet that the client used to confirm the server's validity.

engine.dll is used decrypt / encrypt the packets with blowfish, you can find the blowfish key in there.

As for changing the packet ids on the client, you're on your own with that, the ids are hard coded into the client all over the place, and on top of that, packets share the same ID but for differant uses. 0x00 is login packet ID for login server, but for the game server it could be protocol version or key packet.
Sindol is offline  
Old 20.12.2005, 10:20   #5
testdude
Архивный участник
 
Join Date: Nov 2005
Posts: 504
Default

i knew that the login packets were encrypted with blowfish, but the game packets aswell?... now im confused, cos the l2packetframework does not seem to do any decoding of the packets with blowfish, but only with the key that is sent from the server in the 0x00 packet... i know a simple way to stop the l2pf from working... simply by hexing the l2server to send fasle infomation in the StatusUpdate packet... but this still doesnt help with other 3rd party programs, some such as l2walker that actually log in instead of using the game, and other that sniff out the packets from the client/server... this crypt key was the only thing i could think that would help with these types of programs, as ALL of them so far that i have looked at, need the 0x00 packet from the server when you log into the game server for them to actually function... and i dont suppose anyone knows where i could start looking for the hard coded ids for the packets? xD
testdude is offline  
 


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. The time now is 22:55.