public void Parse(GameClient Session, ClientPacket Packet)
        {
            string CipherPublickey = Packet.PopString();

            //BigInteger SharedKey = HabboEncryptionV2.CalculateDiffieHellmanSharedKey(CipherPublickey);
            //if (SharedKey != 0)

            //Session.RC4Client = new ARC4(SharedKey.getBytes());
            Session.SendPacket(new SecretKeyComposer(HabboEncryptionV2.GetRsaDiffieHellmanPublicKey()));
        }
        public void Parse(Player player, IncomingPacket IncomingPacket)
        {
            var cipherPublickey = IncomingPacket.GetString();
            var sharedKey       = HabboEncryptionV2.CalculateDiffieHellmanSharedKey(cipherPublickey);

            if (sharedKey == 0)
            {
                return;
            }

            player.Arc4 = new ARC4(sharedKey.getBytes());
            player.SendMessage(new SecretKeyMessageComposer(HabboEncryptionV2.GetRsaDiffieHellmanPublicKey()));
        }
Exemplo n.º 3
0
        public void Parse(GameClient session, ClientPacket packet)
        {
            string cipherPublickey = packet.PopString();

            BigInteger sharedKey = HabboEncryptionV2.CalculateDiffieHellmanSharedKey(cipherPublickey);

            if (sharedKey != 0)
            {
                session.Rc4Client = new ARC4(sharedKey.getBytes());
                session.SendPacket(new SecretKeyComposer(HabboEncryptionV2.GetRsaDiffieHellmanPublicKey()));
            }
            else
            {
                session.SendNotification("There was an error logging you in, please try again!");
            }
        }
        public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet)
        {
            string CipherPublickey = Packet.PopString();

            BigInteger SharedKey = HabboEncryptionV2.CalculateDiffieHellmanSharedKey(CipherPublickey);

            if (SharedKey != 0)
            {
                Session.RC4Client = new ARC4(SharedKey.getBytes());
                Session.SendPacket(new SecretKeyComposer(HabboEncryptionV2.GetRsaDiffieHellmanPublicKey()));
            }
            else
            {
                Session.SendNotification("There was an error logging you in, please try again!");
                return;
            }
        }
Exemplo n.º 5
0
        public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet)
        {
            string CipherPublickey = Packet.PopString();

            BigInteger SharedKey = HabboEncryptionV2.CalculateDiffieHellmanSharedKey(CipherPublickey);

            if (SharedKey != 0)
            {
                Session.RC4Client = new ARC4(SharedKey.getBytes());
                Session.SendMessage(new SecretKeyComposer(HabboEncryptionV2.GetRsaDiffieHellmanPublicKey()));
            }
            else
            {
                Session.SendNotification("Houve um log de erro.Por favor tente novamente.!");
                return;
            }
        }