Ask Your Question
0

Decode as LUA - how do I do that?

asked 2017-11-21 21:26:48 +0000

Stevod gravatar image

updated 2017-11-22 02:20:17 +0000

Guy Harris gravatar image

I am using a third party LUA dissector (which I know works, as I have previously used the same file successfully with Wireshark a few months ago).

Unfortunately, this time around the decode does not happen, and the TCP payload is just shown as the raw hex data, instead of parsed and decoded values as provided by the dissector file.

I seem to remember that last time round, I set Decode As... to use the LUA dissector for the specific port, but this time round the LUA dissector does not appear in the "Decode As" list of protocols, and I can see no way of adding it, so I can't set it for the specific port I need to decode.

I'd upload a screenshot but apparently I need 60 points to do so. Both the protocol (MAVLINK_PROTO) and the LUA_Dissector appear in the Internals>Supported Protocols, and it's enabled under Enabled Protocols, and I've checked that a LUA file runs using -X lua_script:hello.lua, as suggested in the wireshark docs.

Can anybody suggest what else I need to do?

I'm running wireshark-GTK 2.2.6 on Ubuntu 16.04.

Thanks, Stevod

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-11-22 20:57:09 +0000

Stevod gravatar image

updated 2017-11-22 20:59:04 +0000

Problem resolved: 1. There's a bug in the LUA script that causes it to fail, which I have fixed. 2. The script is written to sniff for traffic over UDP, whereas I am using it to sniff over TCP. Hence I changed the script to reflect that.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-11-21 21:26:48 +0000

Seen: 111 times

Last updated: Nov 22