Nmap isns-info NSE Script


This page contains detailed information about how to use the isns-info 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/isns-info.nse
Script categories: safe, discovery
Target service / protocol: isns
Target network port(s): 3205
List of CVEs: -

Script Description


The isns-info.nse script lists portals and iSCSI nodes registered with the Internet Storage Name Service (iSNS).

Isns-info NSE Script Arguments


The isns-info.nse script does not have any arguments.

Isns-info NSE Script Example Usage


Here's an example of how to use the isns-info.nse script:

nmap -p 3205 <ip> --script isns-info

Isns-info NSE Script Example Output


Here's a sample output from the isns-info.nse script:

PORT     STATE SERVICE
3205/tcp open  unknown
| isns-info:
|   Portal
|     ip             port
|     192.168.0.1    3260/tcp
|     192.168.0.2    3260/tcp
|   iSCSI Nodes
|     node                                              type
|     iqn.2001-04.com.example:storage.disk2.sys1.xyz    Target
|     iqn.2001-05.com.example:storage.disk2.sys1.xyz    Target
|_    iqn.2001-04.a.com.example:storage.disk3.sys2.abc  Target

Isns-info NSE Script Example XML Output


There is no sample XML output for this module. However, by providing the -oX <file> option, Nmap will produce a XML output and save it in the file.xml file.

Author


  • Patrik Karlsson

References


See Also


Visit Nmap NSE Library for more scripts.

The isns-info.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.

Failed to connect to server


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

37:	local function fail(err) return stdnse.format_output(false, err) end
38:	
39:	action = function(host, port)
40:	  local helper = isns.Helper:new(host, port)
41:	  if ( not(helper:connect()) ) then
42:	    return fail("Failed to connect to server")
43:	  end
44:	
45:	  local status, portals = helper:listPortals()
46:	  if ( not(status) ) then
47:	    return

Version


This page has been created based on Nmap version 7.92.

Go back to menu.