Nmap db2-das-info NSE Script


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

Script Description


The db2-das-info.nse script connects to the IBM DB2 Administration Server (DAS) on TCP or UDP port 523 and exports the server profile. No authentication is required for this request.

The script will also set the port product and version if a version scan is requested.

Db2-das-info NSE Script Arguments


The db2-das-info.nse script does not have any arguments.

Db2-das-info NSE Script Example Usage


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

nmap --script=db2-das-info <target>

Db2-das-info NSE Script Example Output


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

PORT    STATE SERVICE VERSION
523/tcp open  ibm-db2 IBM DB2 Database Server 9.07.0
| db2-das-info: DB2 Administration Server Settings
| ;DB2 Server Database Access Profile
| ;Use BINARY file transfer
| ;Comment lines start with a ";"
| ;Other lines must be one of the following two types:
| ;Type A: [section_name]
| ;Type B: keyword=value
|
| [File_Description]
| Application=DB2/LINUX 9.7.0
| Platform=18
| File_Content=DB2 Server Definitions
| File_Type=CommonServer
| File_Format_Version=1.0
| DB2System=MYBIGDATABASESERVER
| ServerType=DB2LINUX
|
| [adminst>dasusr1]
| NodeType=1
| DB2Comm=TCPIP
| Authentication=SERVER
| HostName=MYBIGDATABASESERVER
| PortNumber=523
| IpAddress=127.0.1.1
|
| [inst>db2inst1]
| NodeType=1
| DB2Comm=TCPIP
| Authentication=SERVER
| HostName=MYBIGDATABASESERVER
| ServiceName=db2c_db2inst1
| PortNumber=50000
| IpAddress=127.0.1.1
| QuietMode=No
| TMDatabase=1ST_CONN
|
| [db>db2inst1:TOOLSDB]
| DBAlias=TOOLSDB
| DBName=TOOLSDB
| Drive=/home/db2inst1
| Dir_entry_type=INDIRECT
|_Authentication=NOTSPEC

Db2-das-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.

Authors


  • Patrik Karlsson
  • Tom Sellers

References


See Also


Visit Nmap NSE Library for more scripts.

The db2-das-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.

ERROR communicating with DB2 server


Here is a relevant code snippet related to the "ERROR communicating with DB2 server" error message:

169:	
170:	  local DATA_LENGTH_OFFSET = 38
171:	  local ENDIANESS_OFFSET = 23
172:	
173:	  local catch = function()
174:	    stdnse.debug1("ERROR communicating with DB2 server")
175:	    socket:close()
176:	  end
177:	
178:	  local try = nmap.new_try(catch)
179:	  packet.header = {}

ERROR communicating with DB2 server


Here is a relevant code snippet related to the "ERROR communicating with DB2 server" error message:

232:	-- @param packet table as returned from <code>create_das_packet</code>
233:	--
234:	function send_db2_packet( socket, packet )
235:	
236:	  local catch = function()
237:	    stdnse.debug1("ERROR communicating with DB2 server")
238:	    socket:close()
239:	  end
240:	
241:	  local try = nmap.new_try(catch)
242:	

ERROR communicating with


Here is a relevant code snippet related to the "ERROR communicating with " error message:

286:	  -- set a reasonable timeout value
287:	  socket:set_timeout(10000)
288:	
289:	  -- do some exception handling / cleanup
290:	  local catch = function()
291:	    stdnse.debug1("ERROR communicating with " .. host.ip .. " on port " .. port.number)
292:	    socket:close()
293:	  end
294:	
295:	  local try = nmap.new_try(catch)
296:	

Version


This page has been created based on Nmap version 7.92.

Go back to menu.