VMware ESX/GSX Server detectio
Source | Link |
---|---|
vmware | www.vmware.com/ |
# SPDX-FileCopyrightText: 2006 David Maciejak
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.20301");
script_version("2023-08-01T13:29:10+0000");
script_tag(name:"last_modification", value:"2023-08-01 13:29:10 +0000 (Tue, 01 Aug 2023)");
script_tag(name:"creation_date", value:"2006-03-26 17:55:15 +0200 (Sun, 26 Mar 2006)");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:N/A:N");
script_tag(name:"cvss_base", value:"0.0");
script_name("VMware ESX/GSX Server detection");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2006 David Maciejak");
script_family("Service detection");
script_dependencies("find_service.nasl");
script_require_ports("Services/vmware_auth", 902);
script_xref(name:"URL", value:"http://www.vmware.com/");
script_tag(name:"summary", value:"The remote host appears to be running VMware ESX or GSX Server.
Description :
According to its banner, the remote host appears to be running a VMWare server authentication daemon, which likely indicates the remote host is running VMware ESX or GSX Server.");
script_tag(name:"qod_type", value:"remote_banner");
exit(0);
}
include("host_details.inc");
include("port_service_func.inc");
port = service_get_port( default:902, proto:"vmware_auth" );
soc = open_sock_tcp( port );
if( soc ) {
send( socket: soc, data: "TEST\r\n\r\n" );
buf = recv( socket:soc, length:64 );
close( soc );
#220 VMware Authentication Daemon Version 1.00
#220 VMware Authentication Daemon Version 1.10: SSL Required
if( "VMware Authentication Daemon Version" >< buf ) {
version = "unknown";
vers = eregmatch( string:buf, pattern:"VMware Authentication Daemon Version ([0-9.]+)" );
if( vers[1] ) {
version = vers[1];
report = "A VMware Authentication Daemon in Version: " + version + " is running on this port";
}
set_kb_item( name:"vmware_auth/" + port + "/version", value:version );
set_kb_item( name:"vmware_auth/installed", value:TRUE );
service_register( port:port, proto:"vmware_auth", message:report );
log_message( port:port, data:report );
}
}
exit( 0 );
Transform Your Security Services
Elevate your offerings with Vulners' advanced Vulnerability Intelligence. Contact us for a demo and discover the difference comprehensive, actionable intelligence can make in your security strategy.
Book a live demo