diff --git a/PowerHuntShares.psm1 b/PowerHuntShares.psm1 index 5733851..1ccc8bc 100644 --- a/PowerHuntShares.psm1 +++ b/PowerHuntShares.psm1 @@ -4,7 +4,7 @@ #-------------------------------------- # Author: Scott Sutherland, 2024 NetSPI # License: 3-clause BSD -# Version: v1.139 +# Version: v1.140 # 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 { @@ -2561,9 +2561,15 @@ function Invoke-HuntSMBShares foreach{ $TargetOSName = $_.os $TargetOSValue = $_.percent - $DomainComputerOSListJsNames = $DomainComputerOSListJsNames + "'" + $TargetOSName + "'" - $DomainComputerOSListJsValues = $DomainComputerOSListJsValues + "'" + $TargetOSValue + "'" + $DomainComputerOSListJsNames = $DomainComputerOSListJsNames + ",'" + $TargetOSName + "'" + $DomainComputerOSListJsValues = $DomainComputerOSListJsValues + "," + $TargetOSValue } + + # Remove trailing , + $DomainComputerOSListJsNames = $DomainComputerOSListJsNames.Substring(1) + $DomainComputerOSListJsValues = $DomainComputerOSListJsValues.Substring(1) + + # Build final js objects $DomainComputerOSListJsNames = "[" + $DomainComputerOSListJsNames + "]" $DomainComputerOSListJsValues = "[" + $DomainComputerOSListJsValues + "]" @@ -6217,7 +6223,19 @@ $ComputerCount computers were found in the $TargetDomain Active Directory domain - + + +
+ +
+
+
+
+
+
+
+
+