Nmap rtsp-methods NSE Script


This page contains detailed information about how to use the rtsp-methods NSE script. For list of all NSE scripts, visit the Nmap NSE Library.

Select:
Overview
Error Messages

Script Overview


Script source code: https://github.com/nmap/nmap/tree/master/scripts/rtsp-methods.nse
Script categories: default, safe
Target service / protocol: rtsp, tcp
Target network port(s): 554
List of CVEs: -

Script Description


The rtsp-methods.nse script determines which methods are supported by the RTSP (real time streaming protocol) server.

Rtsp-methods NSE Script Arguments


This is a full list of arguments supported by the rtsp-methods.nse script:

rtsp-methods.path

The path to query, defaults to "*" which queries the server itself, rather than a specific url.

- - -
To use this script argument, add it to Nmap command line like in this example:

nmap --script=rtsp-methods --script-args rtsp-methods.path=value <target>

Rtsp-methods NSE Script Example Usage


Here's an example of how to use the rtsp-methods.nse script:

nmap -p 554 --script rtsp-methods <ip>

Rtsp-methods NSE Script Example Output


Here's a sample output from the rtsp-methods.nse script:

PORT    STATE SERVICE
554/tcp open  rtsp
| rtsp-methods:
|_  DESCRIBE, SETUP, PLAY, TEARDOWN, OPTIONS

Rtsp-methods NSE Script Example XML Output


Here's a sample XML output from the rtsp-methods.nse script produced by providing the -oX <file> Nmap option:

 <elem>DESCRIBE</elem>
 <elem>SETUP</elem>
 <elem>PLAY</elem>
 <elem>TEARDOWN</elem>
 <elem>OPTIONS</elem>

Author


  • Patrik Karlsson

References


See Also


Related NSE scripts to the rtsp-methods.nse script:

Visit Nmap NSE Library for more scripts.

The rtsp-methods.nse script may fail with the following error messages. Check for the possible causes by using the code snippets highlighted below found in the script source code. This can often times help in identifying the root cause of the problem.

ERROR: Failed to connect to RTSP server


Here is a relevant code snippet related to the "ERROR: Failed to connect to RTSP server" error message:

42:	action = function(host, port)
43:	  local path = stdnse.get_script_args('rtsp-methods.path') or '*'
44:	  local helper = rtsp.Helper:new(host, port)
45:	  local status = helper:connect()
46:	  if ( not(status) ) then
47:	    stdnse.debug2("ERROR: Failed to connect to RTSP server")
48:	    return
49:	  end
50:	
51:	  local response
52:	  status, response = helper:options(path)

Version


This page has been created based on Nmap version 7.92.

Go back to menu.