Blacklist Packets

Post Reply
User avatar
atom0s
Developer
Posts: 537
Joined: Thu Oct 25, 2012 9:52 am

Blacklist Packets

Post by atom0s » Thu Jan 24, 2013 6:40 pm

The top of the stop_downloading packet mentions the data is unknown:
http://onetimexi.googlecode.com/svn/tru ... oading.cpp

This packet is actually the blacklist data packet that holds a users blacklist data.

The format of the packet looks like this: (Live dump from retail 1/24/2012)

Code: Select all

>> 041 (248 bytes) - Unknown
    Header:7C41 Parent:9 Packet Length:248
    41 7C 09 00 3B E1 C0 00 4B 6D 66 64 6D 6B 69 64    A|..;áÀ.Kmfdmkid
    00 00 00 00 00 00 00 00 48 59 E4 00 41 6D 61 6E    ........HYä.Aman
    64 61 72 69 75 73 00 00 00 00 00 00 14 55 C5 00    darius.......UÅ.
    41 62 64 6F 00 00 00 00 00 00 00 00 00 00 00 00    Abdo............
    B1 92 C4 00 52 61 70 74 75 72 65 72 00 00 00 00    ±’Ä.Rapturer....
    00 00 00 00 49 84 C8 00 53 6B 65 65 74 61 72 75    ....I„È.Skeetaru
    00 00 00 00 00 00 00 00 92 0D C2 00 45 6B 69 61    ........’.Â.Ekia
    00 00 00 00 00 00 00 00 00 00 00 00 8C 0A CA 00    ............Œ.Ê.
    53 69 72 64 75 64 65 00 00 00 00 00 00 00 00 00    Sirdude.........
    A3 01 C3 00 48 65 6D 6F 72 61 62 65 00 00 00 00    £.Ã.Hemorabe....
    00 00 00 00 FC 31 D2 00 52 75 73 6C 69 00 00 00    ....ü1Ò.Rusli...
    00 00 00 00 00 00 00 00 26 80 C6 00 44 6A 72 61    ........&ۮ.Djra
    69 6E 00 00 00 00 00 00 00 00 00 00 BA 1C C3 00    in..........º.Ã.
    44 69 72 6B 00 00 00 00 00 00 00 00 00 00 00 00    Dirk............
    38 04 06 01 53 79 6C 76 72 00 00 00 00 00 00 00    8...Sylvr.......
    00 00 00 00 01 0C 00 00                            ........
This packet is sent multiple times until the full blacklist is obtained.
The size is always 0x7C.

The format of the packet data is:
After the typical header (packet type / packet size / sync count)

Code: Select all

struct blacklistentry_t {
    uint32  playonline_id;
    char    playername[16];
};

User avatar
atom0s
Developer
Posts: 537
Joined: Thu Oct 25, 2012 9:52 am

Re: Blacklist Packets

Post by atom0s » Thu Jan 24, 2013 6:45 pm

Sending blacklist command: (Client to Server)

Add player to blacklist

Code: Select all

<< 03D (28 bytes) - Unknown
    3D 0E 12 01 4C EB CF 00 57 69 63 63 61 61 6E 00    =...Lδ╧.Wiccaan.
    00 00 00 00 00 00 00 00 00 00 00 00                ............
Remove player from blacklist

Code: Select all

<< 03D (28 bytes) - Unknown
    3D 0E EE 06 4C EB CF 00 57 69 63 63 61 61 6E 00    =.e.Ld-.Wiccaan.
    00 00 00 00 00 00 00 00 01 00 00 00                ............

The server mimics the packets back on success.

Receiving blacklist command (Server to Client)
Add player to blacklist

Code: Select all

>> 042 (28 bytes) - Unknown
    Header:E42 Parent:7AD Packet Length:28
    42 0E AD 07 4C EB CF 00 57 69 63 63 61 61 6E 00    B.¡.Lδ╧.Wiccaan.
    00 00 00 00 00 00 00 00 00 00 00 00                ............
Removing player from blacklist

Code: Select all

>> 042 (28 bytes) - Unknown
    Header:E42 Parent:6EE Packet Length:28
    42 0E EE 06 4C EB CF 00 57 69 63 63 61 61 6E 00    B.e.Ld-.Wiccaan.
    00 00 00 00 00 00 00 00 01 00 00 00                ............

User avatar
atom0s
Developer
Posts: 537
Joined: Thu Oct 25, 2012 9:52 am

Re: Blacklist Packets

Post by atom0s » Thu Jan 24, 2013 6:49 pm

Failed Commands

If any of the commands for blacklist fails, the 24th byte is the command type.
- 0x00 = Successful add command.
- 0x01 = Successful remove command.
- 0x02 = Error on adding.

0x02 sends back the similar packet with the message info:
(Attempting to add invalid name to blacklist.)

Code: Select all

>> 042 (28 bytes) - Unknown
    Header:E42 Parent:8D7 Packet Length:28
    42 0E D7 08 01 00 00 00 00 00 00 00 92 32 06 1E    B.╫.........Æ2..
    00 00 00 00 00 00 00 00 02 00 00 00                ............
This will print out the message 'Failed to add to blacklist.'.


(Attempting to remove invalid name from blacklist.)

Code: Select all

>> 042 (28 bytes) - Unknown
    Header:E42 Parent:A70 Packet Length:28
    42 0E 70 0A 01 00 00 00 00 00 00 00 F5 3A 06 2E    B.p.........⌡:..
    00 00 00 00 00 00 00 00 02 00 00 00                ............
This will print out the message 'Failed to remove from blacklist.'

User avatar
diatanato
Developer
Posts: 112
Joined: Thu Aug 30, 2012 9:59 pm

Re: Blacklist Packets

Post by diatanato » Thu Jan 31, 2013 5:09 am

thx ^^

User avatar
atom0s
Developer
Posts: 537
Joined: Thu Oct 25, 2012 9:52 am

Re: Blacklist Packets

Post by atom0s » Tue Dec 24, 2013 5:02 am

Commited a working example of this:
https://code.google.com/p/onetimexi/sou ... ail?r=4302

Post Reply