Last active
February 21, 2025 14:07
-
-
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
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
-- 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