For a private protocol over TCP, I am writing a Lua-based dissector. The dissector is very much in the spirit of the first part of http://wiki.wireshark.org/Lua/Dissectors. Within Wireshark, this dissector works fine, but if I use
to simply dump the whole TCP PDU onto stdout, I don't get anything. But, of course, if I remove the asked 23 Oct '12, 06:28 Salonbolschewik edited 23 Oct '12, 18:08 helloworld |
One Answer:
O.K. that probably means, that you loaded your script in init.lua, otherwise you would not see the output of your script. So, if you load the script a second time with -X, that will probably lead to a problem with duplicate declarations and you might see an error message in the console window where you started tshark. Suggestion: Remove your script from init.lua when you run it with -X. Regards answered 29 Oct '12, 04:30 Kurt Knochner ♦ |
It could be the code in
foo.lua
, the command you're entering, or simply just a bug. Too difficult to tell without more details. Include your code in the question; and the complete command line (plus its output). What OS are you using?