2019-08-19 01:20:19 +08:00
|
|
|
|
# TIM Protocol
|
|
|
|
|
|
|
|
|
|
## Get_tlv_0006
|
|
|
|
|
|
2019-08-20 22:49:35 +08:00
|
|
|
|
C 构建包, 近 C 使用
|
2019-08-19 01:20:19 +08:00
|
|
|
|
|
2019-08-20 22:49:35 +08:00
|
|
|
|
#### Var
|
2019-08-19 01:20:19 +08:00
|
|
|
|
type | var name | value/from
|
|
|
|
|
---- | ---|---
|
2019-08-20 22:49:35 +08:00
|
|
|
|
?bytes | MD51 | md5(raw password)
|
2019-08-19 01:20:19 +08:00
|
|
|
|
?bytes | MD52 | md5((MD51 + “ 00 00 00 00 ” + g_QQ).hextobytes())
|
2019-08-20 22:49:35 +08:00
|
|
|
|
4bytes |m_loginIP | 服务器提供(Dispose_0825)
|
|
|
|
|
16bytes| m_tgtgtKey| |
|
|
|
|
|
#### Packet data
|
2019-08-19 01:20:19 +08:00
|
|
|
|
|
|
|
|
|
type | value
|
|
|
|
|
---- | ---
|
|
|
|
|
int | random
|
|
|
|
|
hex |00 02
|
|
|
|
|
int |qq
|
|
|
|
|
hex |#_0825data2
|
|
|
|
|
hex |00 00 01
|
|
|
|
|
bytes|MD51
|
|
|
|
|
int |m_loginTime
|
|
|
|
|
byte | 0
|
|
|
|
|
bytes | 12 zero
|
|
|
|
|
int|m_loginIP
|
|
|
|
|
bytes | 8 zero
|
|
|
|
|
hex | 00 10
|
|
|
|
|
hex | 15 74 C4 89 85 7A 19 F5 5E A9 C9 A3 5E 8A 5A 9B
|
|
|
|
|
bytes | m_tgtgtKey
|
|
|
|
|
|
|
|
|
|
TEA加密以上, key=MD52
|