Beispiel #1
0
        public void SendGateAuth()
        {
            WorldPacket packet = new WorldPacket();
            int         a      = 0;
            string      salt   = LoginUtil.GenerateSalt();

            packet.Initialize(3);
            packet.InputString(this._account, 0x20);
            packet.InputUInt32(this._accountTime);
            if ((this._accountTime == 0) && string.IsNullOrEmpty(this._K))
            {
                a = 1;
            }
            packet.InputInt32(a);
            if (string.IsNullOrEmpty(this._K))
            {
                this._K = LoginUtil.GenerateOrginalKey(this._account, this._password);
            }
            string str2 = string.Empty;

            str2 = LoginUtil.GenerateKey(this._K, salt);
            packet.InputString(salt, 0x40);
            packet.InputString(str2, 0x40);
            this.SendPacket(packet);
        }
Beispiel #2
0
        private void SendAuthPacket()
        {
            WorldPacket packet = new WorldPacket();
            int         a      = 0;
            string      salt   = LoginUtil.GenerateSalt();
            string      str2   = LoginUtil.GenerateKey(this._K, salt);

            packet.Initialize(3);
            packet.InputUInt32(this._accountID);
            packet.InputUInt32(this._accountTime);
            if ((this._accountTime == 0) && string.IsNullOrEmpty(this._K))
            {
                a = 1;
            }
            packet.InputInt32(a);
            packet.InputString("1.0.0.37", 0x100);
            packet.InputString(salt, 0x40);
            packet.InputString(str2, 0x40);
            this.SendCorePacket(packet);
        }