Wireshark mailing list archives
Re: Finding init.lua after build from source
From: Tony Trinh <tony19 () gmail com>
Date: Mon, 1 Apr 2013 11:48:36 -0500
Copy init.lua and console.lua to your home Wireshark directory: UN*X: $HOME/.wireshark/ Windows: %APPDATA%\Wireshark\ Lua scripts that are in the plugins directory are automatically loaded. You should remove the "dofile" call from init.lua. Alternatively, you can explicitly load your Lua script with "-X lua_script": $ tshark -Xlua_script:/path/to/foo.lua -r fuzz.pcap On Mon, Apr 1, 2013 at 8:33 AM, Christopher Merck <cmerck () crestron com>wrote:
Hi Tony, Thanks, with your help I generated an init.lua file. I also added dofile('plugins/mydissector.lua') to the end, to run my dissector. However, now I'm not sure that it is getting loaded. I placed it in the build directory, and then I run WIRESHARK_RUN_FROM_BUILD_DIRECTORY=1 ./wireshark, but my dissector doesn't seem to be loaded. I also try inserting blatant syntax errors into init.lua but no error is generated. I have also tried installing and placing init.lua in the "global config dir" (which for me is apparently /usr/local/share/wireshark/), but same (lack of) result. If you could be so kind as to give me another pointer that would be great. Thanks, Chris *From:* wireshark-users-bounces () wireshark org [mailto: wireshark-users-bounces () wireshark org] *On Behalf Of *Tony Trinh *Sent:* Saturday 30 March 2013 22:25 *To:* Community support list for Wireshark *Subject:* Re: [Wireshark-users] Finding init.lua after build from source The script takes two parameters: make-init-lua.pl $SRC $TEMPLATE where: $SRC is the root of the wireshark source directory, and $TEMPLATE is the path to template-init.lua (in the same directory as make-init-lua.pl). The result is printed to stdout, so you could redirect it to a file. ~/src/wireshark/epan/wslua $ ./make-init-lua.pl ../.. template-init.lua > init.lua This e-mail message and all attachments transmitted with it may contain legally privileged and confidential information intended solely for the use of the addressee. If you are not the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. ___________________________________________________________________________ Sent via: Wireshark-users mailing list <wireshark-users () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-users Unsubscribe: https://wireshark.org/mailman/options/wireshark-users mailto:wireshark-users-request () wireshark org ?subject=unsubscribe
___________________________________________________________________________ Sent via: Wireshark-users mailing list <wireshark-users () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-users Unsubscribe: https://wireshark.org/mailman/options/wireshark-users mailto:wireshark-users-request () wireshark org?subject=unsubscribe
Current thread:
- Re: Finding init.lua after build from source Christopher Merck (Apr 01)
- Re: Finding init.lua after build from source Tony Trinh (Apr 01)
- Re: Finding init.lua after build from source Christopher Merck (Apr 01)
- Re: Finding init.lua after build from source Tony Trinh (Apr 01)