Amass
OWASP Amass is a command-line tool used to perform passive and active network mapping and subdomain discovery.
Subdomain Enumeration (Active/Passive)
Section titled “Subdomain Enumeration (Active/Passive)”# Passive subdomain enumeration (safest, relies only on external APIs)amass enum -passive -d $DOMAIN
# Active subdomain enumeration (includes DNS queries and certificate extraction)amass enum -active -d $DOMAIN
# Active enumeration with custom DNS resolversamass enum -active -d $DOMAIN -r 8.8.8.8,1.1.1.1Passive Intelligence (Target Discovery)
Section titled “Passive Intelligence (Target Discovery)”# Discover ASN and related CIDRs belonging to an organizationamass intel -org "Organization Name"
# Search passive sources for IP address range mappingsamass intel -active -addr 192.168.0.1-254
# Discover related domains via reverse WHOIS searchamass intel -whois -d $DOMAINDatabase Queries & Tracking
Section titled “Database Queries & Tracking”# List all subdomains discovered in past scans from the local DBamass db -names -d $DOMAIN
# Compare differences between different scan datesamass track -d $DOMAIN