Transport Layer:Transmission Control Protocol (TCP)
Application Layer:BNLS Messages (BNLS)
Message Id:0x0C
Message Name:BNLS_CDKEY_EX
Direction:Server to Client
Used By:Starcraft Original, Starcraft Broodwar
Starcraft Japanese, Diablo II
Diablo II Lord of Destruction, Warcraft II BNE
Warcraft III Reign of Chaos, Warcraft III The Frozen Throne
Message Format:
(does not include protocol header)
(UINT32) Cookie
(UINT8) Number of CD-keys requested
(UINT8) Number of successfully encrypted CD-keys
(UINT32) Bit mask

For each successful CD Key:
(UINT32) Client session key
(UINT32) [9] CD-key data


When the flags do not contain CDKEY_OLD_STYLE_RESPONSES (0x08), the response is this message.

Cookie is the same as the value sent to the server in the request.

The bit mask field contains the success code for each CD-key. Each bit of the 32 bits in this UINT32 is 1 for success or 0 for failure. The least significant bit specifies the success code of the first CD-key provided. Bits that exceed the amount of CD-keys provided are set to 0



no one has commented yet.