#8 Subdomain Enumeration —How to find Subdomains of any Domain (2024)

#8 Subdomain Enumeration —How to find Subdomains of any Domain (2)

Hello, I have come today with a very useful topic of recon. In this blog we will see how to find Subdomain of any target. So, lets start.

A subdomain is, as the name would suggest, an additional section of your main Domain name. You create subdomains to help organize and navigate to different sections of your main website. Within your main Domain, you can have as many subdomains as necessary to get to all of the different pages of your website.

#8 Subdomain Enumeration —How to find Subdomains of any Domain (3)

It is one of the most crucial parts of the reconnaissance phase while performing a security assessment. Subdomain Enumeration is a process of finding sub-domains of one or more root domains.

Why we need Subdomain Enumeration?

Subdomain Enumeration helps to create a scope of security assessment by revealing Domains/Subdomains of a target organization. It increases the chance of finding vulnerabilities. And it helps us in finding the web applications that might be forgotten/left unattended by the organization for the maintenance or other reasons and may lead to the disclosure of critical vulnerabilities.

By search engines

Search engines like Google supports various advanced search operators to refine search queries. These operators are often referred to as Google Dorks. We can use site: operator in Google search to find all the Subdomains that Google has found for a Domain. Lets take an example on “site:vulnweb.com”.

#8 Subdomain Enumeration —How to find Subdomains of any Domain (4)

By online sites

These are some online sites who find the Subdomains of any Domain.

  1. https://scantrics.io/subdomain-scanner/
  2. https://site-analyzer.pro/services-seo/site-all-subdomains/
  3. https://wikihak.com/Subdomains/Subdomains-scanner.php
  4. https://subdomainfinder.c99.nl/

Lets take an example

#8 Subdomain Enumeration —How to find Subdomains of any Domain (5)

By Subfinder(in Kali machine)

Subfinder is a Subdomain discovery tool that discovers valid Subdomains for websites by using passive online sources. It has a simple modular architecture and is optimized for speed.

#8 Subdomain Enumeration —How to find Subdomains of any Domain (6)

Installation Subfinder:- Open Kali Terminal

sudo git clone https://github.com/projectdiscovery/subfinder.git

And will be installed. Now open new terminal and type this command

subfinder -d "your target domain"

I am taking “example.com”.

#8 Subdomain Enumeration —How to find Subdomains of any Domain (7)

By Sublist3r(in Kali machine)

Sublister is a tool designed in python and uses OSINT in order to enumerate Subdomains of websites. It helps pen-testers in collecting and gathering Subdomains for a Domain which is their target.

#8 Subdomain Enumeration —How to find Subdomains of any Domain (8)

For installation of Sublist3r checkout this link https://www.geeksforgeeks.org/what-is-sublist3r-and-how-to-use-it/

And will be installed. Now open new terminal and type this command

sublist3r -d "your target domain"

I am taking “vulnweb.com”.

#8 Subdomain Enumeration —How to find Subdomains of any Domain (9)

By Amass(in Kali machine)

This package contains a tool to help information security professionals perform network mapping of attack surfaces and perform external asset discovery using open source information gathering and active reconnaissance techniques.

#8 Subdomain Enumeration —How to find Subdomains of any Domain (10)

Installation Amass:- Open Kali Terminal and write these commands

sudo apt-get update
sudo apt-get install amass

And will be installed. Write the Subdomain Enumeration command.

amass enum -d "your target domain"

I am again taking “vulnweb.com”.

#8 Subdomain Enumeration —How to find Subdomains of any Domain (11)

Brute Force Subdomain By ffuf(in Kali machine)

ffuf is a fest web fuzzer written in Go that allows typical directory discovery, virtual host discovery (without DNS records) and GET and POST parameter fuzzing.

#8 Subdomain Enumeration —How to find Subdomains of any Domain (12)

Installation ffuf:- Open Kali Terminal and write this

git clone https://github.com/ffuf/ffuf ; cd ffuf ; go get ; go build

And will be installed. In this method we are performing brute force, so we also need domain wordlist. You can download the Subdomain wordlist by Google and save wordlists folder. Now see an example on “vulnweb.com”

Command,

ffuf -w /path/to/wordlist -u https://FUZZ.target

-w means wordlist, -u means target URL and FUZZ is the part that has to be brute force.

#8 Subdomain Enumeration —How to find Subdomains of any Domain (13)

Here are some methods to find subdomain, hope you will have learned something new that’s all for today. Thank you for reading. Be an #Ethical Hacker and stay safe.

P.S. I am looking for a job, my email is uttamgupta1802@gmail.com.

#8 Subdomain Enumeration —How to find Subdomains of any Domain (2024)

FAQs

How to find all subdomains of a domain name? ›

WhoisXML Subdomain Lookup is a part of the Domain Research Suite (DRS). It helps you discover a comprehensive list of subdomains associated with your main domain in just one click. With its extensive database that is updated daily, WhoisXML Subdomain Lookup offers up-to-date information about subdomains.

