PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` local rtsp = require "rtsp" local shortport = require "shortport" local stdnse = require "stdnse" description = [[ Determines which methods are supported by the RTSP (real time streaming protocol) server. ]] --- -- @usage -- nmap -p 554 --script rtsp-methods -- -- @output -- PORT STATE SERVICE -- 554/tcp open rtsp -- | rtsp-methods: -- |_ DESCRIBE, SETUP, PLAY, TEARDOWN, OPTIONS -- -- @args rtsp-methods.path the path to query, defaults to "*" which queries -- the server itself, rather than a specific url. -- -- -- Version 0.1 -- Created 23/10/2011 - v0.1 - created by Patrik Karlsson -- author = "Patrik Karlsson" license = "Same as Nmap--See http://nmap.org/book/man-legal.html" categories = {"default", "safe"} portrule = shortport.port_or_service(554, "rtsp", "tcp", "open") action = function(host, port) local path = stdnse.get_script_args('rtsp-methods.path') or '*' local helper = rtsp.Helper:new(host, port) local status = helper:connect() if ( not(status) ) then stdnse.print_debug(2, "ERROR: Failed to connect to RTSP server") return end local response status, response = helper:options(path) helper:close() if ( status ) then return stdnse.format_output(true, response.headers['Public']) end end