🌐
Subdomain Enumeration Guide
  • Home 🏠
  • Introduction
    • What's the need ?🤔
    • Prerequisites
  • Types
    • Horizontal Enumeration
    • Vertical Enumeration
  • Passive Techniques
    • Passive Sources
    • Certificate Logs
    • Recursive Enumeration
  • Active Techniques
    • DNS Bruteforcing
    • Permutation/Alterations
    • Scraping(JS/Source code)
    • Google analytics
    • TLS, CSP, CNAME Probing
    • VHOST probing
  • Web probing
  • Automation 🤖
Powered by GitBook
On this page
  • 1) TLS Probing
  • 2) CSP Probing
  • 3) CNAME Probing

Was this helpful?

  1. Active Techniques

TLS, CSP, CNAME Probing

PreviousGoogle analyticsNextVHOST probing

Last updated 2 years ago

Was this helpful?

1) TLS Probing

Nowadays generally all websites communicate over HTTPS(HyperText Transfer Protocol Secure). In order to use HTTPS, the website owner needs to issue an SSL(Secure Socket Layer) certificate.

This SSL/TLS(Transport Layer Security) certificate contains hostname belonging to the same organization.

Clicking on the "Lock🔒" button in the address bar, you can view the TLS/SSL certificate of any website.

Installation:

go install github.com/glebarez/cero@latest

Running:

cero in.search.yahoo.com | sed 's/^*.//' | grep -e "\." | sort -u

2) CSP Probing

In order to defend from the XSS attacks as well as keeping in mind to allow cross-domain resource sharing in websites CSP(Content Security Policies) are used. These CSP headers sometimes contain domains/subdomains from where the content is usually imported.

cat subdomains.txt | httpx -csp-probe -status-code -retries 2 -no-color | anew csp_probed.txt | cut -d ' ' -f1 | unfurl -u domains | anew -q csp_subdomains.txt

3) CNAME Probing

I personally came across 2-3 cases where visiting the CNAME of the website showed me the same website without a firewall. (I personally don't know why this happened)

Since then I probe the CNAME's of the subdomains found.

dnsx -retry 3 -cname -l subdomains.txt

For this purpose, we will be using a tool called

Hence, these subdomains can be helpful for us. In the below image we can see I extracted domains/subdomains from the CSP header of

Cero
twitter.com
Hackerone.com contain these subdomains in its TLS certificate