gpt4 book ai didi

wireshark - 编译 Wireshark 数据包解析器

转载 作者:行者123 更新时间:2023-12-02 03:38:03 29 4
gpt4 key购买 nike

我想构建一个自己的 Wireshark 数据包解析器,并按照https://www.wireshark.org/docs/wsdg_html_chunked/ChDissectAdd.html中给出的过程进行操作。 .

但是,我不明白如何编译我的解析器并将 dll 放入插件文件夹中。我遵循了本指南 https://www.sewio.net/open-sniffer/develop/how-to-compile-your-wireshark-dissector/直到第 2 步。但无法理解第 3 步要做什么。

我尝试运行 nmake 但它显示没有这样的 cmd 命令。我正在使用适用于 Windows 的 Wireshark 安装。

如何编译并运行我的解析器?另外,是否有必要从源代码构建 Wireshark 才能运行自定义数据包解析器?

最佳答案

五个步骤为wireshark制作c插件(自定义解析器):

1.编译一次wireshark源码

2. 在“wireshark\plugins\epan\foo”目录中创建一个源文件(例如名为 packet-foo.c )

3.复制另一个插件源文件和配置作为模板并进行编辑

4.重新编译wireshark源码

5.启动wireshark并测试

具体可以查看我的帖子show you how to compile the c language plugin for wireshark 3.1 step by step (windows platform 2019-3-20)

关于wireshark - 编译 Wireshark 数据包解析器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49568418/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com