Nmap sstp-discover NSE Script


This page contains detailed information about how to use the sstp-discover 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/sstp-discover.nse
Script categories: discovery, default, safe
Target service / protocol: ssl
Target network port(s): 261, 271, 324, 443, 465, 563, 585, 636, 853, 989, 990, 992, 993, 994, 995, 2221, 2252, 2376, 3269, 3389, 4911, 5061, 5986, 6679, 6697, 8443, 9001, 8883
List of CVEs: -

Script Description


Check if the Secure Socket Tunneling Protocol is supported. This is accomplished by trying to establish the HTTPS layer which is used to carry SSTP traffic as described in:

Current SSTP server implementations:

Sstp-discover NSE Script Arguments


The sstp-discover.nse script does not have any arguments.

Sstp-discover NSE Script Example Usage


Here's an example of how to use the sstp-discover.nse script:

nmap --script=sstp-discover <target>

Sstp-discover NSE Script Example Output


Here's a sample output from the sstp-discover.nse script:

443/tcp open  https
|_sstp-discover: SSTP is supported.

Sstp-discover NSE Script Example XML Output


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

 true

Author


References


See Also


Visit Nmap NSE Library for more scripts.

The sstp-discover.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.

Problem establishing connection: %s


Here is a relevant code snippet related to the "Problem establishing connection: %s" error message:

66:	action = function(host, port)
67:	  local socket, response = comm.tryssl(host,port,
68:	    string.format(request, host.targetname or host.ip),
69:	    { timeout=3000, lines=4 })
70:	  if not socket then
71:	    stdnse.debug1("Problem establishing connection: %s", response)
72:	    return nil
73:	  end
74:	  socket:close()
75:	
76:	  if string.match(response, 'HTTP/1.1 200') then

Version


This page has been created based on Nmap version 7.92.

Go back to menu.