From 15db1f9d1b4e18663ba2f601933ff030bf3badf0 Mon Sep 17 00:00:00 2001 From: Scott Sutherland Date: Mon, 3 Jun 2024 10:06:00 -0500 Subject: [PATCH] Update PowerHuntShares.psm1 Format changes. --- PowerHuntShares.psm1 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/PowerHuntShares.psm1 b/PowerHuntShares.psm1 index fd10f7e..9a10889 100644 --- a/PowerHuntShares.psm1 +++ b/PowerHuntShares.psm1 @@ -4,7 +4,7 @@ #-------------------------------------- # Author: Scott Sutherland, 2024 NetSPI # License: 3-clause BSD -# Version: v1.45 +# Version: v1.46 # 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 { @@ -1617,7 +1617,7 @@ function Invoke-HuntSMBShares $AclBar = $ShareNameBars.AclBar # Share Description - $ShareDescriptionSample = $ExcessiveSharePrivs | where sharename -EQ "$ShareName" | where ShareDescription -NE "" | select ShareDescription -first 1 -expandproperty ShareDescription | foreach {"Sample Description:
$_"} + $ShareDescriptionSample = $ExcessiveSharePrivs | where sharename -EQ "$ShareName" | where ShareDescription -NE "" | select ShareDescription -first 1 -expandproperty ShareDescription | foreach {"Sample Description
$_"} # First created $ShareFirstCreated = $ExcessiveSharePrivs | where sharename -EQ "$ShareName" | select creationdate | foreach{[datetime]$_.creationdate } | Sort-Object | select -First 1 | foreach {$_.tostring("MM.dd.yyyy HH:mm:ss")} @@ -1651,10 +1651,10 @@ function Invoke-HuntSMBShares $MyFdListBr = $MyFdList -replace "`n", "
" $ThisFileDirList = @" - $fdcount $fdname - + $fdcount +
-
+
$MyFdListBr
@@ -1690,7 +1690,7 @@ function Invoke-HuntSMBShares
-
+
$ShareOwnerList