aboutsummaryrefslogtreecommitdiff
path: root/Recon
diff options
context:
space:
mode:
authorHarmJ0y <will@harmj0y.net>2016-12-15 19:04:53 -0500
committerHarmJ0y <will@harmj0y.net>2016-12-15 19:04:53 -0500
commit98539005781d96be19f8d6820078383410bbe16a (patch)
tree5c86fceefaf418bc06ba14acaa8d86de5725c7a1 /Recon
parent831dde1268156d0f73f013aacc87c3216b4b7be7 (diff)
downloadPowerSploit-98539005781d96be19f8d6820078383410bbe16a.tar.gz
PowerSploit-98539005781d96be19f8d6820078383410bbe16a.zip
Type fix.
Added -TrustedToAuth to Get-DomainUser
Diffstat (limited to 'Recon')
-rwxr-xr-xRecon/PowerView.ps127
1 files changed, 19 insertions, 8 deletions
diff --git a/Recon/PowerView.ps1 b/Recon/PowerView.ps1
index c86f90b..b50c647 100755
--- a/Recon/PowerView.ps1
+++ b/Recon/PowerView.ps1
@@ -4423,7 +4423,7 @@ Required Dependencies: Get-DomainSearcher, Convert-ADName, Convert-LDAPProperty
Builds a directory searcher object using Get-DomainSearcher, builds a custom
LDAP filter based on targeting/filter parameters, and searches for all objects
-matching the criteria. To only return specific properies, use
+matching the criteria. To only return specific properties, use
"-Properties samaccountname,usnchanged,...". By default, all user objects for
the current domain are returned.
@@ -4449,6 +4449,10 @@ Switch. Return user accounts that are not marked as 'sensitive and not allowed f
Switch. Return user accounts that are marked as 'sensitive and not allowed for delegation'
+.PARAMETER TrustedToAuth
+
+Switch. Return computer objects that are trusted to authenticate for other principals.
+
.PARAMETER KerberosPreuthNotRequired
Switch. Return user accounts with "Do not require Kerberos preauthentication" set.
@@ -4604,6 +4608,9 @@ The raw DirectoryServices.SearchResult object, if -Raw is enabled.
$DisallowDelegation,
[Switch]
+ $TrustedToAuth,
+
+ [Switch]
$KerberosPreuthNotRequired,
[ValidateNotNullOrEmpty()]
@@ -4731,6 +4738,10 @@ The raw DirectoryServices.SearchResult object, if -Raw is enabled.
Write-Verbose '[Get-DomainUser] Searching for adminCount=1'
$Filter += '(admincount=1)'
}
+ if ($PSBoundParameters['TrustedToAuth']) {
+ Write-Verbose '[Get-DomainUser] Searching for users that are trusted to authenticate for other principals'
+ $Filter += '(msds-allowedtodelegateto=*)'
+ }
if ($PSBoundParameters['KerberosPreuthNotRequired']) {
Write-Verbose '[Get-DomainUser] Searching for user accounts that do not require kerberos preauthenticate'
$Filter += '(userAccountControl:1.2.840.113556.1.4.803:=4194304)'
@@ -5472,7 +5483,7 @@ Required Dependencies: Get-DomainSearcher, Convert-LDAPProperty
Builds a directory searcher object using Get-DomainSearcher, builds a custom
LDAP filter based on targeting/filter parameters, and searches for all objects
-matching the criteria. To only return specific properies, use
+matching the criteria. To only return specific properties, use
"-Properties samaccountname,usnchanged,...". By default, all computer objects for
the current domain are returned.
@@ -5828,7 +5839,7 @@ Required Dependencies: Get-DomainSearcher, Convert-LDAPProperty, Convert-ADName
Builds a directory searcher object using Get-DomainSearcher, builds a custom
LDAP filter based on targeting/filter parameters, and searches for all objects
-matching the criteria. To only return specific properies, use
+matching the criteria. To only return specific properties, use
"-Properties samaccountname,usnchanged,...". By default, all objects for
the current domain are returned.
@@ -7437,7 +7448,7 @@ Required Dependencies: Get-DomainSearcher, Convert-LDAPProperty
Builds a directory searcher object using Get-DomainSearcher, builds a custom
LDAP filter based on targeting/filter parameters, and searches for all objects
-matching the criteria. To only return specific properies, use
+matching the criteria. To only return specific properties, use
"-Properties whencreated,usnchanged,...". By default, all OU objects for
the current domain are returned.
@@ -7700,7 +7711,7 @@ Required Dependencies: Get-DomainSearcher, Convert-LDAPProperty
Builds a directory searcher object using Get-DomainSearcher, builds a custom
LDAP filter based on targeting/filter parameters, and searches for all objects
-matching the criteria. To only return specific properies, use
+matching the criteria. To only return specific properties, use
"-Properties whencreated,usnchanged,...". By default, all site objects for
the current domain are returned.
@@ -7959,7 +7970,7 @@ Required Dependencies: Get-DomainSearcher, Convert-LDAPProperty
Builds a directory searcher object using Get-DomainSearcher, builds a custom
LDAP filter based on targeting/filter parameters, and searches for all objects
-matching the criteria. To only return specific properies, use
+matching the criteria. To only return specific properties, use
"-Properties whencreated,usnchanged,...". By default, all subnet objects for
the current domain are returned.
@@ -8312,7 +8323,7 @@ Required Dependencies: Get-DomainSearcher, Get-DomainObject, Convert-ADName, Con
Builds a directory searcher object using Get-DomainSearcher, builds a custom
LDAP filter based on targeting/filter parameters, and searches for all objects
-matching the criteria. To only return specific properies, use
+matching the criteria. To only return specific properties, use
"-Properties samaccountname,usnchanged,...". By default, all group objects for
the current domain are returned. To return the groups a specific user/group is
a part of, use -MemberIdentity X to execute token groups enumeration.
@@ -10572,7 +10583,7 @@ Required Dependencies: Get-DomainSearcher, Get-DomainComputer, Get-DomainUser, G
Builds a directory searcher object using Get-DomainSearcher, builds a custom
LDAP filter based on targeting/filter parameters, and searches for all objects
-matching the criteria. To only return specific properies, use
+matching the criteria. To only return specific properties, use
"-Properties samaccountname,usnchanged,...". By default, all GPO objects for
the current domain are returned. To enumerate all GPOs that are applied to
a particular machine, use -ComputerName X.