Nmap versant-info NSE Script


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

Script Description


The versant-info.nse script extracts information, including file paths, version and database names from a Versant object database.

Versant-info NSE Script Arguments


The versant-info.nse script does not have any arguments.

Versant-info NSE Script Example Usage


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

nmap -p 5019 <ip> --script versant-info

Versant-info NSE Script Example Output


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

PORT     STATE SERVICE REASON
5019/tcp open  versant syn-ack
| versant-info:
|   Hostname: WIN-S6HA7RJFAAR
|   Root path: C:\Versant\8
|   Database path: C:\Versant\db
|   Library path: C:\Versant\8
|   Version: 8.0.2
|   Databases
|     FirstDB@WIN-S6HA7RJFAAR:5019
|       Created: Sat Mar 03 12:00:02 2012
|       Owner: Administrator
|       Version: 8.0.2
|     SecondDB@WIN-S6HA7RJFAAR:5019
|       Created: Sat Mar 03 03:44:10 2012
|       Owner: Administrator
|       Version: 8.0.2
|     ThirdDB@WIN-S6HA7RJFAAR:5019
|       Created: Sun Mar 04 02:20:21 2012
|       Owner: Administrator
|_      Version: 8.0.2

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


  • Patrik Karlsson

References


See Also


Visit Nmap NSE Library for more scripts.

The versant-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 connect to server


Here is a relevant code snippet related to the "Failed to connect to server" error message:

49:	action = function(host, port)
50:	
51:	  local v = versant.Versant:new(host, port)
52:	  local status = v:connect()
53:	  if ( not(status) ) then
54:	    return fail("Failed to connect to server")
55:	  end
56:	
57:	  local status, newport = v:getObePort()
58:	  if ( not(status) ) then
59:	    return fail("Failed to retrieve OBE port")

Failed to retrieve OBE port


Here is a relevant code snippet related to the "Failed to retrieve OBE port" error message:

54:	    return fail("Failed to connect to server")
55:	  end
56:	
57:	  local status, newport = v:getObePort()
58:	  if ( not(status) ) then
59:	    return fail("Failed to retrieve OBE port")
60:	  end
61:	  v:close()
62:	
63:	  v = versant.Versant.OBE:new(host, newport)
64:	  status = v:connect()

Failed to connect to server


Here is a relevant code snippet related to the "Failed to connect to server" error message:

61:	  v:close()
62:	
63:	  v = versant.Versant.OBE:new(host, newport)
64:	  status = v:connect()
65:	  if ( not(status) ) then
66:	    return fail("Failed to connect to server")
67:	  end
68:	
69:	  local result
70:	  status, result = v:getVODInfo()
71:	  if ( not(status) ) then

Failed to get VOD information


Here is a relevant code snippet related to the "Failed to get VOD information" error message:

67:	  end
68:	
69:	  local result
70:	  status, result = v:getVODInfo()
71:	  if ( not(status) ) then
72:	    return fail("Failed to get VOD information")
73:	  end
74:	  v:close()
75:	
76:	  local output = {}
77:	

Version


This page has been created based on Nmap version 7.92.

Go back to menu.