Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 12.03.2006, 17:55   #1
navy
Архивный участник
 
Join Date: Nov 2005
Posts: 41
Default

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);
			}
		}
navy is offline  
Old 15.03.2006, 17:29   #2
drzoom
Архивный участник
 
Join Date: Aug 2005
Posts: 428
Default

navy, answer me on icq - 203833915
drzoom is offline  
Old 15.03.2006, 23:43   #3
karioth
Архивный участник
 
Join Date: Mar 2006
Posts: 21
Default

I solved this problem, my login server works with old and with new auth protocol.
karioth is offline  
Old 16.03.2006, 05:45   #4
navy
Архивный участник
 
Join Date: Nov 2005
Posts: 41
Default

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
navy is offline  
Old 23.03.2006, 17:36   #5
Hackfaq
Архивный участник
 
Join Date: Feb 2006
Posts: 6
Default

how do you know decryption key?
Hackfaq is offline  
Old 24.03.2006, 06:59   #6
navy
Архивный участник
 
Join Date: Nov 2005
Posts: 41
Default

l2j server
navy is offline  
Old 03.04.2006, 06:52   #7
ramon1
Архивный участник
 
Join Date: Jul 2005
Posts: 50
Default c

what are the stats off th c server i wan to help i the sql mod inplandet?
ramon1 is offline  
Old 03.04.2006, 14:46   #8
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

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
Digital 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 16:47.