I'm trying to setup Wireshark so that I can use the LuaInterface to use some of the classes in the .NET framework. I'm able to get it working running through the Lua command line, but when I try to
I've tried setting the
When I do this, I get the following error:
This is a strange error since the file definitely exists. I’ve installed the Lua package for windows in Has anyone been able to get this working? Any help would be appreciated. I’m using Wireshark 1.4.4 with Lua 5.1.4 I downloaded luaforwindows from here. It’s version 5.1.4-45 Microsoft Windows XP Professional Version 2002 Service Pack 3 asked 25 Aug ‘11, 07:15 SwDevMan81 edited 06 Sep ‘11, 10:04 |
One Answer:
Your Wireshark is old. The current stable release is Wireshark 1.6.1. Wireshark already includes Lua. You don't need to install your own copy of Lua because Wireshark comes with its own Lua interpreter (and will only use its own). However, your Wireshark Lua scripts can still call the libraries installed by LuaForWindows. LuaInterface 1.5.3 is probably incompatible. LuaForWindows v5.1.4-45 ships with LuaInterface 1.5.3, which might be incompatible with your Wireshark installation (exhibited by runtime error R6034 upon loading luanet.dll). This was true for me with Wireshark 1.6.1 on Windows 7. You can get compatible binaries of LuaInterface 2.0.3 from this ticket. Instructions 1) Copy the VS2005 SP1 Redistributables from LuaForWindows to Wireshark's program directory (or you can download the redist package from Microsoft...see ticket): From:
To:
2) Download LuaInterface 2.0.3 ZIP from this ticket, and copy the following from it: From:
To:
From:
To:
3) Restart Wireshark/TShark if already running. 4) OPTIONAL: From Wireshark, open menu Tools > Lua > Evaluate. In the textbox that appears, enter some sample code, and click Evaluate. This should result in something like this: answered 25 Aug '11, 19:41 helloworld edited 25 Aug '11, 20:00 |
+1 @helloworld - Your answer was exactly what I need. Thanks so much for the quick response!
This solution will only work for Wireshark versions up to and including 1.11.2. In Wireshark 1.11.3, Lua was updated from 5.1 to 5.2 and doesn't support backward compatibility. For information on setting up the LuaInterface with Wireshark 1.11.3 and beyond with Lua 5.2, see here