documentation/modules/auxiliary/scanner/db2/discovery.md
This module simply queries the DB2 discovery service for information. The discovery service is integrated with the Configuration Assistant and the DB2® administration server. Using the discovery method, catalog information for a remote server can be automatically generated in the local database and node directory.
use auxiliary/scanner/db2/discoveryset RHOSTS [target address range/cidr]set THREADS [number of threads]runmsf auxiliary(scanner/db2/discovery) > set RHOSTS 192.168.1.25
msf auxiliary(scanner/db2/discovery) > run
[+] Host 192.168.1.25 node name is SERVER02 with a product id of SQL09072
[*] Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
msf auxiliary(scanner/db2/discovery) >
SQL9072, while DB2 7.02.9 outputs the product ID SQL7029.