External enumeration involves gathering information about Windows systems from outside the network. Techniques like SMB probing, Nmap scanning, and DNS zone transfers help identify active hosts, exposed services, and potential vulnerabilities before gaining internal access.
Network Discovery
Identify live hosts and gather basic network information to map out the target environment.
Nmap
Enumerating hosts using ping scan.
nmap -sn <TARGET_SUBNET>
Zone Transfer
Zone transfers can reveal detailed DNS information, including records for hosts within the domain.
dig axfr <domain_name>@<name_server>
Smb
Enumerating smb hosts:
nxc smb <target_subnet>
Note: DC smb signing is true by default.
Service and Port Scanning
Enumerate open ports and running services to identify potential entry points.
Nmap
Scanning specific hosts:
nmap -Pn -p- -sC -sV -oN <output_file> <target>
-Pn donβt do ping scan
-p- scan the 65535 ports instead of the default nmap 1000 top ports
-sC run default script for reconnaissance
-sV enumerate the version
-oN write results in normal format
RPC
Checking for Null Sessions:
rpcclient -U "" <target>
Active Directory Reconnaissance
Gather detailed information about Active Directory environments, including users, groups, and policies.