Nmap broadcast-db2-discover NSE Script


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

Script Overview


Script source code: https://github.com/nmap/nmap/tree/master/scripts/broadcast-db2-discover.nse
Script categories: broadcast, safe
Target service / protocol: -
Target network port(s): -
List of CVEs: -

Script Description


The broadcast-db2-discover.nse script attempts to discover DB2 servers on the network by sending a broadcast request to port 523/udp.

Broadcast-db2-discover NSE Script Arguments


This is a full list of arguments supported by the broadcast-db2-discover.nse script:

max-newtargets

Sets the number of the maximum allowed new targets. If set to 0 or less then there is no limit. The default value is 0.

newtargets

If specified, lets NSE scripts add new targets.

- - -
To use these script arguments, add them to the Nmap command line using the --script-args arg1=value,[arg2=value,..] syntax. For example:

nmap --script=broadcast-db2-discover --script-args max-newtargets=value,newtargets=value <target>

Broadcast-db2-discover NSE Script Example Usage


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

nmap --script db2-discover

Broadcast-db2-discover NSE Script Example Output


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

Pre-scan script results:
| broadcast-db2-discover:
|   10.0.200.132 (UBU804-DB2E) - IBM DB2 v9.07.0
|_  10.0.200.119 (EDUSRV011) - IBM DB2 v9.07.0

Broadcast-db2-discover 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


Related NSE scripts to the broadcast-db2-discover.nse script:

Visit Nmap NSE Library for more scripts.

Version


This page has been created based on Nmap version 7.92.