Skip to main content
有关Subfinder所有可用的标志和选项,请务必查看使用说明页面。在本页中,我们将分享使用特定标志和目标运行Subfinder的示例,以及每个示例预期的输出结果。如果您有疑问,请通过帮助联系我们。

基本用法

要在特定目标上运行Subfinder,使用-d标志指定域名。
subfinder -d hackerone.com

               __    _____           __         
   _______  __/ /_  / __(_)___  ____/ /__  _____
  / ___/ / / / __ \/ /_/ / __ \/ __  / _ \/ ___/
 (__  ) /_/ / /_/ / __/ / / / / /_/ /  __/ /    
/____/\__,_/_.___/_/ /_/_/ /_/\__,_/\___/_/ v2.4.9

		projectdiscovery.io

谨慎使用。您需要对自己的行为负责
开发者不承担任何责任,也不对任何滥用或损害负责。
使用subfinder,即表示您同意所使用API的条款。

[INF] 为hackerone.com枚举子域名

www.hackerone.com
support.hackerone.com
links.hackerone.com
api.hackerone.com
o1.email.hackerone.com
go.hackerone.com
3d.hackerone.com
resources.hackerone.com
a.ns.hackerone.com
b.ns.hackerone.com
mta-sts.hackerone.com
docs.hackerone.com
mta-sts.forwarding.hackerone.com
gslink.hackerone.com
hackerone.com
info.hackerone.com
mta-sts.managed.hackerone.com
events.hackerone.com

[INF] 在3秒672毫秒内为hackerone.com发现了18个子域名

将结果传递给其他工具

发现的子域名可以通过管道传递给其他工具。例如,您可以将发现的子域名通过管道传递给httpx,它将在主机上查找运行中的HTTP服务器。
echo hackerone.com | subfinder -silent | httpx -silent

http://hackerone.com
http://www.hackerone.com
http://docs.hackerone.com
http://api.hackerone.com
https://docs.hackerone.com
http://mta-sts.managed.hackerone.com

Subfinder和Docker

使用以下命令拉取最新标记的subfinder Docker镜像:
docker pull projectdiscovery/subfinder:latest
使用Docker镜像运行subfinder
docker run projectdiscovery/subfinder:latest -d hackerone.com
使用Docker镜像和本地配置文件运行subfinder
docker run -v $CONFIG/subfinder:/root/.config/subfinder -t projectdiscovery/subfinder -d hackerone.com

Subfinder Go库

subfinder也可以作为库使用,在示例库中提供了使用subfinder SDK的最小示例。