Active Directory LDAP
Nov 5, 2026
Bối cảnh
You have been contracted by the
INLANEFREIGHT organization to perform an Active Directory security assessment to assess what flaws exist that could potentially be exploited by an attacker who gains internal network access with a standard Domain User account.(Không hỗ trợ Bind Connection)
Bài làm
Câu hỏi | Câu trả lời |
Find the one user who has a useraccountcontrol attribute equivalent to 262656. | Get-ADUser -LDAPFilter "(userAccountControl:1.2.840.113556.1.4.803:=262656)” | select Name |
Using built-in tools enumerate a user that has the PASSWD_NOTREQD UAC value set. | Get-ADUser -LDAPFilter "(userAccountControl:1.2.840.113556.1.4.804:=32)” | select Name |
What group is the IT Support group nested into? | Get-ADGroup -Identity "IT Support" -Properties * | select MemberOf |
Who is a part of this group through nested group membership? | Get-ADGroup -Identity "IT Support" -Properties * | select MemberOf |
How many users are in the Former Employees OU? | Get-ADObject -Filter * | findstr "Former Employees”
⇒ OU=Former Employees,DC=INLANEFREIGHTENUM1,DC=LOCAL
(Get-ADUser -SearchBase "OU=Former Employees,DC=INLANEFREIGHTENUM1,DC=LOCAL" -SearchScope sub -Filter *).count |
What is the name of the computer that starts with RD? (Submit the FQDN in all capital letters) | Get-ADComputer -Filter "Name -like 'RD*'" -Properties * | select CanonicalName,CN |
How many groups exist where the admincount attribute is set to 1? | (Get-ADGroup -Filter "admincount -eq 1").count |
What user could be subjected to an ASREPRoasting attack and is NOT a protected user? (first.last) | Get-ADUser -Filter "DoesNotRequirePreAuth -eq 'true'" -Properties DoesNotRequirePreAuth, MemberOf | select Name,MemberOf |
What is the samaccountname of the one SPN set in the domain? | Get-ADUser -Filter "ServicePrincipalNames -like '*'" -Properties ServicePrincipalNames | select SamAccountName |
What non-default privilege does the htb-student user have? | Import-Module .\PowerView.ps1
(Get-DomainPolicy).PrivilegeRights |