diff --git a/scripts/ovs-agent-version.nse b/scripts/ovs-agent-version.nse index 78da5b5e6..c3b1c998a 100644 --- a/scripts/ovs-agent-version.nse +++ b/scripts/ovs-agent-version.nse @@ -4,10 +4,10 @@ local shortport = require "shortport" local string = require "string" description = [[ -Detects the version of an Oracle OVSAgentServer by fingerprinting +Detects the version of an Oracle Virtual Server Agent by fingerprinting responses to an HTTP GET request and an XML-RPC method call. -Version 2.2 of OVSAgentServer returns a distinctive string in response to an +Version 2.2 of Virtual Server Agent returns a distinctive string in response to an HTTP GET request. However versions 3.0 and 3.0.1 return a generic response that looks like any other BaseHTTP/SimpleXMLRPCServer. Versions 2.2 and 3.0 return a distinctive error message in response to a system.listMethods @@ -15,7 +15,7 @@ XML-RPC call, which however does not distinguish the two versions. Version 3.0.1 returns a response to system.listMethods that is different from that of both version 2.2 and 3.0. Therefore we use this strategy: (1.) Send a GET request. If the version 2.2 string is returned, return "2.2". (2.) Send a -system.listMethods method call. If an OVSAgentServer error is +system.listMethods method call. If an error is returned, return "3.0" or "3.0.1", depending on the specific format of the error. ]] @@ -25,7 +25,7 @@ categories = {"version"} --- -- @output -- PORT STATE SERVICE REASON VERSION --- 8899/tcp open ssl/ovs-agent syn-ack Oracle OVSAgentServer 3.0 (BaseHTTP 0.3; Python SimpleXMLRPCServer; Python 2.5.2) +-- 8899/tcp open ssl/ovs-agent syn-ack Oracle Virtual Server Agent 3.0 (BaseHTTP 0.3; Python SimpleXMLRPCServer; Python 2.5.2) author = "David Fifield" license = "Same as Nmap--See http://nmap.org/book/man-legal.html" @@ -35,7 +35,7 @@ portrule = shortport.port_or_service({8899}) local function set_port_version(host, port, version, server) port.version.name = "ovs-agent" - port.version.product = "Oracle OVSAgentServer" + port.version.product = "Oracle Virtual Server Agent" port.version.version = version if server then local basehttp, python = string.match(server, "^BaseHTTP/([%d.]+) Python/([%d.]+)")