diff options
author | Harmj0y <will@harmj0y.net> | 2016-05-13 01:11:47 -0400 |
---|---|---|
committer | Harmj0y <will@harmj0y.net> | 2016-05-13 01:11:47 -0400 |
commit | c89f0b99693ffded815c23590bfd042afe192b77 (patch) | |
tree | 392d249c493b7bbd85b52ef506a7eb2107868e2f /Recon | |
parent | 7d3f0066ec4558d3625580e12740604b8894f1fe (diff) | |
download | PowerSploit-c89f0b99693ffded815c23590bfd042afe192b77.tar.gz PowerSploit-c89f0b99693ffded815c23590bfd042afe192b77.zip |
Logic bug fix in Get-NetDomainTrust
Diffstat (limited to 'Recon')
-rw-r--r-- | Recon/PowerView.ps1 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Recon/PowerView.ps1 b/Recon/PowerView.ps1 index e7f928f..d8f4248 100644 --- a/Recon/PowerView.ps1 +++ b/Recon/PowerView.ps1 @@ -12383,7 +12383,7 @@ function Get-NetDomainTrust { process { - if((-not $Domain) -and (-not $API) -and (-not $DomainController)) { + if((-not $Domain) -or ((-not $API) -and (-not $DomainController))) { $Domain = (Get-NetDomain -Credential $Credential).Name } |