mirai/document/protocol/Touch.md

42 lines
646 B
Markdown
Raw Normal View History

2019-08-19 01:20:19 +08:00
# TIM Protocol
## Touch
2019-08-20 22:49:35 +08:00
### C -> S
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
---- | ---|---
int |g_qq | qq number
int| g_server| server ip
2019-08-20 22:49:35 +08:00
#### Packet data
2019-08-19 01:20:19 +08:00
type | value
---- | ---
hex | #head
hex | #ver
int | 08 25 31 01
int | g_qq
hex |#fixVer
hex |#_0825key
?bytes |TEA加密1
hex |#tail
TEA加密1, key = #_0825key:
type | value
---- | ---
hex | #_0825data0
hex | #_0825data2
int | g_qq
hex | 00 00 00 00 03 09 00 08 00 01
int | g_server
hex | 00 02 00 36 00 12 00 02 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 14 00 1D 01 02 00 19
hex | #publicKey
2019-08-20 22:49:35 +08:00
TEA加密以上, key=MD52
### S -> C
2019-08-19 01:20:19 +08:00
2019-08-20 22:49:35 +08:00
[Redirection](Redirection.md)