Nmap informix-tables NSE Script


This page contains detailed information about how to use the informix-tables 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/informix-tables.nse
Script categories: intrusive, auth
Target service / protocol: informix, tcp
Target network port(s): 1526, 9088, 9090, 9092
List of CVEs: -

Script Description


The informix-tables.nse script retrieves a list of tables and column definitions for each database on an Informix server.

Informix-tables NSE Script Arguments


This is a full list of arguments supported by the informix-tables.nse script:

informix-tables.password

The password used for authentication

informix-tables.username

The username used for authentication

- - -
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=informix-tables --script-args informix-tables.password=value,informix-tables.username=value <target>

Informix-tables NSE Script Example Usage


Here's an example of how to use the informix-tables.nse script:

nmap -p 9088 <host> --script informix-tables --script-args informix-tables.username=informix,informix-tables.password=informix

Informix-tables NSE Script Example Output


Here's a sample output from the informix-tables.nse script:

PORT     STATE SERVICE REASON
9088/tcp open  unknown syn-ack
| informix-tables:
|   Information
|     User: informix
|     Database: stores_demo
|   Results
|     table                column               rows
|     call_type            call_code            5
|     call_type            code_descr           5
|     catalog              cat_advert           74
|     catalog              cat_descr            74
|     catalog              cat_picture          74
|     catalog              catalog_num          74
|     catalog              manu_code            74
|     catalog              stock_num            74
|     classes              class                4
|     classes              classid              4
|     classes              subject              4
|     cust_calls          call_code           7
|     cust_calls          call_descr          7
|     cust_calls          call_dtime          7
|     cust_calls          customer_num        7
|     cust_calls          res_descr           7
|     cust_calls          res_dtime           7
|     cust_calls          user_id             7
|     warehouses          warehouse_id        4
|     warehouses          warehouse_name      4
|_    warehouses          warehouse_spec      4

Informix-tables 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 informix-tables.nse script:

Visit Nmap NSE Library for more scripts.

The informix-tables.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.

No credentials specified (see informix-table.username and informix-table.password)


Here is a relevant code snippet related to the "No credentials specified (see informix-table.username and informix-table.password)" error message:

77:	  if ( not(user) ) then
78:	    if ( nmap.registry['informix-brute'] and nmap.registry['informix-brute'][1]["username"] ) then
79:	      user = nmap.registry['informix-brute'][1]["username"]
80:	      pass = nmap.registry['informix-brute'][1]["password"]
81:	    else
82:	      return fail("No credentials specified (see informix-table.username and informix-table.password)")
83:	    end
84:	  end
85:	
86:	  helper = informix.Helper:new( host, port )
87:	

Failed to retrieve a list of databases


Here is a relevant code snippet related to the "Failed to retrieve a list of databases" error message:

94:	  if ( not(status) ) then return stdnse.format_output(status, data) end
95:	
96:	  local databases
97:	  status, databases = helper:GetDatabases()
98:	  if ( not(status) ) then
99:	    return fail("Failed to retrieve a list of databases")
100:	  end
101:	
102:	  for _, db in ipairs(databases) do
103:	    if ( not( excluded_dbs[db] ) ) then
104:	      status, data = helper:OpenDatabase(db)

Version


This page has been created based on Nmap version 7.92.

Go back to menu.