This script finds the installed Hex Workshop Version.
# 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.800326");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:N/A:N");
script_version("2023-07-27T05:05:09+0000");
script_tag(name:"last_modification", value:"2023-07-27 05:05:09 +0000 (Thu, 27 Jul 2023)");
script_tag(name:"creation_date", value:"2009-01-06 15:38:06 +0100 (Tue, 06 Jan 2009)");
script_tag(name:"cvss_base", value:"0.0");
script_name("BreakPoint Software Hex Workshop Version Detection");
script_category(ACT_GATHER_INFO);
script_tag(name:"qod_type", value:"registry");
script_copyright("Copyright (C) 2009 Greenbone AG");
script_family("Product detection");
script_dependencies("smb_reg_service_pack.nasl");
script_mandatory_keys("SMB/WindowsVersion");
script_require_ports(139, 445);
script_tag(name:"summary", value:"This script finds the installed Hex Workshop Version.");
exit(0);
}
include("smb_nt.inc");
include("secpod_smb_func.inc");
include("cpe.inc");
include("host_details.inc");
SCRIPT_DESC = "BreakPoint Software Hex Workshop Version Detection";
if(!get_kb_item("SMB/WindowsVersion")){
exit(0);
}
key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
if(!registry_key_exists(key:key)){
exit(0);
}
foreach item (registry_enum_keys(key:key))
{
if("Hex Workshop" >< registry_get_sz(key:key + item, item:"DisplayName"))
{
hwVer = registry_get_sz(key:key + item, item:"DisplayVersion");
if(hwVer)
{
set_kb_item(name:"BPSoft/HexWorkshop/Ver", value:hwVer);
log_message(data:"BPSoft HexWork shop version " + hwVer + " was" +
" detected on the host");
cpe = build_cpe(value:hwVer, exp:"^([0-9.]+)", base:"cpe:/a:bpsoft:hex_workshop:");
if(!isnull(cpe))
register_host_detail(name:"App", value:cpe, desc:SCRIPT_DESC);
}
exit(0);
}
}