Esempio n. 1
0
        private static byte[] AuthSecond(string auth)
        {
            var data = new PacketWriter();

            data.WriteUnicodeString(auth);

            return(AuthCipher.WriteHeader(AUTH_2, authKey2, data.ToArray()));
        }
Esempio n. 2
0
        private static byte[] AuthThird(string auth)
        {
            var data = new PacketWriter();

            data.WriteInt(2);
            data.WriteUnicodeString(auth);
            data.WriteBytes(0x13, 0x22, 0x00, 0x02);

            return(AuthCipher.WriteHeader(AUTH_3, authKey3, data.ToArray()));
        }
Esempio n. 3
0
        private static byte[] AuthFirst(string user, string pass)
        {
            var data = new PacketWriter();

            data.WriteInt(8);
            data.WriteUnicodeString(user);
            data.WriteUnicodeString(pass);
            data.WriteBytes(0x00, 0x00, 0x13, 0x22, 0x00, 0x02, 0x01, 0x00);
            data.WriteZero(10);
            data.WriteUnicodeString(GetRandomString(23)); // 23 Random characters (Length 46 as unicode)
            data.WriteInt(1);
            data.WriteZero(2);

            return(AuthCipher.WriteHeader(AUTH_1, authKey1, data.ToArray()));
        }