To install the Subfinder tool for subdomain enumeration, you need to have a basic understanding of the command line and some experience with using a terminal or command prompt.

Here are the steps to install Subfinder on a Linux or macOS system:

  1. Install Go, if you don't have it already installed:

sudo apt-get install golang-go
  1. Set up the GOPATH environment variable:

export GOPATH=$HOME/go
  1. Install Subfinder:

go get -u
  1. Once the installation is complete, you can run Subfinder from the terminal by typing:


To install Subfinder on a Windows system, you will need to follow a similar process, but some of the commands and steps may be different.

Once Subfinder is installed, you can use it to perform subdomain enumeration on a target domain. For example, to enumerate subdomains for the domain "", you can run the following command:

subfinder -d

To perform a more complete subdomain enumeration on the domain "" using Subfinder, you can use the following command:

subfinder -d -all -silent -o example_com_output.txt

This command will enumerate all possible subdomains for the domain "" using all of the available sources, and it will write the results to a file named "example_com_output.txt".

The -all option is used to tell Subfinder to use all available sources for subdomain enumeration, including passive sources such as the Alexa top 1 million websites, as well as active sources such as brute force and recon-ng.

The -silent option is used to suppress the output to the terminal, which can be useful when performing large-scale enumeration.

The -o option is used to specify the output file, which in this case is "example_com_output.txt".

Once the command is run, Subfinder will perform the subdomain enumeration, and the results will be saved to the specified output file. You can then review the file to see the list of subdomains for the domain "".

These are the basic steps for performing an advanced subdomain enumeration using Subfinder. You can find more information on the options available with Subfinder by running the following command:

subfinder -h

This will display the help information for the tool, which includes a description of each option and how to use it.

Last updated