[Protobuf]数据包协议分析

    byteHex = 0a 05 65 37 74 32 65 10 0d 18 8e a6 f5 e3 ad 01

    0a -> index = 1 type = 2 [string]
    05 -> length
    65 37 74 32 65 -> data [ASCII] -> string data [e7t2e]
    10 -> index = 2 type = 0 [varints]
    0d -> data [int] -> decimal [13]
    18 -> index =3 type = 1 [varints fixed64/sfixed64/double]
    8e a6 f5 e3 ad 01

    hex -> bin
    ->10001110 10100110 11110101 11100011 10101101 00000001
    drop first frame
    ->0001110 0100110 1110101 1100011 0101101 0000001
    reverse (little-endian)
    ->0000001 0101101 1100011 1110101 0100110 0001110
    change to byte[]
    ->10101101 11000111 11010101 00110000 1110
    convert to decimal
    ->46648873742

    reference:
    http://www.vuln.cn/6095
    http://blog.csdn.net/weiwangchao_/article/details/16797763
    https://www.cnblogs.com/smark/archive/2012/05/03/2480034.html
    https://www.cnblogs.com/stephen-liu74/archive/2013/01/08/2845994.html

    本博客所有文章如无特别注明均为原创。
    复制或转载请以超链接形式注明转自乐橙呀,原文地址《[Protobuf]数据包协议分析
    标签:
    喜欢 | 0
    分享:

还没有人抢沙发呢~