Cisco UCS Platform Emulator Detection

2016-07-07T00:00:00
ID OPENVAS:1361412562310105799
Type openvas
Reporter This script is Copyright (C) 2016 Greenbone Networks GmbH
Modified 2018-10-12T00:00:00

Description

This script performs HTTP based detection of Cisco UCS Platform Emulator

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_cisco_ucs_platform_emulator_web_detect.nasl 11885 2018-10-12 13:47:20Z cfischer $
#
# Cisco UCS Platform Emulator Detection
#
# Authors:
# Michael Meyer <michael.meyer@greenbone.net>
#
# Copyright:
# Copyright (c) 2016 Greenbone Networks GmbH
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################

CPE = 'cpe:/a:cisco:unified_computing_system_software';

if (description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.105799");
  script_tag(name:"cvss_base", value:"0.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:N/A:N");
  script_version("$Revision: 11885 $");
  script_tag(name:"last_modification", value:"$Date: 2018-10-12 15:47:20 +0200 (Fri, 12 Oct 2018) $");
  script_tag(name:"creation_date", value:"2016-07-07 10:40:45 +0200 (Thu, 07 Jul 2016)");
  script_name("Cisco UCS Platform Emulator Detection");

  script_category(ACT_GATHER_INFO);
  script_family("Product detection");
  script_copyright("This script is Copyright (C) 2016 Greenbone Networks GmbH");
  script_dependencies("gb_cisco_ucs_manager_detect.nasl");
  script_require_ports("Services/www", 443);
  script_mandatory_keys("cisco_ucs_manager/installed");

  script_tag(name:"summary", value:"This script performs HTTP based detection of Cisco UCS Platform Emulator");
  script_tag(name:"qod_type", value:"remote_banner");
  exit(0);
}

include("http_func.inc");
include("http_keepalive.inc");
include("host_details.inc");

if( ! port = get_app_port( cpe:CPE ) ) exit( 0 );

buf = http_get_cache( port:port, item:'/' );

if( "<title>Cisco UCS Manager</title>" >!< buf || "Cisco UCS Platform Emulator" >!< buf ) exit( 0 );

vers = 'unknown';
cpe = 'cpe:/a:cisco:unified_computing_system_platform_emulator';

version = eregmatch( pattern:'Cisco UCS Platform Emulator (([0-9.]+\\([^)]+\\))\\(([0-9][^)]+)\\))', string:buf );

if( ! isnull(version[2] ) )
{
  vers = version[2];
  cpe += ':' + vers;
  set_kb_item( name:'cisco_ucs_plattform_emulator/version', value:vers);
}

if( ! isnull(version[3] ) )
{
  build = version[3];
  set_kb_item( name:'cisco_ucs_plattform_emulator/build', value:build);
}

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

register_product( cpe:cpe, location:"/", port:port );

log_message( data: build_detection_report( app:"Cisco UCS Platform Emulator", version:vers, install:"/", cpe:cpe, concluded: version[0] ),
             port:port);

exit(0);