Riverbed SteelCentral Version Report

2016-06-30T00:00:00
ID OPENVAS:1361412562310105789
Type openvas
Reporter This script is Copyright (C) 2016 Greenbone Networks GmbH
Modified 2019-05-22T00:00:00

Description

This script consolidate the via ssh and/or http detected Riverbed SteelCentral version for further probes.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
#
# Riverbed SteelCentral Version Report
#
# 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.105789");
  script_version("2019-05-22T11:40:52+0000");
  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_tag(name:"last_modification", value:"2019-05-22 11:40:52 +0000 (Wed, 22 May 2019)");
  script_tag(name:"creation_date", value:"2016-06-30 13:36:05 +0200 (Thu, 30 Jun 2016)");
  script_name("Riverbed SteelCentral Version Report");

  script_tag(name:"summary", value:"This script consolidate the via ssh and/or http detected Riverbed SteelCentral version for further probes.");

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

  script_category(ACT_GATHER_INFO);
  script_family("Product detection");
  script_copyright("This script is Copyright (C) 2016 Greenbone Networks GmbH");
  script_dependencies("gb_riverbed_steelcentral_http_detect.nasl", "gb_riverbed_steelcentral_ssh_detect.nasl");
  script_mandatory_keys("riverbed/SteelCentral/detected");
  exit(0);
}

include("host_details.inc");

source = 'http';

if( ! version = get_kb_item("riverbed/SteelCentral/" + source + "/version") )
{
  source = 'ssh';
  if( ! version = get_kb_item("riverbed/SteelCentral/" + source + "/version") ) exit( 0 );
}

report_version = version;
report_app = 'Riverbed SteelCentral';

cpe = 'cpe:/a:riverbed:steelcentral:' + version;

register_product( cpe:cpe, location:source, service:"consolidated_version" );
set_kb_item( name:"riverbed/SteelCentral/installed", value:TRUE );

model = get_kb_item("riverbed/SteelCentral/" + source + "/model");
if( model )
{
  set_kb_item( name:"riverbed/SteelCentral/model", value:model );
  report_app += ' (' + model + ')';
}

release = get_kb_item("riverbed/SteelCentral/" + source + "/release");
if( release )
{
  set_kb_item( name:"riverbed/SteelCentral/release", value:release );
  report_version += ' (' + release + ')';
}

register_and_report_os( os:"Riverbed Optimization System (RiOS)", cpe:"cpe:/o:riverbed:riverbed_optimization_system", desc:"Riverbed SteelCentral Version Report", runs_key:"unixoide" );

report = build_detection_report( app:report_app, version:report_version, install:source, cpe:cpe, extra:'\nDetection source: ' + source );

log_message( data:report );
exit( 0 );