This routine reports all Non Weak SSL/TLS cipher suites
accepted by a service.
# SPDX-FileCopyrightText: 2012 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.103441");
script_version("2024-06-14T05:05:48+0000");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:N/A:N");
script_tag(name:"cvss_base", value:"0.0");
script_tag(name:"last_modification", value:"2024-06-14 05:05:48 +0000 (Fri, 14 Jun 2024)");
script_tag(name:"creation_date", value:"2012-03-01 17:16:10 +0100 (Thu, 01 Mar 2012)");
script_name("SSL/TLS: Report Non Weak Cipher Suites");
script_category(ACT_GATHER_INFO);
script_family("SSL and TLS");
script_copyright("Copyright (C) 2012 Greenbone AG");
script_dependencies("secpod_ssl_ciphers.nasl");
script_mandatory_keys("secpod_ssl_ciphers/nonweak_ciphers", "ssl_tls/port");
script_tag(name:"summary", value:"This routine reports all Non Weak SSL/TLS cipher suites
accepted by a service.");
script_tag(name:"qod_type", value:"remote_app");
exit(0);
}
include("ssl_funcs.inc");
include("gb_print_ciphers.inc");
include("host_details.inc");
if( ! port = tls_ssl_get_port() )
exit( 0 );
report = print_cipherlists( port:port, strengths:"nonweak" );
if( report ) {
# nb:
# - Store the reference from this one to gb_ssl_ciphers_report.nasl to show a cross-reference within the
# reports
# - We don't want to use get_app_* functions as we're only interested in the cross-reference here
register_host_detail( name:"detected_by", value:"1.3.6.1.4.1.25623.1.0.802067" ); # gb_ssl_ciphers_report.nasl
register_host_detail( name:"detected_at", value:port + "/tcp" );
log_message( port:port, data:report );
exit( 0 );
}
exit( 99 );