Cisco Email Security Appliance Detection

2015-11-09T00:00:00
ID OPENVAS:1361412562310105440
Type openvas
Reporter This script is Copyright (C) 2015 Greenbone Networks GmbH
Modified 2018-05-31T00:00:00

Description

This Script get the via HTTP(s) or SSH detected Cisco Email Security Appliance version

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_cisco_esa_version.nasl 10033 2018-05-31 07:51:19Z ckuersteiner $
#
# Cisco Email Security Appliance Detection
#
# Authors:
# Michael Meyer <michael.meyer@greenbone.net>
#
# Copyright:
# Copyright (c) 2015 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.105440");
  script_version("$Revision: 10033 $");
  script_tag(name:"last_modification", value:"$Date: 2018-05-31 09:51:19 +0200 (Thu, 31 May 2018) $");
  script_tag(name:"creation_date", value:"2015-11-09 13:54:40 +0100 (Mon, 09 Nov 2015)");
  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_name("Cisco Email Security Appliance Detection");

  script_category(ACT_GATHER_INFO);
  script_family("Product detection");
  script_copyright("This script is Copyright (C) 2015 Greenbone Networks GmbH");
  script_dependencies("gb_cisco_esa_web_detect.nasl", "gather-package-list.nasl");
  script_mandatory_keys("cisco_esa/installed");

  script_tag(name:"summary", value:"This Script get the via HTTP(s) or SSH detected Cisco Email Security Appliance
version");

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

  exit(0);
}

include("host_details.inc");

source = 'SSH';

version = get_kb_item("cisco_esa/version/ssh");
if( ! version )
{
  version = get_kb_item("cisco_esa/version/http");
  source = 'HTTP(s)';
}

if( ! version ) exit( 0 );

model = get_kb_item("cisco_esa/model/ssh");
if( ! model ) model = get_kb_item("cisco_esa/model/http");

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

if( model ) set_kb_item( name:"cisco_esa/model", value:model );

cpe = 'cpe:/h:cisco:email_security_appliance:' + version;

register_product( cpe:cpe );

register_and_report_os( os:"Cisco AsyncOS", cpe:"cpe:/o:cisco:asyncos:" + version, banner_type:source, desc:"Cisco Email Security Appliance Detection", runs_key:"unixoide" );

report = 'Detected Cisco Email Security Appliance\nVersion: ' + version + '\nCPE: ' + cpe;
if( model ) report += '\nModel: ' + model;

report += '\nDetection source: ' + source;

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