0
votes

I am trying to develop dissectors for wireshark. Since all my dissectors use the same port number, I plan on adding an extra dissector layer as suggested here. I have proceeded with creating a generic dissector that verifies the type of packet and based upon that, it passes the packet data to the relevant dissectors. I have created different modules for different dissectors which I plan to include in my generic dissector. In my generic dissector I am declaring the module using the require command. module_name = require("module_name"). However, upon doing so, when I run Wireshark, I am getting the following error: Lua: Error during loading: C:\XXXX\generic_dissector.lua:1: module 'module_name' not found.

This is surprising since both my module and my generic dissector are lying in the same directory. Please let me know what could be done in this case.

Thanks

1

1 Answers

0
votes

Is your module file put in the Personal Plugins Folder? You can look up the folder path from

Help -> About Wireshark -> Folders -> Personal Plugins

For OS X

Wireshark -> About Wireshark -> Folders -> Personal Plugins)

If not in that folder, try move your module there and re-run your dissector again.