1 | initial version |
Assuming I understand your question, this should not be too difficult. Here you go:
In your plugin Lua file (which you should make sure Wireshark loads), start by adding a function which does the job your plugin should do:
local function runPlugin()
--here your plugin does it's thing
end
Then you register the runPlugin function to be launched from the wireshark toolbar:
register_menu("Lua/Launch my plugin", launhing_function, MENU_TOOLS_UNSORTED);
Now when you open Wireshark and click on Tools > Lua > Launch my plugin the runPlugin() function is called.
Hope this helps!
2 | No.2 Revision |
Assuming I understand your question, this should not be too difficult. Here you go:
In your plugin Lua file (which you should make sure Wireshark loads), start by adding a function which does the job your plugin should do:
local function runPlugin()
--here your plugin does it's its thing
end
Then you register the runPlugin function to be launched from the wireshark Wireshark toolbar:
register_menu("Lua/Launch my plugin", launhing_function, MENU_TOOLS_UNSORTED);
Now when you open Wireshark and click on Tools > Lua > Launch my plugin the runPlugin() function is called.
Hope this helps!