Skip to content

Instantly share code, notes, and snippets.

@xstpl
Forked from KyleHanslovan/DomainEnumeration.bat
Created January 18, 2021 19:55
Show Gist options
  • Save xstpl/7aade611795734a10566f14976365535 to your computer and use it in GitHub Desktop.
Save xstpl/7aade611795734a10566f14976365535 to your computer and use it in GitHub Desktop.
Post-exploitation host/domain survey using native Windows commands.
whoami & hostname & ipconfig /all & net user /domain 2>&1 & net group /domain 2>&1 & net group "domain admins" /domain 2>&1 & net group "Exchange Trusted Subsystem" /domain 2>&1 & net accounts /domain 2>&1 & net user 2>&1 & net localgroup administrators 2>&1 & netstat -an 2>&1 & tasklist 2>&1 & sc query 2>&1 & systeminfo 2>&1 & reg query "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default" 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment