Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.bytejmp.com/llms.txt

Use this file to discover all available pages before exploring further.

Net Commands (From Domain-Joined Host)

net user /domain
net user USERNAME /domain
net group /domain
net group "Domain Admins" /domain
net group "Domain Controllers" /domain
net accounts /domain
net share
nltest /dclist:DOMAIN
nltest /domain_trusts

PowerShell AD Module

Import-Module ActiveDirectory

Get-ADDomain
Get-ADForest
Get-ADUser -Filter * -Properties *
Get-ADUser -Filter * | Select Name, SamAccountName
Get-ADGroup -Filter * | Select Name
Get-ADGroupMember "Domain Admins"
Get-ADComputer -Filter * | Select Name, DNSHostName
Get-ADTrust -Filter *

dsquery

dsquery user -limit 0
dsquery computer -limit 0
dsquery group -limit 0
dsquery * -filter "(servicePrincipalName=*)" -attr distinguishedName servicePrincipalName

ldapsearch (Linux)

ldapsearch -x -H ldap://DC_IP -b "DC=domain,DC=local"
ldapsearch -x -H ldap://DC_IP -b "DC=domain,DC=local" -D "[email protected]" -w 'password'

Users

ldapsearch -x -H ldap://DC_IP -b "DC=domain,DC=local" -D "[email protected]" -w 'pass' "(objectClass=user)" sAMAccountName

Groups

ldapsearch -x -H ldap://DC_IP -b "DC=domain,DC=local" "(objectClass=group)" cn member

Domain Admins

ldapsearch -x -H ldap://DC_IP -b "CN=Domain Admins,CN=Users,DC=domain,DC=local" member

SPNs (Kerberoastable)

ldapsearch -x -H ldap://DC_IP -b "DC=domain,DC=local" "(servicePrincipalName=*)" sAMAccountName servicePrincipalName

Key Objects to Enumerate

ObjectWhy
Domain AdminsHigh-value targets
Service accountsKerberoasting candidates
Domain ControllersCore infrastructure
TrustsLateral movement paths
GPOsPolicy misconfigurations
OUsStructure understanding
DNS recordsInternal host discovery

Quick Reference

TaskCommand
List usersnet user /domain
Domain adminsnet group "Domain Admins" /domain
LDAP enumldapsearch -x -H ldap://DC -b "DC=dom,DC=local"
SPNsldapsearch ... "(servicePrincipalName=*)"
Trustsnltest /domain_trusts