Cisco UCS Central Version Detection

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

Description

This Script consolidate the via SSH or HTTP(s) detected version of Cisco UCS Central for later use.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_cisco_ucs_central_version.nasl 11885 2018-10-12 13:47:20Z cfischer $
#
# Cisco UCS Central Version 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.
###############################################################################

if (description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.105573");
  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-03-17 14:04:35 +0100 (Thu, 17 Mar 2016)");
  script_name("Cisco UCS Central Version Detection");

  script_tag(name:"summary", value:"This Script consolidate the via SSH or HTTP(s) detected version of Cisco UCS Central for later use.");

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

  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_central_version_ssh.nasl", "gb_cisco_ucs_central_version_http.nasl");
  script_mandatory_keys("cisco_ucs_central/installed");
  exit(0);
}


include("host_details.inc");

source = "ssh";

version = get_kb_item( "cisco_ucs_central/" + source  + "/version" );
if( ! version )
{
  source = "http";
  version = get_kb_item( "cisco_ucs_central/" + source  + "/version" );
}

if( ! version || version == "unknown" ) exit( 0 );

cpe = 'cpe:/a:cisco:ucs_central_software' + ':' + version;

register_product( cpe:cpe, location:source );

set_kb_item( name:"cisco_ucs_central/version", value:version );

log_message( data: build_detection_report( app:"Cisco UCS Central",
                                           version:version,
                                           install:source,
                                           cpe:cpe,
                                           concluded: source ),
             port:0 );

exit(0);