OpenVAS Scanner Detection
🗓️ 24 Mar 2009 00:00:00Reported by Copyright (C) 2009 Greenbone AGType
openvas🔗 plugins.openvas.org👁 22 Views
# SPDX-FileCopyrightText: 2009 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.100076");
script_version("2023-07-28T16:09:07+0000");
script_tag(name:"last_modification", value:"2023-07-28 16:09:07 +0000 (Fri, 28 Jul 2023)");
script_tag(name:"creation_date", value:"2009-03-24 18:59:36 +0100 (Tue, 24 Mar 2009)");
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("OpenVAS Scanner Detection");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2009 Greenbone AG");
script_family("Product detection");
script_dependencies("nessus_detect.nasl", "find_service2.nasl");
script_require_ports("Services/unknown", 9391);
script_tag(name:"summary", value:"Detection of OpenVAS Scanner.
The script sends a connection request to the server and attempts to
identify an OpenVAS Scanner service from the reply.");
script_tag(name:"qod_type", value:"remote_banner");
exit(0);
}
include("port_service_func.inc");
include("host_details.inc");
port = unknownservice_get_port( default:9391 );
# nb: Set by nessus_detect.nasl if we have hit a service described in the notes below
# No need to continue here as well...
if( get_kb_item( "generic_echo_test/" + port + "/failed" ) )
exit( 0 );
# nb: Set by nessus_detect.nasl as well. We don't need to do the same test
# multiple times...
if( ! get_kb_item( "generic_echo_test/" + port + "/tested" ) ) {
soc = open_sock_tcp( port );
if( ! soc )
exit( 0 );
send( socket:soc, data:string( "TestThis\r\n" ) );
r = recv_line( socket:soc, length:10 );
close( soc );
# We don't want to be fooled by echo & the likes
if( "TestThis" >< r ) {
set_kb_item( name:"generic_echo_test/" + port + "/failed", value:TRUE );
exit( 0 );
}
}
set_kb_item( name:"generic_echo_test/" + port + "/tested", value:TRUE );
foreach protocol( make_list( "1.0", "1.1", "1.2", "2.0" ) ) {
soc = open_sock_tcp( port );
if( ! soc )
exit( 0 );
req = string( "< OTP/", protocol, " >\n" );
send( socket:soc, data:req );
res = recv_line( socket:soc, length:20 );
close( soc );
if( ereg( pattern:"^< OTP/" + protocol + " >$", string:res ) ) {
set_kb_item( name:"openvas_scanner/detected", value:TRUE );
set_kb_item( name:"openvas_gvm/framework_component/detected", value:TRUE );
cpe = "cpe:/a:openvas:openvas_scanner";
vers = "unknown";
install = port + "/tcp";
service_register( port:port, proto:"otp" );
register_product( cpe:cpe, location:install, port:port, service:"otp" );
log_message( data:build_detection_report( app:"OpenVAS Scanner",
version:vers,
install:install,
cpe:cpe,
concluded:res ),
port:port );
break;
}
}
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
28 Jul 2023 00:00Current
7High risk
Vulners AI Score7