This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Custom Lua dissector issues

0

Issues in loading my lua script tshark -v ==> TShark 1.8.10 OS: Centos 2.6 Steps:

  1. vi hello.lua
  2. add following text: print ("Hello world!!")
  3. save & quit (:wq)
  4. pwd: /tmp/source/lua
  5. tshark -v -Xlua_script:/tmp/source/lua (also tried: tshark -v -X lua_script:/tmp/source/lua)
  6. prints tshark version (1.8.10) & exits. (happens for both root & normal user)
  7. As work around suggested by google, tried to copy hello.lua to personal plugins folder (found from wireshark==> Help ==> Folders ==> personal plugin (/home/build/.wireshark/plugins). I could not find my plugin loaded, checked at wireshark==> Help ==> Plugins.
  8. again more google: checked this command tshark -v | grep Lua capabilities, with SMI 0.4.8, without c-ares, without ADNS, without Lua, without

anyhelp is really appreciated.

asked 22 Mar '16, 10:11

khader's gravatar image

khader
0112
accept rate: 0%

edited 22 Mar '16, 10:22

grahamb's gravatar image

grahamb ♦
19.8k330206


One Answer:

0

Doesn't the output of step 8 give it away:

capabilities, with SMI 0.4.8, without c-ares, without ADNS, without Lua, without

Your, really old, copy of tshark hasn't been compiled with lua support.

answered 22 Mar '16, 10:24

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

Yes, you right!!! But one of my "google" search asked me to overlook at it!! Moreover I installed wireshark couple of days back on my 32 Bit machine. I "THINK" latest version is: TShark 1.8.10. Anywasy tired same steps 1 to 5 on my x64 bit machine. It works AWESOME!!! Again thanks for the hi(n)ts

(22 Mar '16, 11:11) khader
1

If an answer has solved your issue, please accept the answer for the benefit of other users by clicking the checkmark icon next to the answer. Please read the FAQ for more information.

(22 Mar '16, 11:31) grahamb ♦