Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   L2C# General (https://postpacific.mmorpg-game.online/forumdisplay.php?f=48)
-   -   [Updated]Maybe somone else can find the problem here. (https://postpacific.mmorpg-game.online/showthread.php?t=2725)

navy 12.03.2006 17:55

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);
                        }
                }


drzoom 15.03.2006 17:29

navy, answer me on icq - 203833915:)

karioth 15.03.2006 23:43

I solved this problem, my login server works with old and with new auth protocol.

navy 16.03.2006 05:45

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 :D

Hackfaq 23.03.2006 17:36

how do you know decryption key?

navy 24.03.2006 06:59

l2j server

ramon1 03.04.2006 06:52

c
 
what are the stats off th c server i wan to help i the sql mod inplandet?

Digital 03.04.2006 14:46

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


All times are GMT. The time now is 16:47.