diff options
author | HarmJ0y <will@harmj0y.net> | 2016-12-15 12:45:18 -0500 |
---|---|---|
committer | HarmJ0y <will@harmj0y.net> | 2016-12-15 12:45:18 -0500 |
commit | 831dde1268156d0f73f013aacc87c3216b4b7be7 (patch) | |
tree | bd0197c42b71169efae9cebec4f3152cd6d47595 /Recon | |
parent | 601ad0cf3f46c6a02e4642850c21af74414c811a (diff) | |
download | PowerSploit-831dde1268156d0f73f013aacc87c3216b4b7be7.tar.gz PowerSploit-831dde1268156d0f73f013aacc87c3216b4b7be7.zip |
Bug fix for the Find-DomainUserLocation bug fix :)
Diffstat (limited to 'Recon')
-rwxr-xr-x | Recon/PowerView.ps1 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Recon/PowerView.ps1 b/Recon/PowerView.ps1 index 79c2528..c86f90b 100755 --- a/Recon/PowerView.ps1 +++ b/Recon/PowerView.ps1 @@ -14366,6 +14366,7 @@ function New-ThreadedFunction { } $Jobs = @() + $ComputerName = $ComputerName | Where-Object {$_ -and $_.Trim()} Write-Verbose "[New-ThreadedFunction] Total number of hosts: $($ComputerName.count)" # partition all hosts from -ComputerName into $Threads number of groups @@ -14810,7 +14811,7 @@ PowerView.UserLocation if ($StealthSource -match 'File|All') { Write-Verbose '[Find-DomainUserLocation] Querying for file servers' $FileServerSearcherArguments = @{} - if ($PSBoundParameters['Domain']) { $FileServerSearcherArguments['Domain'] = $ComputerDomain } + if ($PSBoundParameters['Domain']) { $FileServerSearcherArguments['Domain'] = $Domain } if ($PSBoundParameters['ComputerDomain']) { $FileServerSearcherArguments['Domain'] = $ComputerDomain } if ($PSBoundParameters['ComputerSearchBase']) { $FileServerSearcherArguments['SearchBase'] = $ComputerSearchBase } if ($PSBoundParameters['Server']) { $FileServerSearcherArguments['Server'] = $Server } @@ -14833,7 +14834,7 @@ PowerView.UserLocation $DCSearcherArguments = @{ 'LDAP' = $True } - if ($PSBoundParameters['Domain']) { $DCSearcherArguments['Domain'] = $ComputerDomain } + if ($PSBoundParameters['Domain']) { $DCSearcherArguments['Domain'] = $Domain } if ($PSBoundParameters['ComputerDomain']) { $DCSearcherArguments['Domain'] = $ComputerDomain } if ($PSBoundParameters['Server']) { $DCSearcherArguments['Server'] = $Server } if ($PSBoundParameters['Credential']) { $DCSearcherArguments['Credential'] = $Credential } |