diff --git a/PowerHuntShares.psm1 b/PowerHuntShares.psm1 index 867aa00..9222657 100644 --- a/PowerHuntShares.psm1 +++ b/PowerHuntShares.psm1 @@ -4,7 +4,7 @@ #-------------------------------------- # Author: Scott Sutherland, 2024 NetSPI # License: 3-clause BSD -# Version: v1.193 +# Version: v1.195 # 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 { @@ -3008,9 +3008,7 @@ function Invoke-HuntSMBShares $_.ShareGuessApp = $NewAppName } } - } - - + } } # Output updated excessive privilege .csv @@ -6533,7 +6531,7 @@ input[type="checkbox"]:checked::before {
- + @@ -6837,7 +6835,7 @@ input[type="checkbox"]:checked::before {
Asset Exposure Summary
-
+
$ExcessiveSharePrivsCount ACL entries, on $ExcessiveSharesCount shares, hosted by $ComputerWithExcessive computers were found configured with excessive privileges on the $TargetDomain domain. $LLMCleanAppSummary
@@ -28272,7 +28270,7 @@ function Invoke-FingerPrintShare { # Verify that a data table, csv, or filenames have been passed into the function before moving on. if (-not $FileList -and -not $FilePath -and -not $DataTable) { - Write-Output "No file names, file paths, or data tables have been provided." + Write-Verbose "No file names, file paths, or data tables have been provided." break } @@ -28282,8 +28280,8 @@ function Invoke-FingerPrintShare { if(Test-Path $FilePath){ # Write-Verbose "The csv file path exists." }else{ - Write-Output " [x] The $FilePath did not exist." - Write-Output " [!] Aborting operation." + Write-Verbose " [x] The $FilePath did not exist." + Write-Verbose " [!] Aborting operation." break } } @@ -28356,7 +28354,7 @@ function Invoke-FingerPrintShare { if($TargetListCount -gt 0){ Write-Verbose "$TargetListCount records will be processed." }else{ - Write-Output "No records were found for processing, aborting." + Write-Verbose "No records were found for processing, aborting." break } Write-Verbose "Endpoint: $Endpoint"