文档目录
抓包示例
-
Stun Message Type
0x0101 : Binding Success Response -
Length
60 : 说明后面的attributes总共60字节 -
Cookie : 4bytes
必须是0x2112a442 -
Transaction ID
和Binding Request 里的必须相同- https://tools.ietf.org/html/rfc3489#section-11.1
- https://tools.ietf.org/html/rfc5389#section-6
- cookie的作用
- 确定是否理解改进的说明书,也就是rfc 5389
- 单端口时和其他协议做区分
- https://tools.ietf.org/html/rfc3489#section-11.1
-
Attributes(属性)
-
XOR-MAPPED-ADDRESS
- attribute type
0x0020 : xor-mapped-address - attribute length
8 : value一共8个字节 - value
- 第一个字节 : reserved
- Family
- X-Port
和cookie的异或值 - X-Address
和cookie的异或值
- attribute type
-
username
- 和request里的相同
- 和request里的相同
-
message-integrity
- 一致性校验的
- 一致性校验的
-
fingerprint
- 后面会用到
- 后面会用到
-