wireshark解析grpc/protobuf的方法

1,wireshark需要安装3.20以上

下载地址:https://www.wireshark.org/ 

2,如果版本不对,需要卸载,卸载方法:

 sudo rm -rf /Applications/Wireshark.app
 sudo rm -rf $HOME/.config/wireshark
 sudo rm -rf /Library/Application\Support/Wireshark

3,设置pb文件的路径:

点击菜单wirshark-》Preferences-〉Protobuf ,然后再点击“Edit” ,加载自定义的proto文件及pb的系统文件

4,如果有以下错误,需要设置fake headers配置

[Dissector bug,protocol GRPC:epan/dissectors/packet-grpc.c:341:failed assertion "grpc_ctx&&grpc_ctx->content_type&&grpc_ctx->path" (The content_type and path of grpc context must be set.)]


5,设置fake headers的方法:

1)  设置路径:选中一条包数据,右键-》Protocol Preferences->HyperText Transfer Protocol 2 ->HTTP2 Fake Headers... 

2)  需要设置:  Path( wireshark解析的请求数据包中 post 后面的uri )  & content-type(application/grpc)

相关推荐

  1. websocket压缩和wireshark如何解码tls

    2024-04-04 13:22:03       37 阅读
  2. EVE-NG抓包时wireshark报错Connection abandoned解决方法

    2024-04-04 13:22:03       49 阅读
  3. <span style='color:red;'>wireshark</span>

    wireshark

    2024-04-04 13:22:03      54 阅读
  4. Wireshark

    2024-04-04 13:22:03       49 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-04-04 13:22:03       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-04-04 13:22:03       100 阅读
  3. 在Django里面运行非项目文件

    2024-04-04 13:22:03       82 阅读
  4. Python语言-面向对象

    2024-04-04 13:22:03       91 阅读

热门阅读

  1. PyTorch 常见用法介绍

    2024-04-04 13:22:03       39 阅读
  2. day1 | 数组 part-1 | 704 二分查找、27 移除元素

    2024-04-04 13:22:03       42 阅读
  3. 导入excel内容

    2024-04-04 13:22:03       33 阅读
  4. 73.矩阵置零

    2024-04-04 13:22:03       30 阅读
  5. Vue的双向绑定v-model详细介绍

    2024-04-04 13:22:03       38 阅读
  6. 责任链模式详解+代码案例

    2024-04-04 13:22:03       37 阅读
  7. ES6模块与CommonJs模块异同

    2024-04-04 13:22:03       31 阅读