Nmap nbd-info NSE Script


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

Script Description


The nbd-info.nse script displays protocol and block device information from NBD servers.

The Network Block Device protocol is used to publish block devices over TCP. This script connects to an NBD server and attempts to pull down a list of exported block devices and their details

For additional information:

Nbd-info NSE Script Arguments


This is a full list of arguments supported by the nbd-info.nse script:

nbd-info.export_names

Either a single name, or a table of names to about which to request information from the server.

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

nmap --script=nbd-info --script-args nbd-info.export_names=value <target>

Nbd-info NSE Script Example Usage


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

nmap -p 10809 --script nbd-info <target>

Nbd-info NSE Script Example Output


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

PORT      STATE SERVICE REASON
10809/tcp open  nbd     syn-ack
| nbd-info:
|   Protocol:
|     Negotiation: fixed newstyle
|     SSL/TLS Wrapped: false
|   Exported Block Devices:
|     foo:
|       Size: 1048576 bytes
|       Transmission Flags:
|         SEND_FLUSH
|         READ_ONLY
|         SEND_FUA
|     bar:
|       Size: 1048576 bytes
|       Transmission Flags:
|         READ_ONLY
|_        ROTATIONAL

Nbd-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


References


See Also


Visit Nmap NSE Library for more scripts.

The nbd-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 send option request: %s


Here is a relevant code snippet related to the "Failed to send option request: %s" error message:

54:	    return
55:	  end
56:	
57:	  local status, err = comm:send(req)
58:	  if not status then
59:	    stdnse.debug1("Failed to send option request: %s", err)
60:	    return nil
61:	  end
62:	
63:	  while true do
64:	    local rep = comm:receive_opt_rep()

Version


This page has been created based on Nmap version 7.92.

Go back to menu.