Documentation
README
Subdomain Takeover
Objective
Identify subdomains with dangling DNS records (CNAME pointing to unclaimed cloud resources) and claim them to serve attacker content.
Testing Methodology
Phase 1: Subdomain Enumeration
# Passive enumeration
subfinder -d TARGET.com -silent | tee subdomains.txt
# Certificate transparency
curl -s "https://crt.sh/?q=%25.TARGET.com&output=json" | jq -r '.[].name_value' | sort -u >> subdomains.txt
# DNS brute force
puredns bruteforce wordlist.txt TARGET.com -r resolvers.txt >> subdomains.txt
Phase 2: Automated Takeover Check
# Check all subdomains for takeover
attack_script subdomain_takeover subdomains.txt --json-output
This is the opening of the README. Read the full README on GitHub.