diff --git a/PowerHuntShares.psm1 b/PowerHuntShares.psm1 index 29fb6e7..5733851 100644 --- a/PowerHuntShares.psm1 +++ b/PowerHuntShares.psm1 @@ -4,7 +4,7 @@ #-------------------------------------- # Author: Scott Sutherland, 2024 NetSPI # License: 3-clause BSD -# Version: v1.138 +# Version: v1.139 # 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 { @@ -2420,6 +2420,9 @@ function Invoke-HuntSMBShares # Set target share name $TargetComputers = $_.ComputerName + # Get os version + $ComputerPageOS = $DomainComputers | Where ComputerName -eq $TargetComputers | Select OperatingSystem -ExpandProperty OperatingSystem + # Grab the risk level for the highest risk acl for the share name $ComputersTopACLRiskScore = $ExcessiveSharePrivsFinal | where ComputerName -eq $TargetComputers | select RiskScore | sort RiskScore -Descending | select -First 1 | select RiskScore -ExpandProperty RiskScore @@ -2489,6 +2492,7 @@ function Invoke-HuntSMBShares $ComputerTableRow = @"