One Liner
One liner for bug bounty hunter
Finding Domains for Subdomain Takeover (STO)
Requirements:
Subdomain discovery using
subfinder.HTTP probing of discovered hosts using
httpx.Filtering for 404 responses using
grep.Extracting subdomain parts using
cut.DNS lookup for CNAME records using
host.Formatting the final output using
awkandcolumn.
subfinder -dL scope > HOSTS | httpx -follow-redirects -sc -l HOSTS | tee httpx_output ; grep 404 httpx_output > ready_to_test_for_SDT ; for a in $(cat ready_to_test_for_SDT | cut -d/ -f3); do host -t CNAME $a; done | grep for | awk '{print $1 " | " $6}' | column -t -s '|'After that search the names in the "Can I take Over"
Last updated