Nmap broadcast-sybase-asa-discover NSE Script


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

Script Description


The broadcast-sybase-asa-discover.nse script discovers Sybase Anywhere servers on the LAN by sending broadcast discovery messages.

Broadcast-sybase-asa-discover NSE Script Arguments


The broadcast-sybase-asa-discover.nse script does not have any arguments.

Broadcast-sybase-asa-discover NSE Script Example Usage


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

nmap --script broadcast-sybase-asa-discover

Broadcast-sybase-asa-discover NSE Script Example Output


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

Pre-scan script results:
| broadcast-sybase-asa-discover:
|   ip=192.168.0.1; name=mysqlanywhere1; port=2638
|_  ip=192.168.0.2; name=mysqlanywhere2; port=49152

Broadcast-sybase-asa-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-sybase-asa-discover.nse script:

Visit Nmap NSE Library for more scripts.

The broadcast-sybase-asa-discover.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 send broadcast packet


Here is a relevant code snippet related to the "Failed to send broadcast packet" error message:

127:	    -- send 2 packets just in case
128:	    for i=1, 2 do
129:	      local ping_req = Ping.Request:new()
130:	      local status, err = socket:sendto(self.host, self.port, tostring(ping_req))
131:	      if ( not(status) ) then
132:	        return false, "Failed to send broadcast packet"
133:	      end
134:	    end
135:	
136:	    local stime = os.time()
137:	    local instances = {}

Failed to get socket information


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

143:	        local response = Ping.Response:new(data)
144:	        if ( response ) then
145:	          local status, _, _, rhost, _ = socket:get_info()
146:	          if ( not(status) ) then
147:	            socket:close()
148:	            return false, "Failed to get socket information"
149:	          end
150:	          response.dbinstance.ip = rhost
151:	          -- avoid duplicates
152:	          instances[response.dbinstance.name] = response.dbinstance
153:	        end

Version


This page has been created based on Nmap version 7.92.

Go back to menu.