Detects the installed version of
Mango Automation.
This script sends an HTTP GET request and tries to get the version from the
response.
# SPDX-FileCopyrightText: 2015 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.806064");
script_version("2023-07-25T05:05:58+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:"2023-07-25 05:05:58 +0000 (Tue, 25 Jul 2023)");
script_tag(name:"creation_date", value:"2015-10-01 12:11:26 +0530 (Thu, 01 Oct 2015)");
script_name("Mango Automation Version Detection");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2015 Greenbone AG");
script_family("Product detection");
script_dependencies("find_service.nasl", "httpver.nasl", "global_settings.nasl");
script_require_ports("Services/www", 8080);
script_exclude_keys("Settings/disable_cgi_scanning");
script_tag(name:"summary", value:"Detects the installed version of
Mango Automation.
This script sends an HTTP GET request and tries to get the version from the
response.");
script_tag(name:"qod_type", value:"remote_banner");
exit(0);
}
include("cpe.inc");
include("http_func.inc");
include("http_keepalive.inc");
include("port_service_func.inc");
include("host_details.inc");
port = http_get_port( default:8080 );
rcvRes = http_get_cache( item: "/login.htm", port:port );
if( 'content="Mango Automation' >< rcvRes && 'Login' >< rcvRes && 'Infinite Automation Systems' >< rcvRes ) {
install = "/";
version = "unknown";
set_kb_item( name:"www/" + port + "/Mango Automation", value:version );
set_kb_item( name:"Mango Automation/Installed", value:TRUE );
cpe = build_cpe( value:version, exp:"^([0-9.]+)", base:"cpe:/a:infinite_automation_systems:mango_automation:" );
if( ! cpe )
cpe = "cpe:/a:infinite_automation_systems:mango_automation";
register_product( cpe:cpe, location:install, port:port, service:"www" );
log_message( data:build_detection_report( app:"Mango Automation",
version:version,
install:install,
cpe:cpe ),
port:port );
}
exit( 0 );