-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPackets.h
85 lines (82 loc) · 7.85 KB
/
Packets.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#ifndef HEADER_A25E858C6B8A625A
#define HEADER_A25E858C6B8A625A
#ifndef PACKETS
#define PACKETS
std::array<unsigned char, 0x04> SID_NULL = {0xFFu, 0x00u, 0x04u, 0x00u};
std::array<unsigned char, 0x08> SID_PING_DATA = {0xFFu, 0x25u, 0x08u, 0x00u, 0x1Au, 0x6Bu, 0x47u, 0x75};
std::array<unsigned char, 0xE8> SID_AUTH_INFO = {
0xFFu, 0x50u, 0xE8u, 0x00u, 0x02u, 0x00u, 0x00u, 0x00u, 0xF4u, 0x3Du, 0x2Au, 0x1Bu, 0x12u, 0xCBu, 0x03u, 0x00u,
0x00u, 0xB8u, 0xA6u, 0x97u, 0x82u, 0xB8u, 0xD1u, 0x01u, 0x76u, 0x65u, 0x72u, 0x2Du, 0x49u, 0x58u, 0x38u, 0x36u,
0x2Du, 0x37u, 0x2Eu, 0x6Du, 0x70u, 0x71u, 0x00u, 0x43u, 0x3Du, 0x31u, 0x35u, 0x38u, 0x38u, 0x31u, 0x32u, 0x33u,
0x38u, 0x31u, 0x34u, 0x20u, 0x42u, 0x3Du, 0x31u, 0x39u, 0x35u, 0x32u, 0x31u, 0x37u, 0x31u, 0x35u, 0x32u, 0x33u,
0x20u, 0x41u, 0x3Du, 0x31u, 0x35u, 0x33u, 0x37u, 0x35u, 0x35u, 0x33u, 0x38u, 0x36u, 0x35u, 0x20u, 0x34u, 0x20u,
0x41u, 0x3Du, 0x41u, 0x5Eu, 0x53u, 0x20u, 0x42u, 0x3Du, 0x42u, 0x5Eu, 0x43u, 0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, 0x00u, 0xF4u, 0x3Du, 0x2Au, 0x1Bu, 0x12u, 0xCBu, 0x03u, 0x00u,
0x00u, 0x6Fu, 0x27u, 0x88u, 0x82u, 0xB8u, 0xD1u, 0x01u, 0x76u, 0x65u, 0x72u, 0x2Du, 0x49u, 0x58u, 0x38u, 0x36u,
0x2Du, 0x30u, 0x2Eu, 0x6Du, 0x70u, 0x71u, 0x00u, 0x43u, 0x3Du, 0x31u, 0x35u, 0x38u, 0x38u, 0x31u, 0x32u, 0x33u,
0x38u, 0x31u, 0x34u, 0x20u, 0x42u, 0x3Du, 0x31u, 0x39u, 0x35u, 0x32u, 0x31u, 0x37u, 0x31u, 0x35u, 0x32u, 0x33u,
0x20u, 0x41u, 0x3Du, 0x31u, 0x35u, 0x33u, 0x37u, 0x35u, 0x35u, 0x33u, 0x38u, 0x36u, 0x35u, 0x20u, 0x34u, 0x20u,
0x41u, 0x3Du, 0x41u, 0x5Eu, 0x53u, 0x20u, 0x42u, 0x3Du, 0x42u, 0x5Eu, 0x43u, 0x20u, 0x43u, 0x3Du, 0x43u, 0x2Du,
0x41u, 0x20u, 0x41u, 0x3Du, 0x41u, 0x5Eu, 0x42u, 0x00u
};
std::array<unsigned char, 0x68> SID_AUTH_INFO_NOTW3 = {
0xFFu, 0x50u, 0x68u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0xF4u, 0x3Du, 0x2Au, 0x1Bu, 0x12u, 0xCBu, 0x03u, 0x00u,
0x00u, 0xB8u, 0xA6u, 0x97u, 0x82u, 0xB8u, 0xD1u, 0x01u, 0x76u, 0x65u, 0x72u, 0x2Du, 0x49u, 0x58u, 0x38u, 0x36u,
0x2Du, 0x37u, 0x2Eu, 0x6Du, 0x70u, 0x71u, 0x00u, 0x43u, 0x3Du, 0x31u, 0x35u, 0x38u, 0x38u, 0x31u, 0x32u, 0x33u,
0x38u, 0x31u, 0x34u, 0x20u, 0x42u, 0x3Du, 0x31u, 0x39u, 0x35u, 0x32u, 0x31u, 0x37u, 0x31u, 0x35u, 0x32u, 0x33u,
0x20u, 0x41u, 0x3Du, 0x31u, 0x35u, 0x33u, 0x37u, 0x35u, 0x35u, 0x33u, 0x38u, 0x36u, 0x35u, 0x20u, 0x34u, 0x20u,
0x41u, 0x3Du, 0x41u, 0x5Eu, 0x53u, 0x20u, 0x42u, 0x3Du, 0x42u, 0x5Eu, 0x43u, 0x20u, 0x43u, 0x3Du, 0x43u, 0x2Du,
0x41u, 0x20u, 0x41u, 0x3Du, 0x41u, 0x5Eu, 0x42u, 0x00u
};
std::array<unsigned char, 0xE5> SID_AUTH_INFO_W3DEMO = {
0xFFu, 0x50u, 0xE5u, 0x00u, 0x02u, 0x00u, 0x00u, 0x00u, 0xF4u, 0x3Du, 0x2Au, 0x1Bu, 0x00u, 0x00u, 0x00u, 0x00u,
0x00u, 0x6Fu, 0x27u, 0x88u, 0x82u, 0xB8u, 0xD1u, 0x01u, 0x49u, 0x58u, 0x38u, 0x36u, 0x76u, 0x65u, 0x72u, 0x31u,
0x2Eu, 0x6Du, 0x70u, 0x71u, 0x00u, 0x41u, 0x3Du, 0x33u, 0x38u, 0x34u, 0x35u, 0x35u, 0x38u, 0x31u,
0x36u, 0x33u, 0x34u, 0x20u, 0x42u, 0x3Du, 0x38u, 0x38u, 0x30u, 0x38u, 0x32u, 0x33u, 0x35u, 0x38u, 0x30u, 0x20u,
0x43u, 0x3Du, 0x31u, 0x33u, 0x36u, 0x33u, 0x39u, 0x33u, 0x37u, 0x31u, 0x30u, 0x33u, 0x20u, 0x34u, 0x20u, 0x41u,
0x3Du, 0x41u, 0x2Du, 0x53u, 0x20u, 0x42u, 0x3Du, 0x42u, 0x2Du, 0x43u, 0x20u, 0x43u, 0x3Du, 0x43u, 0x2Du, 0x41u,
0x20u, 0x41u, 0x3Du, 0x41u, 0x2Du, 0x42u, 0x00u, 0xBEu, 0xD2u, 0x3Eu, 0xB3u, 0x9Fu, 0x33u, 0x68u, 0x56u,
0x64u, 0x0Au, 0x5Cu,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0x65u, 0x00u, 0x42u, 0x6Fu, 0x67u,
0x64u, 0x61u, 0x6Eu, 0x62u, 0x6Fu, 0x74u, 0x00u, 0x03u, 0x01u, 0x48u, 0x65u, 0x72u, 0x65u, 0x00u
};
std::array<unsigned char, 0x12> SID_GETCHANNELLIST = {
0xFFu, 0x0Bu, 0x12u, 0x00u, 0x6Du, 0x65u, 0x6Du, 0x65u, 0x00u, 0x72u, 0x65u, 0x00u, 0x76u, 0x69u, 0x65u, 0x77u,
0x00u, 0x00
};//meme,re,view
std::array<unsigned char, 0x22> SID_NEWS_INFO = {
0xFFu, 0x46u, 0x22u, 0x00u, 0x02u, 0x00u, 0x00u, 0x00u, 0x00u, 0x5Cu, 0x38u, 0xD2u, 0x5Du, //5C38D25D
0x5Cu, 0x38u, 0xD2u, 0x5Du, 0x00u, 0x00u, 0x00u, 0x00u, 0x4Du, 0x6Fu, 0x74u, 0x64u, 0x00,
0x5Cu, 0x38u, 0xD2u, 0x5Du, 0x4Du, 0x65u, 0x68u, 0x00u
};
std::array<unsigned char, 0x05> SID_FRIENDLIST = {0xFFu, 0x65u, 0x05u, 0x00u, 0x00u};
const unsigned char SERVER_TOKEN[] = {0xF4u, 0x3Du, 0x2Eu, 0x1Bu};
const unsigned char SID_AUTH_CHECK[] = {0xFFu, 0x51u, 0x09u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u};
const unsigned char SID_AUTH_ACCOUNTCREATE[] = {0xFFu, 0x52u, 0x08u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u};
const unsigned char SID_AUTH_ACCOUNTCREATE_EXISTS[] = {0xFFu, 0x52u, 0x08u, 0x00u, 0x04u, 0x00u, 0x00u, 0x00u};
const unsigned char SID_STARTADVEX3[] = {0xFFu, 0x1Cu, 0x08u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u};
const unsigned char SID_STARTADVEX3_FAIL[] = {0xFFu, 0x1Cu, 0x08u, 0x00u, 0x01u, 0x00u, 0x00u, 0x00u};
const unsigned char SID_SETEMAIL[]= {0xFFu, 0x59u, 0x04u, 0x00u};
#endif // PACKETS
#endif // header guard