Hi, what is the <personal config dir> [1] on Windows 7, 64-bit? I've enabled lua by editing C:\Program Files\Wireshark\init.lua and setting disable_lua = false, and I created test.lua with the contents of
http://www.wireshark.org/docs/wsug_html_chunked/wslua_tap_example.html. However, I can't figure out how to get this to load. I've tried all of the following:
- Put the above script into %APPDATA%\init.lua
- Put the above script into %APPDATA%\Wireshark\init.lua
- set WIRESHARK_LUA_INIT="c:\test\test.lua" and then execute Wireshark.exe
- C:\Program Files\Wireshark\wireshark.exe -X lua_script:test.lua (with test.lua being in the current directory)
None of these attempts show a new menu item under Tools after I restart Wireshark and load a capture.
I'm using Wireshark 1.2.8 and Help -> About shows "with Lua 5.1."
If I create a test.lua with the contents print("hello world!") and run tshark and it works fine:
C:\Program Files\Wireshark>tshark -X lua_script:test.lua
hello world!
Capturing on Microsoft
0.000000 9.49.203.197 ->...
Thanks!