Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
Sublist3r — 用于渗透测试人员的快速子域名枚举工具 | Kitploit
工具/GitHubGitHub/aboul3la/sublist3r
OSINT (开源情报)侦察DNS和子域名枚举信息收集渗透测试子域名枚举DNS 分析DNS和子域名枚举 分类第 9 名子域名枚举 分类第 9 名
11.0k2.2k226年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
GitHub
aboul3la/sublist3r

Sublist3r

用于渗透测试人员的快速子域名枚举工具

查看仓库

关于 Sublist3r

Sublist3r 是一款使用 OSINT 枚举网站子域名的 Python 工具。它帮助渗透测试人员和漏洞猎人收集目标域名的子域名。Sublist3r 使用多种搜索引擎进行子域名枚举,例如 Google、Yahoo、Bing、Baidu 和 Ask。Sublist3r 还利用 Netcraft、Virustotal、ThreatCrowd、DNSdumpster 和 ReverseDNS 进行子域名枚举。

subbrute 已集成到 Sublist3r 中,通过使用改进的字典进行暴力破解,增加了发现更多子域名的可能性。感谢 subbrute 的作者 TheRook。

截图

Sublist3r

安装

root@kitploit:~
git clone https://github.com/aboul3la/Sublist3r.git

推荐的 Python 版本:

Sublist3r 目前支持 Python 2 和 Python 3。

  • Python 2 的推荐版本是 2.7.x
  • Python 3 的推荐版本是 3.4.x

依赖:

Sublist3r 依赖 requests、dnspython 和 argparse 这几个 Python 模块。

这些依赖项可以通过 requirements 文件进行安装:

  • Windows 安装:
root@kitploit:~
c:\python27\python.exe -m pip install -r requirements.txt
  • Linux 安装:
root@kitploit:~
sudo pip install -r requirements.txt

或者,也可以按如下所示单独安装每个模块。

Requests 模块 (http://docs.python-requests.org/en/latest/)

  • Windows 安装:
root@kitploit:~
c:\python27\python.exe -m pip install requests
  • Ubuntu/Debian 安装:
root@kitploit:~
sudo apt-get install python-requests
  • Centos/Redhat 安装:
root@kitploit:~
sudo yum install python-requests
  • 使用 pip 在 Linux 上安装:
root@kitploit:~
sudo pip install requests

dnspython 模块 (http://www.dnspython.org/)

  • Windows 安装:
root@kitploit:~
c:\python27\python.exe -m pip install dnspython
  • Ubuntu/Debian 安装:
root@kitploit:~
sudo apt-get install python-dnspython
  • 使用 pip 安装:
root@kitploit:~
sudo pip install dnspython

argparse 模块

  • Ubuntu/Debian 安装:
root@kitploit:~
sudo apt-get install python-argparse
  • Centos/Redhat 安装:
root@kitploit:~
sudo yum install python-argparse
  • 使用 pip 安装:
root@kitploit:~
sudo pip install argparse

在 Windows 中启用颜色显示,请安装以下库

root@kitploit:~
c:\python27\python.exe -m pip install win_unicode_console colorama

使用方法

示例

  • 使用 -h 开关列出所有基本选项和开关:

python sublist3r.py -h

  • 枚举特定域名的子域名:

python sublist3r.py -d example.com

  • 枚举特定域名的子域名,并仅显示开放 80 和 443 端口的子域名:

python sublist3r.py -d example.com -p 80,443

  • 枚举特定域名的子域名并实时显示结果:

python sublist3r.py -v -d example.com

  • 枚举子域名并启用暴力破解模块:

python sublist3r.py -b -d example.com

  • 枚举子域名并使用特定引擎,例如 Google、Yahoo 和 Virustotal 引擎:

python sublist3r.py -e google,yahoo,virustotal -d example.com

在 Python 脚本中将 Sublist3r 作为模块使用

示例

root@kitploit:~
import sublist3r 
subdomains = sublist3r.main(domain, no_threads, savefile, ports, silent, verbose, enable_bruteforce, engines)

main 函数将返回 Sublist3r 找到的唯一子域名集合。

函数用法:

  • domain:你想要枚举子域名的域名。
  • savefile:将输出保存到文本文件。
  • ports:指定要扫描的 TCP 端口列表,以逗号分隔。
  • silent:将 sublist3r 设置为在执行期间以静默模式运行(当你不需要太多输出时很有用)。
  • verbose:实时显示找到的子域名。
  • enable_bruteforce:启用暴力破解模块。
  • engines:(可选)选择特定引擎。

枚举 yahoo.com 子域名的示例:

root@kitploit:~
import sublist3r 
subdomains = sublist3r.main('yahoo.com', 40, 'yahoo_subdomains.txt', ports= None, silent=False, verbose= False, enable_bruteforce= False, engines=None)

许可证

Sublist3r 采用 GNU GPL 许可证授权。更多信息请查看 LICENSE。

致谢

  • TheRook - 暴力破解模块基于他的脚本 subbrute。
  • Bitquark - Subbrute 的字典基于他的研究 dnspop。

感谢

  • 特别感谢 Ibrahim Mosaad 对工具的改进作出的巨大贡献。

版本

当前版本为 1.0

下载工具
短格式长格式描述
-d--domain要枚举子域名的域名
-b--bruteforce启用 subbrute 暴力破解模块
-p--ports针对特定的 TCP 端口扫描找到的子域名
-v--verbose启用详细模式并实时显示结果
-t--threads用于 subbrute 暴力破解的线程数
-e--engines指定由逗号分隔的搜索引擎列表
-o--output将结果保存到文本文件
-h--help显示帮助信息并退出