Trend Micro Interscan Messaging Security Virtual Appliance Detection

2015-04-13T00:00:00
ID OPENVAS:1361412562310105253
Type openvas
Reporter This script is Copyright (C) 2015 Greenbone Networks GmbH
Modified 2017-05-04T00:00:00

Description

This script performs SSH based detection of Trend Micro Interscan Messaging Security Virtual Appliance

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_trend_micro_interscan_messaging_security_virtual_appliance_version.nasl 6065 2017-05-04 09:03:08Z teissa $
#
# Trend Micro Interscan Messaging Security Virtual 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.105253");
 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: 6065 $");
 script_tag(name:"last_modification", value:"$Date: 2017-05-04 11:03:08 +0200 (Thu, 04 May 2017) $");
 script_tag(name:"creation_date", value:"2015-04-13 15:03:11 +0200 (Mon, 13 Apr 2015)");
 script_name("Trend Micro Interscan Messaging Security Virtual Appliance Detection");

 script_tag(name: "summary" , value: "This script performs SSH based detection of Trend Micro Interscan Messaging Security Virtual Appliance");

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

 script_category(ACT_GATHER_INFO);
 script_family("Product detection");
 script_copyright("This script is Copyright (C) 2015 Greenbone Networks GmbH");
 script_dependencies("gather-package-list.nasl");
 script_mandatory_keys("IMSVA/system");
 exit(0);
}

include("host_details.inc");

if( ! system = get_kb_item( "IMSVA/system" ) ) exit( 0 );

if( "IMSVA" >!< system ) exit( 0 );

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

cpe = 'cpe:/a:trendmicro:interscan_messaging_security_virtual_appliance';

match = eregmatch( pattern:"IMSVA ([0-9.]+)-Build_Linux_([0-9]+)", string:system );

vers = 'unknown';

if( ! isnull( match[1] ) )
{
  vers = match[1];
  set_kb_item( name:"IMSVA/version", value:vers );
  cpe += ':' + vers;
}

if( ! isnull( match[2] ) )
{
  build = match[2];
  set_kb_item( name:"IMSVA/build", value:build );
}

register_product( cpe:cpe, location:'ssh' );

report = 'Detected Trend Micro Interscan Messaging Security Virtual Appliance (ssh)\n' +
         'Version: ' + vers + '\n';

if( build ) report+=  'Build:   ' + build + '\n';

report += 'CPE:     ' + cpe + '\n';
log_message( port:0, data:report );

exit( 0 );