From 8c2cc8f6766f35ea6abf816328afa8671d811b4e Mon Sep 17 00:00:00 2001 From: Scott Sutherland Date: Tue, 11 Jun 2024 09:26:36 -0500 Subject: [PATCH] Update PowerHuntShares.psm1 Add line break after each owner name on share name summary page. --- PowerHuntShares.psm1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PowerHuntShares.psm1 b/PowerHuntShares.psm1 index ea80d26..6e66e12 100644 --- a/PowerHuntShares.psm1 +++ b/PowerHuntShares.psm1 @@ -4,7 +4,7 @@ #-------------------------------------- # Author: Scott Sutherland, 2024 NetSPI # License: 3-clause BSD -# Version: v1.52 +# Version: v1.53 # 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 { @@ -1637,6 +1637,7 @@ function Invoke-HuntSMBShares # Share owner list $ShareOwnerList = $ExcessiveSharePrivs | where sharename -EQ "$ShareName" | Sort-Object | select ShareOwner -Unique -ExpandProperty ShareOwner + $ShareOwnerListHTML = $ShareOwnerList | foreach{ "$_
"} # Share owner list count $ShareOwnerListCount = $ShareOwnerList | select -Unique | measure-object | select count -expandproperty count @@ -1926,7 +1927,7 @@ function Invoke-HuntSMBShares
- $ShareOwnerList + $ShareOwnerListHTML