Пример #1
0
    private void sendRealmList()
    {
        RealmPacket packet = new RealmPacket(RealmOpcodes.REALM_LIST);

        packet.writeUint32(0);

        client.BeginSend(packet.getFinalizedPacket(), 0, packet.Size, SocketFlags.None, new AsyncCallback(SendData), client);
    }
Пример #2
0
    private void sendAuthLogonProof()
    {
        RealmPacket packet = new RealmPacket(RealmOpcodes.AUTH_LOGON_PROOF);

        packet.writeBigInteger(srp.A, 32); // A
        packet.writeBytes(srp.M1);         // M1
        packet.writeBytes(new byte[20]);   // crc
        packet.writeInt16(0);              //

        client.BeginSend(packet.getFinalizedPacket(), 0, packet.Size, SocketFlags.None, new AsyncCallback(SendData), client);
    }
Пример #3
0
    private void sendAuthLogonChallenge()
    {
        RealmPacket packet = new RealmPacket(RealmOpcodes.AUTH_LOGON_CHALLENGE);

        packet.writeByte(8);                             // error code
        packet.writeUint16((UInt16)(30 + srp.I.Length)); // Packet Size
        packet.writeString("WoW", 4);                    // Game name
        packet.writeBytes(new byte[] { 3, 2, 2 });       // WoW Version
        packet.writeUint16(10505);                       // WoW build
        packet.writeString("68x", 4);                    // platform
        packet.writeString("niW", 4);                    // Operating System
        packet.writeString("RFrf", 4);                   // Country
        packet.writeUint32(0);
        packet.writeBytes(new byte[] { 127, 0, 0, 1 });  // IP
        packet.writePascalString(srp.I);

        client.BeginSend(packet.getFinalizedPacket(), 0, packet.Size, SocketFlags.None, new AsyncCallback(SendData), client);
    }
Пример #4
0
    private void sendRealmList()
    {
        RealmPacket packet = new RealmPacket(RealmOpcodes.REALM_LIST);

        packet.writeUint32(0);

        client.BeginSend(packet.getFinalizedPacket(), 0, packet.Size, SocketFlags.None, new AsyncCallback(SendData), client);
    }
Пример #5
0
    private void sendAuthLogonProof()
    {
        RealmPacket packet = new RealmPacket(RealmOpcodes.AUTH_LOGON_PROOF);

        packet.writeBigInteger(srp.A, 32); // A
        packet.writeBytes(srp.M1); // M1
        packet.writeBytes(new byte[20]); // crc
        packet.writeInt16(0); //

        client.BeginSend(packet.getFinalizedPacket(), 0, packet.Size, SocketFlags.None, new AsyncCallback(SendData), client);
    }
Пример #6
0
    private void sendAuthLogonChallenge()
    {
        RealmPacket packet = new RealmPacket(RealmOpcodes.AUTH_LOGON_CHALLENGE);
        packet.writeByte(8);    // error code
        packet.writeUint16((UInt16)(30 + srp.I.Length));    // Packet Size
        packet.writeString("WoW", 4);   // Game name
        packet.writeBytes(new byte[] { 3, 2, 2 }); // WoW Version
        packet.writeUint16(10505);      // WoW build
        packet.writeString("68x", 4);   // platform
        packet.writeString("niW", 4);   // Operating System
        packet.writeString("RFrf", 4);  // Country
        packet.writeUint32(0);
        packet.writeBytes(new byte[] {127, 0, 0, 1});   // IP
        packet.writePascalString(srp.I);

        client.BeginSend(packet.getFinalizedPacket(), 0, packet.Size, SocketFlags.None, new AsyncCallback(SendData), client);
    }