Wiresh中protobuf包的解析

2024-05-03 01:07:16 发布

您现在位置:Python中文网/ 问答频道 /正文

我的目标是拥有一个插件/剖析器,它可以解析基于protobuf(UDP)的协议。
我在网上发现了一个自动生成的Wireshark/Ethereal解析插件,用于协议缓冲区消息:https://code.google.com/archive/p/protobuf-wireshark/
当我执行ReadMe文件时,我跳过了“步骤1:从源安装Wireshark”,因为我已经安装了它(版本1.12.3)。

步骤2:准备协议缓冲区-

this step i dont understend, how do i install libprotobuf and where?

步骤3:更新wireshark配置文件-

I'm not sure what is "wireshark_src_dir"

我创建了一个wireshark.conf文件:
wireshark_src_dir:C:\程序文件(x86)\ wireshark
wireshark_install_dir:C:\程序文件(x86)\ wireshark
wireshark_版本:1.12.3

步骤4:运行make_wireshark_plugin.py-对于该步骤,我下载并安装了python-3.6.0-amd64.exe。

When i run this i get an error that: Traceback (most recent call last): File "C:\ProtoBuff\protobuff\make_wireshark_plugin.py", line 91, in f=open("configure.in","r") FileNotFoundError: [Errno 2] No such file or directory: 'configure.in'.

This file realy doesn't exists in the package i downloaded from github. Where do i get this file? do i need to create such? What is this make_wireshark_plugin.py generates?

步骤5:创建proto配置文件-所有proto配置文件都需要在/usr/share/wireshark/protobuf或 $HOME/.wireshark/协议。

i dont have a share folder and protobuf folder in wireshark installation path. Can i simply put the proto configuration files in the plugins folder?


Tags: 文件theinpy协议make配置文件dir