diff --git a/Scripts/Analyze-HuntSMBShares.ps1 b/Scripts/Analyze-HuntSMBShares.ps1
index 8f06cbd..2263b60 100644
--- a/Scripts/Analyze-HuntSMBShares.ps1
+++ b/Scripts/Analyze-HuntSMBShares.ps1
@@ -5,7 +5,7 @@
#--------------------------------------
# Author: Scott Sutherland, 2024 NetSPI
# License: 3-clause BSD
-# Version: v1.68
+# Version: v1.70
# References: This script includes custom code and code taken and modified from the open source projects PowerView, Invoke-Ping, and Invoke-Parrell.
function Analyze-HuntSMBShares
{
@@ -1631,14 +1631,18 @@ function Analyze-HuntSMBShares
# Files
$AceRowFilecount = $_.FileCount
- $AceRowFileList = $_.FileList
+ $AceRowFileList = $_.FileList -split "`r`n" | ForEach-Object { $ASDF = $_; "$ASDF
" } | Out-String
$AceRow = @"
Risk Level | Computer | -Share Name | -Share Path | -ACE | -ACE Identity | -Share Owner | -Creation Date | -Modified Date | -Files | +Share Name | +FileSystemRight | +Identity | +Share Owner | +Creation Date | +Last Modified | +Files | @@ -5744,7 +5787,7 @@ Folder groups are SMB shares that contain the exact same file listing. Each fileShare Count | File Count | Risk Level | -File Group | +Folder Group | @@ -6219,7 +6262,48 @@ Invoke-HuntSMBShares -Threads 20 -RunSpaceTimeOut 10 -OutputDirectory c:\folder\ } } +// -------------------------- +// ACE Page: Type chart +// -------------------------- +// Initialize ApexCharts +const ChartAceTypeOptions = { + series: [{ + data: $UniqueFileSystemRightsSeries + }], + chart: { + type: 'bar', + height: 200 + }, + plotOptions: { + bar: { + borderRadius: 0, + borderRadiusApplication: 'end', + horizontal: true, + colors: { + backgroundBarColors: ['#e0e0e0'], + backgroundBarOpacity: 1, + ranges: [{ + from: 0, + to: 1000, + color: '#f08c41' + }] + } + } + }, + dataLabels: { + enabled: false + }, + grid: { + show: false + }, + xaxis: { + categories: [$UniqueFileSystemRightsCategories] + } +}; + +const ChartAceType = new ApexCharts(document.querySelector("#ChartAceType"), ChartAceTypeOptions); +ChartAceType.render(); // -------------------------- // ACE Page: Risk Level chart
---|