ID OPENVAS:1361412562310105407 Type openvas Reporter This script is Copyright (C) 2015 Greenbone Networks GmbH Modified 2018-10-12T00:00:00
Description
The script performs ssh based detection of JunOS Space
###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_junos_space_version.nasl 11885 2018-10-12 13:47:20Z cfischer $
#
# JunOS Space 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.105407");
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:"2015-10-16 19:26:14 +0200 (Fri, 16 Oct 2015)");
script_name("JunOS Space Detection");
script_tag(name:"summary", value:"The script performs ssh based detection of JunOS Space");
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("junos/space");
exit(0);
}
include("host_details.inc");
cpe = 'cpe:/a:juniper:junos_space';
rls = get_kb_item("junos/space");
if( ! rls || rls !~ "Space release [0-9][0-9.]+([^0-9.][0-9.]+)? \((dev.)?[0-9]+\)" ) exit( 0 );
set_kb_item(name:"junos_space/installed", value:TRUE);
# 12.3P2.8
# 15.1R1
version = eregmatch( pattern:"Space release ([0-9][0-9.]+([^0-9.][0-9.]+)?) \((dev.)?([0-9]+)\)", string:rls );
if( ! isnull( version[1] ) )
{
vers = version[1];
cpe += ':' + vers;
}
if( ! isnull( version[4] ) )
{
build = version[4];
set_kb_item(name:"junos_space/build", value:build);
}
register_product( cpe:cpe, location:'ssh' );
log_message( data: build_detection_report( app:'JunOS Space',
version:vers,
install:'ssh',
cpe:cpe,
concluded: version[0] ),
port:0 );
exit( 0 );
{"id": "OPENVAS:1361412562310105407", "type": "openvas", "bulletinFamily": "scanner", "title": "JunOS Space Detection", "description": "The script performs ssh based detection of JunOS Space", "published": "2015-10-16T00:00:00", "modified": "2018-10-12T00:00:00", "cvss": {"score": 0.0, "vector": "NONE"}, "href": "http://plugins.openvas.org/nasl.php?oid=1361412562310105407", "reporter": "This script is Copyright (C) 2015 Greenbone Networks GmbH", "references": [], "cvelist": [], "lastseen": "2018-10-22T16:31:14", "viewCount": 0, "enchantments": {"score": {"value": -0.0, "vector": "NONE", "modified": "2018-10-22T16:31:14", "rev": 2}, "dependencies": {"references": [], "modified": "2018-10-22T16:31:14", "rev": 2}, "vulnersScore": -0.0}, "pluginID": "1361412562310105407", "sourceData": "###############################################################################\n# OpenVAS Vulnerability Test\n# $Id: gb_junos_space_version.nasl 11885 2018-10-12 13:47:20Z cfischer $\n#\n# JunOS Space Detection\n#\n# Authors:\n# Michael Meyer <michael.meyer@greenbone.net>\n#\n# Copyright:\n# Copyright (c) 2015 Greenbone Networks GmbH\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License, or (at your option) any later version\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n###############################################################################\n\nif (description)\n{\n script_oid(\"1.3.6.1.4.1.25623.1.0.105407\");\n script_tag(name:\"cvss_base\", value:\"0.0\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:L/Au:N/C:N/I:N/A:N\");\n script_version(\"$Revision: 11885 $\");\n script_tag(name:\"last_modification\", value:\"$Date: 2018-10-12 15:47:20 +0200 (Fri, 12 Oct 2018) $\");\n script_tag(name:\"creation_date\", value:\"2015-10-16 19:26:14 +0200 (Fri, 16 Oct 2015)\");\n script_name(\"JunOS Space Detection\");\n\n script_tag(name:\"summary\", value:\"The script performs ssh based detection of JunOS Space\");\n script_tag(name:\"qod_type\", value:\"package\");\n\n script_category(ACT_GATHER_INFO);\n script_family(\"Product detection\");\n script_copyright(\"This script is Copyright (C) 2015 Greenbone Networks GmbH\");\n script_dependencies(\"gather-package-list.nasl\");\n script_mandatory_keys(\"junos/space\");\n exit(0);\n}\n\ninclude(\"host_details.inc\");\n\ncpe = 'cpe:/a:juniper:junos_space';\n\nrls = get_kb_item(\"junos/space\");\nif( ! rls || rls !~ \"Space release [0-9][0-9.]+([^0-9.][0-9.]+)? \\((dev.)?[0-9]+\\)\" ) exit( 0 );\n\nset_kb_item(name:\"junos_space/installed\", value:TRUE);\n\n# 12.3P2.8\n# 15.1R1\nversion = eregmatch( pattern:\"Space release ([0-9][0-9.]+([^0-9.][0-9.]+)?) \\((dev.)?([0-9]+)\\)\", string:rls );\n\nif( ! isnull( version[1] ) )\n{\n vers = version[1];\n cpe += ':' + vers;\n}\n\nif( ! isnull( version[4] ) )\n{\n build = version[4];\n set_kb_item(name:\"junos_space/build\", value:build);\n}\n\nregister_product( cpe:cpe, location:'ssh' );\n\nlog_message( data: build_detection_report( app:'JunOS Space',\n version:vers,\n install:'ssh',\n cpe:cpe,\n concluded: version[0] ),\n port:0 );\n\nexit( 0 );\n", "naslFamily": "Product detection", "immutableFields": []}