diff --git a/PowerHuntShares.psm1 b/PowerHuntShares.psm1
index d7ad9a5..ce6fea6 100644
--- a/PowerHuntShares.psm1
+++ b/PowerHuntShares.psm1
@@ -4,7 +4,7 @@
#--------------------------------------
# Author: Scott Sutherland, 2024 NetSPI
# License: 3-clause BSD
-# Version: v1.102
+# Version: v1.103
# References: This script includes custom code and code taken and modified from the open source projects PowerView, Invoke-Ping, and Invoke-Parrell.
function Invoke-HuntSMBShares
{
@@ -1789,7 +1789,7 @@ function Invoke-HuntSMBShares
}
# ----------------------------------------------------------------------
- # Calculate risk score per acl
+ # Calculate risk score per acl - ace insights
# ----------------------------------------------------------------------
# add interesting file flags
# add risk score
@@ -2057,14 +2057,18 @@ function Invoke-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 Name | +FileSystemRight | +Identity | Share Owner | Creation Date | -Modified Date | +Last Modified | Files | @@ -6290,7 +6333,7 @@ Folder groups are SMB shares that contain the exact same file listing. Each fileShare Count | File Count | Risk Level | -File Group | +Folder Group | @@ -6766,6 +6809,48 @@ The left menu can be used to find summary data, the scan summary is in the table } +// -------------------------- +// 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
---|