How can I add a custom protocol analyzer to wireshark?

后端 未结 3 661
太阳男子
太阳男子 2021-01-30 13:33

I have a custom protocol that I\'m looking at in wireshark. I thought it\'d be useful if wireshark could disect it for me so that I don\'t have to decode the hex. Although I\'m

3条回答
  •  情书的邮戳
    2021-01-30 13:49

    You can write dissectors using Wireshark's LUA API. That way you can write a quick-and dirty dissector without downloading Wireshark's code, or even a compiler. A very simple, yet powerful example is shown in the documentation. Such a LUA dissector is perfectly fine for debugging use, and even distribution with your project.

    If you intend to commit your dissector to the official Wireshark repository, you should of course implement it in C for performance and integration reasons.

    To use your dissector, create a file my_dissector.lua and invoke Wireshark like this: wireshark -X lua_script:my_dissector.lua

提交回复
热议问题