SHARE
TWEET

Untitled

a guest May 17th, 2014 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /******************************************************/
  2. /*
  3. From Diablo II 1.08?
  4. FF 42 43 00 AB 4C A4 3B            .BC..L.;
  5. 01 00 00 00 00 00 00 00   10 00 00 00 06 00 00 00    ................
  6. XX 60 12 00 00 00 00 00   5D 82 82 C4 F4 8F D0 91    X`......].......
  7. E1 5B AB 95 D9 EE EF 18   44 3E F1 C9 XX XX XX XX    .[......D>..XXXX
  8. XX XX XX XX XX XX XX XX   XX XX 00                   XXXXXXXXXX.
  9.  
  10. FF 42 44 00 17 78 42 77   01 00 00 00 00 00 00 00    .BD..xBw........
  11. 10 00 00 00 06 00 00 00   XX F3 10 00 00 00 00 00    ........X.......
  12. A8 29 8B C4 41 BD 33 AB   74 4C 1F 1E 5C XX CA 83    .)..A.3.tL..\X..
  13. 7F E5 36 14 XX XX XX XX   XX XX XX XX XX XX XX XX    ..6.XXXXXXXXXXXX
  14. XX XX XX 00                                          XXX.
  15.  
  16. FF 42 44 00 C6 25 A1 3B   01 00 00 00 00 00 00 00    .BD..%.;........
  17. 10 00 00 00 06 00 00 00   XX F3 10 00 00 00 00 00    ........X.......
  18. C4 3F FB 05 94 0C AC D4   3B 63 B1 90 E4 XX 53 B9    .?......;c...XS.
  19. 70 C3 6F 2E XX XX XX XX   XX XX XX XX XX XX XX XX    p.o.XXXXXXXXXXXX
  20. XX XX XX 00                                          XXX.
  21. */
  22. #define CLIENT_CDKEY3 0x42ff
  23. typedef struct
  24. {
  25.         t_bnet_header h;
  26.         bn_int        unknown1; /* FIXME: some kind of salt? */
  27.         bn_int        unknown2; /* 01 00 00 00 */
  28.         bn_int        unknown3; /* 00 00 00 00 */
  29.         bn_int        unknown4; /* 10 00 00 00 */
  30.         bn_int        unknown5; /* 06 00 00 00 */
  31.         bn_int        unknown6; /* FIXME: value1? */
  32.         bn_int        unknown7; /* 00 00 00 00 */
  33.         bn_int        key_hash[5];
  34.         /* owner name */
  35. } PACKED_ATTR() t_client_cdkey3;
  36. #define CLIENT_CDKEY3_UNKNOWN1  0xffffffff
  37. #define CLIENT_CDKEY3_UNKNOWN2  0x00000001
  38. #define CLIENT_CDKEY3_UNKNOWN3  0x00000000
  39. #define CLIENT_CDKEY3_UNKNOWN4  0x00000010
  40. #define CLIENT_CDKEY3_UNKNOWN5  0x00000006
  41. #define CLIENT_CDKEY3_UNKNOWN6  0x00123456
  42. #define CLIENT_CDKEY3_UNKNOWN7  0x00000000
  43. /******************************************************/
  44.  
  45.  
  46. /******************************************************/
  47. /*
  48.                                                   FF 42 09 00 00 00 00 00            .B......
  49.                                                   00
  50.  
  51.                                                   FF 42 09 00 00 00 00 00   00                         .B.......
  52.                                                   */
  53. #define SERVER_CDKEYREPLY3 0x42ff
  54. typedef struct
  55. {
  56.         t_bnet_header h;
  57.         bn_int        message;
  58.         /* owner name */ /* FIXME: or error message, or ... */
  59. } PACKED_ATTR() t_server_cdkeyreply3;
  60. #define SERVER_CDKEYREPLY3_MESSAGE_OK       0x00000000
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top