Are subdomains searchable? ›

It means that subdomains are search engine indexable!

Only humans care if the content is on the hosting of the root domain. Search engine robots could not care less. If content is on a subdomain, it is spidered as part of the overall website. Just ask Google!

How to search for subdomains on Google? ›

Google's search operators make it easy to narrow down the search to find more subdomains. We can use the "site" operator in the search bar to find all the subdomains that Google has indexed for a domain. Google also supports the minus operator to exclude any subdomains we are not interested in.

Where are subdomains located? ›

Subdomains are different from directories. Directories are physical folders on an actual computer, while subdomains are a part of the URL that can be routed to any file or folder on the server machine.

What search phrase can be used to find subdomains of a website? ›

There are some subdomains that are defined for virtually every domain name, such as www, and others that are very common, like shop or mail. But by going through and trying a DNS query using `dig`, `nslookup`, or `host` for as many possible subdomains, you might find some hidden ones.

How do I find all subsites of a website? ›

You can usually locate it in the root or footer section of the website. For example, the XML sitemap URL could be “www.example.com/sitemap.xml“. Once you click on the sitemap, you will find all pages & subpages of a website. You can use different sitemap generation tools if you don't have an existing sitemap.

What is subdomain lookup? ›

A Subdomain Finder is a subdomain enumeration tool that helps you discover subdomain hosts (aka subdomain FQDNs) which serve specific functions for your target (e.g. hosting public websites, private subdomains for testing web apps, URLs where you can find backups, etc.).

What is subdomain enumeration? ›

Subdomain enumeration is the process of identifying all subdomains for a. given domain. This can be useful for a variety of purposes, such as. identifying potential targets for an attack, or simply for organizational. purposes.

Why subdomains are bad for SEO? ›

One disadvantage of using subdomains for SEO is that they are treated as separate entities by search engines, which can dilute the overall authority of your main site. Additionally, managing content on subdomains can be more complex than on a subdirectory, as it requires separate hosting and maintenance.

How does Google view subdomains? ›

However, Google treats subdomains as separate sites.

While “blog.example.com” and “example.com” may share a root domain, Googlebot will view them as distinct domains and crawl and index them accordingly.

What is Google dorks for subdomain enumeration? ›

Google Dorking

Google Dorking is a passive subdomain enumeration technique using Google's advanced search operators, like "site:" to find information about a target, including subdomains.

Does Google Search Console include subdomains? ›

Yes. you can verify your subdomain to be used in Google Search Console by linking your account to Google Analytics. This way you avoid customizing the theme of your help center. Go to www.google.com/analytics and set up a property within your Google Analytics account for your subdomain.

How to check if a subdomain is working? ›

There is a tool called HTTPX, which is used to check Subdomains are Active or Not and there are multiple methods to use this tool. We will see the simple method only. If playback doesn't begin shortly, try restarting your device.

What is a common example of a subdomain? ›

While a subdomain will appear before your TLD, a subdirectory link will include the subdirectory name after the original TLD. For example: Subdomain example: mysubdomain.mywebsite.com. Subdirectory example: mywebsite.com/mysubdirectory.

Are subdomains included with the domain? ›

Subdomains are used to expand the use of a single domain, these do not need to be purchased separately to your domain; if you own a domain then you can add a subdomain to this. This method is commonly used for Moodle and Totara site setups.

How many subdomains does a domain have? ›

A domain can have up to 500 subdomains. You can create multiple levels of subdomains such as store.product.yoursite.com, test.forum.yoursite.com, etc. Each subdomain can be up to 255 characters long, but for multi level subdomains, each level can only be 63 characters long.

How do I find all the websites on a domain? ›

Typing "site:YOURDOMAIN.com" (replace "YOURDOMAIN.com" with your site's domain name) in Google's search bar will display a list of indexed pages from your website. Please keep in mind, Google may not discover every page, and the count may include outdated pages.

What is a subfinder? ›

subfinder is a subdomain discovery tool that returns valid subdomains for websites, using passive online sources. It has a simple, modular architecture and is optimized for speed. subfinder is built for doing one thing only - passive subdomain enumeration, and it does that very well.

How do I find all available domains? ›

There are a couple of ways to check if a domain name is available and all of them are surprisingly simple.
  1. Do a simple web search.
  2. Check domain name registrars.
  3. Visit web hosting providers.
  4. Search the WHOIS database.
Apr 14, 2023

Top Articles
Latest Posts
Article information

Author: Eusebia Nader

Last Updated:

Views: 5422

Rating: 5 / 5 (80 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Eusebia Nader

Birthday: 1994-11-11

Address: Apt. 721 977 Ebert Meadows, Jereville, GA 73618-6603

Phone: +2316203969400

Job: International Farming Consultant

Hobby: Reading, Photography, Shooting, Singing, Magic, Kayaking, Mushroom hunting

Introduction: My name is Eusebia Nader, I am a encouraging, brainy, lively, nice, famous, healthy, clever person who loves writing and wants to share my knowledge and understanding with you.