Lucene search
K

Microsoft Windows SMB Registry : Vista / Server 2008 Service Pack Detection

🗓️ 27 May 2009 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 9 Views

Microsoft Windows SMB Registry : Vista / Server 2008 Service Pack Detectio

Code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(38912);
  script_version("1.10");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/02/01");
  
  script_name(english:"Microsoft Windows SMB Registry : Vista / Server 2008 Service Pack Detection");
  script_summary(english:"Determines the remote SP");
 script_set_attribute(attribute:"synopsis", value:
"It was possible to determine the service pack installed on 
the remote system." );
 script_set_attribute(attribute:"description", value:
"It is possible to determine the Service Pack version of the Windows
Vista / Server 2008 system by reading the registry key
'HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\CSDVersion'." );
 script_set_attribute(attribute:"risk_factor", value:"None" );
 script_set_attribute(attribute:"solution", value:"n/a" );

 script_set_attribute(attribute:"plugin_publication_date", value: "2009/05/27");
 script_set_attribute(attribute:"plugin_type", value:"local");
 script_set_attribute(attribute:"asset_inventory", value:"True");
 script_set_attribute(attribute:"agent", value:"windows");
 script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Windows");

  script_copyright(english:"This script is Copyright (C) 2009-2022 and is owned by Tenable, Inc. or an Affiliate thereof.");
  script_dependencies("smb_reg_service_pack.nasl");
  script_require_keys("SMB/WindowsVersion");
  script_require_ports(139, 445);

  exit(0);
}

include("global_settings.inc");
include("misc_func.inc");

port = get_kb_item("SMB/transport");
if (!port) port = 139;

win = get_kb_item_or_exit("SMB/WindowsVersion");
sp = get_kb_item("SMB/CSDVersion");

if (win == "6.0")
{
  if (ereg(pattern:"Service Pack [1-9]", string:sp))
  {
    set_kb_item(name:"SMB/Vista/ServicePack", value:sp);
    report = '\n' + 'The remote Windows Vista / Server 2008 system has ' + sp + ' applied.\n';
    security_note(port:port, extra:report);
    exit(0);
  } else exit(0, "There is no service pack installed.");
} else exit(0, "The host is not running Windows Vista / Server 2008.");

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