Check for enabled / working Port scanner plugin
🗓️ 30 Jan 2018 00:00:00Reported by Copyright (C) 2018 Greenbone AGType
openvas🔗 plugins.openvas.org👁 1284 Views
# SPDX-FileCopyrightText: 2018 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.108323");
script_version("2026-05-22T06:54:41+0000");
script_tag(name:"last_modification", value:"2026-05-22 06:54:41 +0000 (Fri, 22 May 2026)");
script_tag(name:"creation_date", value:"2018-01-30 11:21:18 +0100 (Tue, 30 Jan 2018)");
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("Check for enabled / working Port scanner plugin");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2018 Greenbone AG");
script_family("General");
script_dependencies("toolcheck.nasl"); # For Tools/Present/nmap
script_exclude_keys("Host/scanned"); # Set by the Port scanner plugins
script_xref(name:"URL", value:"https://docs.greenbone.net/GSM-Manual/gos-25.0/en/performance.html#optimizing-the-scan-performance");
script_xref(name:"URL", value:"https://docs.greenbone.net/GSM-Manual/gos-25.0/en/scanning.html?highlight=scanner_plugins_timeout#description-of-scanner-preferences");
script_xref(name:"URL", value:"https://docs.greenbone.net/GSM-Manual/gos-24.10/en/performance.html#optimizing-the-scan-performance");
script_xref(name:"URL", value:"https://docs.greenbone.net/GSM-Manual/gos-24.10/en/scanning.html?highlight=scanner_plugins_timeout#description-of-scanner-preferences");
script_tag(name:"summary", value:"The script reports if:
- a custom scan configuration is in use without having a Port scanner from
the 'Port scanners' family enabled.
- a port scanner plugin was running into a timeout.
- a required port scanner (e.g. nmap) is not installed.");
script_tag(name:"solution", value:"Based on the script output please:
- add a Port scanner plugin from the 'Port scanners' family to this scan
configuration. Recommended: Nmap (NASL wrapper).
- either choose a port range for this target containing less ports or raise
the 'scanner_plugins_timeout' scanner preference to a higher timeout.
- install the 'nmap' binary/package or make it accessible to the scanner.");
script_tag(name:"qod_type", value:"remote_banner");
exit(0);
}
# We have scanned the host. This is for the case if optimize_test
# is set to "no" and thus script exclude keys above is not evaluated.
if( get_kb_item( "Host/scanned" ) ) exit( 0 );
# If the scan configuration / host_alive_detection.nasl isn't using a mark_dead = yes
# both keys above are not set so we need to exit here.
mark_dead = get_kb_item( "/ping_host/mark_dead" );
if( "yes" >!< mark_dead ) exit( 0 );
# If one of these options is set to no a portscanner is not
# directly required.
if( "no" >< get_preference( "unscanned_closed" ) ||
"no" >< get_preference( "unscanned_closed_udp" ) ) {
exit( 0 );
}
report = "The host wasn't scanned due to the following possible reasons:";
report += '\n\n - No Port scanner plugin from the "Port scanners" family is ';
report += 'included in this scan configuration. Recommended: Nmap (NASL wrapper).';
report += '\n - The Port scanner plugin reached a timeout during the port scanning ';
report += 'phase. Please either choose a port range for this target containing less ports ';
report += 'or raise the "scanner_plugins_timeout" scanner preference to a higher timeout.';
if( ! get_kb_item( "Tools/Present/nmap" ) ) {
report += '\n - The "nmap" binary/package is not installed or not accessible by the scanner.';
}
log_message( port:0, data:report );
exit( 0 );
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
22 May 2026 00:00Current
5.8Medium risk
Vulners AI Score5.8