Skip to content

Instantly share code, notes, and snippets.

@rsvargas
Last active February 21, 2025 14:07
Show Gist options
  • Save rsvargas/34d9d045a50f784425d111cc571245f9 to your computer and use it in GitHub Desktop.
Save rsvargas/34d9d045a50f784425d111cc571245f9 to your computer and use it in GitHub Desktop.
A small script to set the dissector to RTP to an entire port range
-- Sets the dissector RTP to the specified port range in Wireshark
-- Effectively equivalent to set "Decode as..." RTP for all ports in range
--
-- I apply it like this:
-- Menu "Tools" -> "Lua console"
-- paste the code and click "Evaluate", then click "Close"
-- the capture will reload and all the UDP port range will be decoded as RTP.
local udp_port = DissectorTable.get("udp.port")
local rtp = Dissector.get("rtp")
udp_port:add("30000-60000", rtp)
reload_lua_plugins()
print("Done")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment