- Kali Linux:An Ethical Hacker's Cookbook(Second Edition)
- Himanshu Sharma
- 255字
- 2021-06-24 15:59:14
Subfinder
Subfinder is considered as a successor to sublist3r. It is amazingly fast and finds valid subdomains using passive online sources such as Ask, Archive.is, Baidu, Bing, Censys, CertDB, CertSpotter, Commoncrawl, CrtSH, DnsDB and so on.
- Install subfinder. It needs Go to be installed, which we can install by using the following command:
apt install golang
The following screenshot shows the output of the preceding command:

- Next, we clone subfinder by using the following command:
git clone https://github.com/subfinder/subfinder.git
The following screenshot shows the output of the preceding command:

Or you can download and save it from https://github.com/subfinder/subfinder.
- To install subfinder, we go to the cloned directory and run the go build command.
- Once the installation is complete, we will need a wordlist for it to run, so we can download dnspop's list. This list can be used in the previous recipe too: https://github.com/bitquark/dnspop/tree/master/results.
- Now that both are set up, we browse into subfinder's directory and run it using the ./subfinder -h command.
The following screenshot shows the output of the preceding command:

- To run it against a domain with our wordlist, we use the following command:
./subfinder -w /path/to/wordlist -d hostname.com
If we do not specify a wordlist the tool will run with a default wordlist as shown in the following screenshot:

Once the enumeration is complete, the output will be shown onscreen as follows:

- Subfinder is also designed to work with services such as shodan, censys, and virustotal, but they need to be configured in the config.json file shown here:

推薦閱讀
- 操作系統(tǒng)實(shí)用教程(Linux版)
- Learning Windows Server Containers
- Linux性能優(yōu)化
- Linux集群和自動(dòng)化運(yùn)維
- Linux Shell編程從入門到精通(第2版)
- 混沌工程:復(fù)雜系統(tǒng)韌性實(shí)現(xiàn)之道
- 深入Linux內(nèi)核架構(gòu)與底層原理(第2版)
- 嵌入式操作系統(tǒng)(Linux篇)(微課版)
- Java EE 8 Design Patterns and Best Practices
- 8051軟核處理器設(shè)計(jì)實(shí)戰(zhàn)
- Linux基礎(chǔ)使用與案例
- Linux 從入門到項(xiàng)目實(shí)踐(超值版)
- Android應(yīng)用性能優(yōu)化最佳實(shí)踐
- Azure Resource Manager Templates Quick Start Guide
- Microsoft DirectAccess Best Practices and Troubleshooting