Windows
Tips
Multiple Users
If there's more than one user that needs to compromised before getting root, enumerate each user as they might have access to something new that was protected before.
Temporary Account
If some info suggests that an account is only temporary, then they might have some misconfigurations or rights that other users don't have. Especially if they're created by a user which is in a group that has higher privileges.
DNS
# Normal DNS request
dig A @<ip> <domain>
# Get all available entries
dig any server.local @<DNS_IP>
# Zone transfer without domain
dig axfr @<DNS_IP>
# Zone transfer with domain
dig axfr @<DNS_IP> <DOMAIN>
# Subdomain scan
gobuster dns -d domain.local -t 25 -w <wordlist>
# Normal nmap scan
nmap -sSU -p53 --script dns-nsec-enum --script-args dns-nsec-enum.domains=paypal.com <domain>
# Metasploit
auxiliary/gather/enum_dnsAttacks
Zone Transfer
DNS servers contain a Zone file that replicates the map of the domain. Only the server itself should have access to it, but if it's misconfigured anyone can request the file and get the list of all the sub-domains.
Ports
LDAP
Notes
Passwords in Result
If an ldapsearch query comes back with users, try checking whether they have any password related options set.
Example(s)
Info Field
Log of a query might contain some info in the user. In many CTF-s they put passwords there. ​
Ports
SMB
Enumeration
Ports
Kerberos
GetNPUsers.py
Impacket's GetNPUsers.py will attempt to harvest the non-preauth AS_REP responses for a given list of usernames
Kerberoasting
Kerberoasting is a post-exploitation attack technique that attempts to obtain a password hash of an Active Directory account that has a Service Principal Name.
Cracking The Ticket
Troubleshooting
NTLM hash disabled
Use the -k option as well as -dc-host instead of -dc-ip. As the latter will break the authentication and throw an error.
References
Ports
RPC
Enumeration
Establishing Connection
NIS
Ports
Analyse Office Files
Modern Office documents are just zip archives with XML files so, just unzip it and look for data within the XML files.
Unzip
oletools
oletools is a package of python tools to analyze Microsoft OLE2 files (also called Structured Storage, Compound File Binary Format or Compound Document File Format), such as Microsoft Office documents or Outlook messages
Last updated