# SPDX-FileCopyrightText: 2017 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.810554");
script_version("2023-07-26T05:05:09+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-26 05:05:09 +0000 (Wed, 26 Jul 2023)");
script_tag(name:"creation_date", value:"2017-02-15 13:56:01 +0530 (Wed, 15 Feb 2017)");
script_name("SMBv1 enabled (Local Windows Check)");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2017 Greenbone AG");
script_family("Service detection");
script_dependencies("gb_smbv1_server_detect.nasl", "gb_smbv1_client_detect.nasl");
script_mandatory_keys("smb_v1/enabled");
script_xref(name:"URL", value:"https://www.us-cert.gov/ncas/current-activity/2017/01/16/SMB-Security-Best-Practices");
script_xref(name:"URL", value:"https://support.microsoft.com/en-us/kb/2696547");
script_xref(name:"URL", value:"https://support.microsoft.com/en-us/kb/204279");
script_tag(name:"summary", value:"The host has enabled SMBv1 for the SMB Client or Server.");
script_tag(name:"vuldetect", value:"Checks if SMBv1 is enabled for the SMB Client or Server based on the
information provided by the following two VTs:
- SMBv1 Client Detection (OID: 1.3.6.1.4.1.25623.1.0.810550)
- SMBv1 Server Detection (OID: 1.3.6.1.4.1.25623.1.0.810549).");
script_tag(name:"qod_type", value:"registry");
exit(0);
}
if( get_kb_item( "smb_v1/enabled" ) ) {
if( get_kb_item( "smb_v1_server/enabled" ) )
report = "- SMBv1 is enabled for the SMB Server";
if( report )
report += '\n';
if( get_kb_item( "smb_v1_client/enabled" ) )
report += "- SMBv1 is enabled for the SMB Client";
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