diff options
author | HarmJ0y <will@harmj0y.net> | 2017-01-11 15:55:35 -0500 |
---|---|---|
committer | HarmJ0y <will@harmj0y.net> | 2017-01-11 15:55:35 -0500 |
commit | d4166f80d4153b175a1e8e2a0f69eca58e04d2f9 (patch) | |
tree | 91b5695ba658ef44a30e732181878d806e0cc52b /Recon/PowerView.ps1 | |
parent | 6c113b7956f811af66ced410a41b5bf8c6a4981f (diff) | |
download | PowerSploit-d4166f80d4153b175a1e8e2a0f69eca58e04d2f9.tar.gz PowerSploit-d4166f80d4153b175a1e8e2a0f69eca58e04d2f9.zip |
bug fix for Get-DomainObject/Get-DomainObjectACL
Diffstat (limited to 'Recon/PowerView.ps1')
-rwxr-xr-x | Recon/PowerView.ps1 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Recon/PowerView.ps1 b/Recon/PowerView.ps1 index a16e066..3afa61c 100755 --- a/Recon/PowerView.ps1 +++ b/Recon/PowerView.ps1 @@ -6074,7 +6074,7 @@ The raw DirectoryServices.SearchResult object, if -Raw is enabled. elseif ($IdentityInstance -match '^S-1-.*') { $IdentityFilter += "(objectsid=$IdentityInstance)" } - elseif ($IdentityInstance -match '^(CN|OU)=.*') { + elseif ($IdentityInstance -match '^(CN|OU|DC)=.*') { $IdentityFilter += "(distinguishedname=$IdentityInstance)" } else { @@ -6774,7 +6774,7 @@ Custom PSObject with ACL entries. if ($IdentityInstance -match '^S-1-.*') { $IdentityFilter += "(objectsid=$IdentityInstance)" } - elseif ($IdentityInstance -match '^(CN|OU)=.*') { + elseif ($IdentityInstance -match '^(CN|OU|DC)=.*') { $IdentityFilter += "(distinguishedname=$IdentityInstance)" } else { |