2017-02-22 75 views
1

我的目標是擁有一個可以解析基於protobuf(UDP)的協議的插件/解析器。
我在網上找到一個自動生成的Wireshark /供協議緩衝區中的消息抓包剝離插件:https://code.google.com/archive/p/protobuf-wireshark/
當我按照ReadMe文件我跳過了「第1步:從源代碼安裝Wireshark的」,因爲我安裝了它(1.12版本。 3)。如何在Wireshark中解析protobuf包

步驟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:\ Program Files(x86)\ Wireshark
wireshark_install_dir:C:\程序文件(x86)\ Wireshark的
wireshark_version:1.12.3

4步:運行make_wireshark_plugin.py - 對於步驟i下載和安裝的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步:創建原配置文件 - 所有的原配置文件需要在/ usr /共享/ Wireshark的/ protobuf的或 $ HOME/.wireshark/protobuf的。

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?

+0

也許,'libprotobuf'是包:'$容易名單libprotobuf *' –

+0

假設libprotobuf是一個包。我在哪裏得到它?我如何安裝它? –

+0

是的,我是一個Windows用戶 –

回答

3

你可以用這個來代替,不需要編譯任何東西:https://github.com/128technology/protobuf_dissector

+0

我的協議結構是:(1)4字節(2)4字節(3)protobuf。我怎樣才能使你提供的插件與我的structre一起工作?我可以先填充8個字節然後使用插件? (我不在乎8字節,它是遺留的...) –

+0

請參考最後的評論@hadriel –

+0

是的,你應該可以跳過前8個字節 - protobuf解析器假定給予它的TVB(from開始)是一個protobuf消息,所以只要你跳過這8個字節,你應該是好的。 – hadriel