How to find subdomains with Sublist3r

Tr0jan_Horse

Moderator
Staff member
MODERATOR
ULTIMATE
PREMIUM
MEMBER
Joined
Oct 23, 2024
Messages
304
Reaction score
8,799
Deposit
0$
How to Find Subdomains with Sublist3r

Subdomain enumeration is a crucial step in the reconnaissance phase of penetration testing and security assessments. One of the most popular tools for this purpose is Sublist3r. In this article, we will explore how to effectively use Sublist3r to find subdomains.

What is Sublist3r?

Sublist3r is a fast subdomain enumeration tool written in Python. It helps security researchers and penetration testers to gather subdomains of a target domain through various search engines and APIs. This tool is particularly useful for identifying potential attack vectors.

Installation

To get started with Sublist3r, you need to have Python installed on your system. Follow these steps to install Sublist3r:

1. **Clone the repository**:
Code:
git clone https://github.com/aboul3la/Sublist3r.git

2. **Navigate to the directory**:
Code:
cd Sublist3r

3. **Install the required dependencies**:
Code:
pip install -r requirements.txt

Usage

Once you have Sublist3r installed, you can start using it to find subdomains. Here’s how:

1. **Basic Command**:
To find subdomains for a specific domain, use the following command:
Code:
python sublist3r.py -d example.com

2. **Using Multiple DNS Servers**:
You can specify DNS servers to use for the enumeration:
Code:
python sublist3r.py -d example.com -s 8.8.8.8,1.1.1.1

3. **Saving Results**:
To save the results to a file, use the `-o` option:
Code:
python sublist3r.py -d example.com -o subdomains.txt

4. **Using APIs**:
Sublist3r can utilize various APIs to enhance its search capabilities. You can set your API keys in the configuration file to use services like VirusTotal, Google, and DNSdumpster.

Advanced Options

Sublist3r offers several advanced options to refine your search:

- **Brute Force**: You can use brute force to discover subdomains:
Code:
python sublist3r.py -d example.com -b

- **Verbose Mode**: For more detailed output, enable verbose mode:
Code:
python sublist3r.py -d example.com -v

Conclusion

Sublist3r is a powerful tool for subdomain enumeration that can significantly aid in your security assessments. By following the steps outlined above, you can efficiently discover subdomains and enhance your reconnaissance efforts. For more information and updates, check out the official GitHub repository.

Happy hacking!
 
Top Bottom