#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
if ( NASL_LEVEL < 3000 ) exit(0);
include('deprecated_nasl_level.inc');
include('compat.inc');
if (description) {
script_id(29217);
script_version("1.10");
script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/14");
script_name(english:"Solaris Installed Package Enumeration (credentialed check)");
script_summary(english:"Displays the list of packages installed on the remote software");
script_set_attribute(attribute:"synopsis", value:
"It is possible to enumerate installed packages on the remote Solaris host, via
SSH." );
script_set_attribute(attribute:"description", value:
"This plugin lists the packages installed on the remote Solaris host by calling
pkginfo." );
script_set_attribute(attribute:"solution", value:
"Remove software that is not compliant with your company policy." );
script_set_attribute(attribute:"risk_factor", value:"None" );
script_set_attribute(attribute:"plugin_publication_date", value: "2007/12/04");
script_set_attribute(attribute:"plugin_type", value:"local");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"General");
script_copyright(english:"This script is Copyright (C) 2007-2021 Tenable Network Security, Inc.");
script_dependencies("ssh_get_info.nasl");
script_require_keys("Host/Solaris/pkginfo");
exit(0);
}
#
pkg = get_kb_list("Solaris/Packages/Versions/*");
if ( isnull(pkg) ) exit(0);
report = NULL;
foreach name ( keys(pkg) )
{
version = chomp(pkg[name]);
name -= "Solaris/Packages/Versions/";
report += name + " version " + version + '\n';
}
if ( strlen(report) )
{
security_note(port:0, extra:'Here is the list of packages installed on the remote Solaris host :\n\n' + 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