# frozen_string_literal: true

##
# This file is part of WhatWeb and may be subject to
# redistribution and commercial restrictions. Please see the WhatWeb
# web site for more information on licensing and terms of use.
# http://www.morningstarsecurity.com/research/whatweb
##

# Version 0.2 Andrew Horton - added aggressive version detection

WhatWeb::Plugin.define "VMware-ESXi-Server" do
  @author = "Brendan Coles <bcoles@gmail.com>" # 2011-05-28
  @version = "0.2"
  @description = "VMware ESXi Server is virtual infrastructure software for partitioning, consolidating and managing systems in mission-critical environments. VMware ESXi Server provides a highly scalable virtual machine platform with advanced resource management capabilities, which can be managed by vSphere."
  @website = "http://www.vmware.com/products/vsphere-hypervisor/overview.html"

  # Matches #
  @matches = [

    # Title
    { text: '<script type="text/javascript">document.write("<title>" + ID_EESX_Welcome + "</title>");</script>' },

    # Meta Description
    { text: '<meta name="description" content="VMware ESXi Server is virtual infrastructure software for partitioning, consolidating, and managing systems in mission-critical environments. VMware ESXi Server provides a highly scalable virtual machine platform with advanced resource management capabilities, which can be managed by VMware vCenter Server.">' },

    # h1 heading
    { text: '<h1><script type="text/javascript">document.write(ID_EESXServer3);</script></h1>' },

    { url: '/default.js', version: /var ID_ProductName = "([^"]+)"/ } # "
  ]
end
