mirror of
https://github.com/PowerShellMafia/PowerSploit
synced 2026-06-08 12:13:33 +00:00
Logic bug fix in Get-NetDomainTrust
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user