Ejemplo n.º 1
0
        private void H_DataToClient(object sender, DataToEventArgs e)
        {
            HSession HS = (HSession)sender;

            switch (e.Step)
            {
            case 1:
            {
                Program.Connections[HS].DoHandshake(e.Packet.ReadString(), e.Packet.ReadString());
                HS.SendToServer(3739, Program.Connections[HS].PublicKey);
                break;
            }

            case 2:
            {
                byte[] SharedKey = Program.Connections[HS].GetSharedKey(e.Packet.ReadString());
                HS.ClientEncrypt = new HRC4(SharedKey);
                HS.ServerDecrypt = new HRC4(SharedKey);

                HS.ReceiveData = false;
                HS.SendToServer(3709, 3937, HS.FlashClientURL, HS.GameData.Variables);
                HS.SendToServer(2828, HS.SSOTicket, -1);
                break;
            }
            }
        }
Ejemplo n.º 2
0
        private void H_OnConnected(object sender, EventArgs e)
        {
            HSession H = (HSession)sender;

            Program.Connections[H] = new HKeyExchange(3, "90e0d43db75b5b8ffc8a77e31cc9758fa43fe69f14184bef64e61574beb18fac32520566f6483b246ddc3c991cb366bae975a6f6b733fd9570e8e72efc1e511ff6e2bcac49bf9237222d7c2bf306300d4dfc37113bcc84fa4401c9e4f2b4c41ade9654ef00bd592944838fae21a05ea59fecc961766740c82d84f4299dfb33dd");
            OnBotLoaded(H);

            H.SendToServer(4000, H.FlashClientRevision);
            H.SendToServer(3061);
        }