Effective use of Subfinder to search for subdomains
by rumprump111 - Friday February 28, 2025 at 02:08 PM
#1
If you are participating in BugBounty programs, then searching for subdomains (subdomains) should be a priority. Today I will show you how to properly use Subfinder to search for subdomains. There are already articles on this topic on the web, but we will go further and try to use Subfinder to the maximum, adding a bunch of APIs for better output.

Using Subfinder to search for subdomains
Subfinder is an open source subdomain search framework created by the ProjectDiscovery team. The tool is fast and efficient and should be in every BugHunter's arsenal.

Installing Golang
First of all, you need to install Golang. For the lazy, here's how to do it quickly:

wget -c https://go.dev/dl/go1.18.4.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.18.4.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin


Installing Subfinder

go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
cd go/bin
mv subfinder /usr/local/bin

Checking the installation:
subfinder -version

Using Subfinder
For this example, we will use a relic site - Yahoo.com - as a test subject

The basic command to search for subdomains is as follows:
subfinder -d yahoo.com
You'll see something like this
[Image: subfinder-3.png]

Subfinder can dig up 17643 subdomains in 30 seconds. This is a good, but not perfect result.

Using the -all directive
Many people forget to use the -all parameter when using subfinder. The -all directive allows you to use all sources (crtsh, Common Crawl, Wayback Archive, etc.) when listing subdomains
subfinder -d yahoo.com -all
[Image: subfinder-4.png]
As you can see, the framework was now able to find 115266 Yahoo subdomains in about 56 seconds and that's not the limit.

Obtaining API keys for Subfinder
Hidden Content
You must register or login to view this content.


Now re-run the command:
nano .config/subfinder/provider-config.yaml
[Image: subfinder-24.png]

As you can see, there is a huge difference between not using the -all parameter, using -all and using -all with API keys.

So, if you want to get a better result with Subfinder, don't forget to add the API.
Reply
#2
Awesome!!!! Thank you
Reply
#3
Checking this out thanks for sharing!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  BOT Intelx Security Search Free- Only breachforum USERS osintsearchbot 9 179 3 hours ago
Last Post: Uzaycan98
  (SECRET) Data breach search engines lulagain 373 10,834 11 hours ago
Last Post: ydudhfys
  BOT Free Telegram Bots To Search for leaked passwords,users,phone numbers,domains.OSNIT fadi 49 1,249 Yesterday, 09:42 PM
Last Post: ISHENKA86
  FREE DATABASE SEARCH owaspattack 27 710 Yesterday, 02:22 PM
Last Post: dkahffkd
  BOT Search for anything email, passwords, phone, IP, full name... Dionysus 136 5,950 08-07-2025, 11:30 PM
Last Post: Dracos

Forum Jump:


 Users browsing this thread: 2 Guest(s)