Lucene search
+L

VMware ESX / ESXi Detection (SNMP)

🗓️ 14 Feb 2012 00:00:00Reported by Copyright (C) 2012 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 13 Views

VMware ESX / ESXi Detection (SNMP) script for identifying VMware ESX / ESXi via SNM

Refs
Code
SourceLink
vmwarewww.vmware.com/
# SPDX-FileCopyrightText: 2012 Greenbone AG
# 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.103417");
  script_version("2023-08-10T05:05:53+0000");
  script_tag(name:"last_modification", value:"2023-08-10 05:05:53 +0000 (Thu, 10 Aug 2023)");
  script_tag(name:"creation_date", value:"2012-02-14 10:38:50 +0100 (Tue, 14 Feb 2012)");
  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 / ESXi Detection (SNMP)");
  script_category(ACT_GATHER_INFO);
  script_family("Product detection");
  script_copyright("Copyright (C) 2012 Greenbone AG");
  script_dependencies("gb_snmp_info_collect.nasl");
  script_require_udp_ports("Services/udp/snmp", 161);
  script_mandatory_keys("SNMP/sysdescr/available");

  script_xref(name:"URL", value:"http://www.vmware.com/");

  script_tag(name:"summary", value:"SNMP based detection of VMware ESX / ESXi.");

  script_tag(name:"qod_type", value:"remote_banner");

  exit(0);
}

include("cpe.inc");
include("host_details.inc");
include("os_func.inc");
include("snmp_func.inc");

SCRIPT_DESC = "VMware ESX / ESXi Detection (SNMP)";

port    = snmp_get_port(default:161);
sysdesc = snmp_get_sysdescr(port:port);
if(!sysdesc || "vmware" >!< tolower(sysdesc))
  exit(0);

version = eregmatch(pattern:"(VMware ESX ?(Server)?) ([0-9.]+)", string:sysdesc);

if(!isnull(version[1]) && !isnull(version[3])) {

  typ = version[1];
  vers = version[3];

  if(vers > 0) {
    cpe = build_cpe(value:vers, exp:"^([0-9.]+)", base:"cpe:/o:vmware:esx:"); # even if it is an "ESXi", there is just "ESX" in sysDescr.
    set_kb_item(name:"VMware/GSX-Server/snmp/version", value:vers);
  } else {
    cpe = "cpe:/o:vmware:esx";
    set_kb_item(name:"VMware/GSX-Server/snmp/version", value:"unknown");
    vers = "unknown";
  }

  os_register_and_report(os:"VMware ESX / ESXi", cpe:cpe, banner_type:"SNMP sysDescr OID", banner:sysdesc, port:port, proto:"udp", desc:SCRIPT_DESC, runs_key:"unixoide");

  set_kb_item(name:"VMware/ESX/installed", value:TRUE);

  if("build" >< sysdesc) {
    build = eregmatch(pattern:" build-([0-9]+)", string:sysdesc);
    if(!isnull(build[1])) {
      replace_kb_item(name:"VMware/ESX/build", value:build[1]);
    }
  }

  result_txt = 'Detected ' + typ + ' Version: ';
  result_txt += vers;
  result_txt += '\nCPE: ' + cpe;
  result_txt += '\n\nConcluded from remote snmp sysDescr:\n';
  result_txt += sysdesc;
  result_txt += '\n';

  log_message(port:port, data:result_txt, proto:"udp");
}

exit(0);

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

10 Aug 2023 00:00Current
7.1High risk
Vulners AI Score7.1
13