From 1af6091e55eb506d25c9c9b299682531f3b74aca Mon Sep 17 00:00:00 2001 From: Jeff Odegard <42775175+JeffOdegard@users.noreply.github.com> Date: Mon, 21 Jan 2019 15:13:30 -0700 Subject: [PATCH] Fix for Nessus Solaris 11 Sparc and VMWare ESXi ID parse_nessus.php had an issue when parsing Nessus results with Solaris 11 results. It would only identify the x86 architecture, but not sparc architectures. Additionally, VMWare ESXi hosts were not identified. --- exec/parse_nessus.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exec/parse_nessus.php b/exec/parse_nessus.php index 255e2b4..b53d14f 100644 --- a/exec/parse_nessus.php +++ b/exec/parse_nessus.php @@ -148,7 +148,8 @@ class nessus_parser extends scan_xml_parser "cpe:\/o:microsoft:windows_2003_server::sp([\d]).*" => "cpe:/o:microsoft:windows_2003_server:-:sp$1", "cpe:\/o:microsoft:windows_server_2008:r2::x64.*" => "cpe:/o:microsoft:windows_server_2008:r2", "cpe:\/o:redhat:enterprise_linux:([\d]+)::.*" => "cpe:/o:redhat:enterprise_linux:$1", - "cpe:\/o:sun:sunos:([\d]+)::x([\d]+).*" => "cpe:/o:oracle:solaris:$1", + "cpe:\/o:sun:sunos:([\d]+)::.*" => "cpe:/o:oracle:solaris:$1", + "cpe:\/o:vmware:esx_server.*" => "cpe:/o:vmware:esxi:5.0", "cpe:\/o:centos:centos:([\d]+).*" => "cpe:/o:centos:centos:$1", ];