aboutsummaryrefslogtreecommitdiff
path: root/Recon/PowerView.ps1
diff options
context:
space:
mode:
authorHarmj0y <will@harmj0y.net>2016-05-13 01:11:47 -0400
committerHarmj0y <will@harmj0y.net>2016-05-13 01:11:47 -0400
commitc89f0b99693ffded815c23590bfd042afe192b77 (patch)
tree392d249c493b7bbd85b52ef506a7eb2107868e2f /Recon/PowerView.ps1
parent7d3f0066ec4558d3625580e12740604b8894f1fe (diff)
downloadPowerSploit-c89f0b99693ffded815c23590bfd042afe192b77.tar.gz
PowerSploit-c89f0b99693ffded815c23590bfd042afe192b77.zip
Logic bug fix in Get-NetDomainTrust
Diffstat (limited to 'Recon/PowerView.ps1')
-rw-r--r--Recon/PowerView.ps12
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
}