Last active
November 10, 2021 00:29
-
-
Save cjmakes/2dab5291ba55135fe7375f44253527a3 to your computer and use it in GitHub Desktop.
FOU Lua dissector for wireshark
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Implements FOU packet parsing in wireshark | |
-- Place this file at ~/.local/lib/wireshark/plugins/fou.lua | |
-- FOU: https://lwn.net/Articles/614348/ | |
-- by conjones | |
fou_protocol = Proto("fou","Foo Over UDP Protocol") | |
function fou_protocol.dissector(buffer, pinfo, tree) | |
pinfo.cols.protocol = "FOU" | |
Dissector.get("ip"):call(buffer():tvb(), pinfo, tree) | |
end | |
-- register handler | |
udp_table = DissectorTable.get("udp.port") | |
-- register our protocol to handle udp port 7777 | |
udp_table:add(7777,fou_protocol) | |
udp_table:add(7778,fou_protocol) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for this!