![]() |
|
|
#26 |
|
Архивный участник
Join Date: Nov 2005
Posts: 41
|
here is complete code for the method
Code:
/// <summary>
/// Create new instance of RequestAuthLogin.
/// </summary>
/// <param name="rawPacket">Packet to decrypt.</param>
/// <param name="_key">RSA Private Key</param>
public RequestAuthLogin(byte[] rawPacket, RSAParameters _key)
{
try
{
RSAManaged RSADecryptor = new RSAManaged();
RSADecryptor.ImportParameters(_key);
byte[] _tmp = new byte[0x80];
Array.Copy(rawPacket, 1, _tmp, 0, _tmp.Length);
byte[] decrypted = RSADecryptor.DecryptValue(_tmp);
char[] chr = new char[1] {'\x00'};
char[] tmpChar;
tmpChar = new char[decrypted.Length];
decrypted.CopyTo(tmpChar, 0);
_user = new System.String(tmpChar, 0x2, 14).Trim(chr);
_user = _user.ToLower();
_password = new System.String(tmpChar, 0x11, 16).Trim(chr);
if (Config.DEBUG) Console.WriteLine("[RequestLoginAuth] :: username: '" + _user + "' password: '" + _password + "'\n");
}
catch (CryptographicException e)
{
SupportClass.ErrorLog(e.Message);
}
}
|
|
|
|
|
#27 |
|
Архивный участник
Join Date: Aug 2005
Posts: 428
|
navy, answer me on icq - 203833915
|
|
|
|
|
#28 |
|
Архивный участник
Join Date: Mar 2006
Posts: 21
|
I solved this problem, my login server works with old and with new auth protocol.
|
|
|
|
|
#29 |
|
Архивный участник
Join Date: Nov 2005
Posts: 41
|
As you can see, I solved this problem almost 2 month ago
. And now I have complete LoginServer and part of GameServer, and they normaly works with c3-c4 client. But now I have not time for farther work. Main thing now is a client engine on gameserv... I try to understand khow it works in java but I do not know java
|
|
|
|
|
#30 |
|
Архивный участник
Join Date: Feb 2006
Posts: 6
|
how do you know decryption key?
|
|
|
|
|
#31 |
|
Архивный участник
Join Date: Nov 2005
Posts: 41
|
l2j server
|
|
|
|
|
#32 |
|
Архивный участник
Join Date: Jul 2005
Posts: 50
|
what are the stats off th c server i wan to help i the sql mod inplandet?
|
|
|
|
|
#33 |
|
Архивный участник
Join Date: Nov 2004
Posts: 1,405
|
i'm not really sure either :\
but at least i'm started some work on implementing mssql for the other version of the open source for l2c# havent really got time to go design a more complete version... if u wish to have a copy of it.. i could always upload it and let u guys have a go at it... since i'm sure there's tons of people who has time on their hands ![]() -out |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|