From c89f0b99693ffded815c23590bfd042afe192b77 Mon Sep 17 00:00:00 2001 From: Harmj0y Date: Fri, 13 May 2016 01:11:47 -0400 Subject: Logic bug fix in Get-NetDomainTrust --- Recon/PowerView.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3