From 037facfa42b2dd3bc2c6613615045214c0821942 Mon Sep 17 00:00:00 2001 From: Scott Sutherland Date: Tue, 11 Jun 2024 12:02:07 -0500 Subject: [PATCH] Update PowerHuntShares.psm1 Fixed filelistgroup count bug on share name summary page. Removed timeline column from share name summary page. (for now) --- PowerHuntShares.psm1 | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/PowerHuntShares.psm1 b/PowerHuntShares.psm1 index 8a3cc1c..2a30034 100644 --- a/PowerHuntShares.psm1 +++ b/PowerHuntShares.psm1 @@ -4,7 +4,7 @@ #-------------------------------------- # Author: Scott Sutherland, 2024 NetSPI # License: 3-clause BSD -# Version: v1.55 +# Version: v1.56 # 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 { @@ -1643,7 +1643,7 @@ function Invoke-HuntSMBShares $ShareOwnerListCount = $ShareOwnerList | select -Unique | measure-object | select count -expandproperty count # Share folder group list - $ShareFolderGroupList = $ExcessiveSharePrivs | where sharename -EQ "$ShareName" | select ShareName,FileListGroup -Unique | Group-Object FileListGroup | sort count -Descending | select count, name | + $ShareFolderGroupList = $ExcessiveSharePrivs | where sharename -EQ "$ShareName" | select SharePath,FileListGroup -Unique | Group-Object FileListGroup | sort count -Descending | select count, name | foreach { $fdcount = $_.count; @@ -1935,10 +1935,7 @@ function Invoke-HuntSMBShares $ComputerBar $ShareBar $AclBar - - - PLACEHOLDER - + "@ $ThisRow @@ -3976,8 +3973,7 @@ This section contains a list of the most common SMB share names. In some cases, Similarity Folder Groups Share Owners - Affected Assets - Timeline + Affected Assets