百趣云
百趣云的博客
🔖protobuf
认出 protobuf:先看特征再动手抓包看到请求体是一堆二进制,先确认是不是 protobuf。特征很明显:开头几个字节是 08 xx 12 xx 1a xx 这种模式(field tag + wire type)能解出可读字符串,但字段之间没有分隔符Content-Type 常是 application/x-protobuf 或 application/octet-streamprotobuf 的 wire 格式核心规则:每个字段是 tag + value,tag = (field_number << 3) | wire_type。wire type 就五种:varint(0)