#
# (C) Tenable Network Security, Inc.
#
include("compat.inc");
if (description)
{
script_id(54615);
script_version("1.3");
script_set_attribute(attribute:"plugin_modification_date", value:"2025/03/12");
script_name(english:"Device Type");
script_summary(english:"Determines the remote device type");
script_set_attribute(attribute:"synopsis", value:"It is possible to guess the remote device type.");
script_set_attribute(attribute:"description", value:
"Based on the remote operating system, it is possible to determine
what the remote system type is (eg: a printer, router, general-purpose
computer, etc).");
script_set_attribute(attribute:"solution", value:"n/a");
script_set_attribute(attribute:"risk_factor", value:"None");
script_set_attribute(attribute:"plugin_publication_date", value:"2011/05/23");
script_set_attribute(attribute:"plugin_type", value:"combined");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_copyright(english:"This script is Copyright (C) 2011-2025 Tenable Network Security, Inc.");
script_family(english:"General");
script_dependencies("os_fingerprint.nasl");
script_require_keys("Host/OS/Type");
exit(0);
}
# ssh_get_info may already have set the device type for Cisco device.
# Use this if we can
type = get_kb_item('Host/Cisco/device_type');
if (empty_or_null(type))
{
# citrix netscaler as well
type = get_kb_item('Host/NetScaler/device_type');
if (empty_or_null(type))
type = get_kb_item("Host/OS/Type");
}
if (empty_or_null(type))
exit(0, "Could not identify the remote device type.");
confidence = get_kb_item("Host/OS/Confidence");
report = 'Remote device type : ' + type +'\n';
if ( !isnull(confidence) )
report += strcat('Confidence level : ', confidence, '\n');
security_note(port:0, extra:report);
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