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

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

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

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

工具目录

分类

查看所有分类
Loading categories
gotator — Gotator 是一款通过排列生成 DNS 词表的工具。 | Kitploit
工具/GitHubGitHub/josue87/gotator
侦察DNS和子域名枚举信息收集渗透测试
GitHubjosue87/gotator

gotator

Gotator 是一款通过排列生成 DNS 词表的工具。

查看仓库
530664年前Kitploit 审核通过

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

Gotator

Gotator 是一个通过排列生成 DNS 词表的工具。


🛠️ 安装

如果你想在本地进行修改并编译,请按照以下步骤操作:

root@kitploit:~
> git clone https://github.com/Josue87/gotator.git
> cd gotator
> go build

如果你只关心使用该程序:

root@kitploit:~
> go install github.com/Josue87/gotator@latest

🐳 Docker 选项:

root@kitploit:~
> git clone https://github.com/Josue87/gotator.git
> cd gotator
> docker build -t gotator . 
# 使用
> docker run gotator -sub subdomains.txt  [...]

注意 如果你使用的是 1.16 或更高版本并且遇到错误,请运行以下命令:

root@kitploit:~
> go env -w GO111MODULE="auto"

要升级版本,请在安装命令中添加 -u 参数。

✨ 功能特性

Gotator 具有以下排列特性:

  • 检查域名和顶层域,分析 ccSLD 以避免超出范围(example.com、example.com.mx 等)。
  • 上下排列数字 [-numbers ],例如:
    • 目标子域为 10,numbers 标志设置为 3 [-numbers 3],结果将在 7 到 13 之间。
    • 目标子域为 dev1,numbers 标志设置为 3 [-numbers 3],我们将看到 dev0、dev1、dev2、dev3 和 dev4(避免负数)。
    • 目标子域为 test10-demo2,numbers 标志设置为 1 [-numbers 1],结果中我们将看到 test11-demo2.example.com、test9-demo2.example.com、test10-demo3.example.com 或 test10-demo1.example.com。(每次只更改一个数字)。
  • Gotator 有 3 个深度级别 [-depth ]:
    • 如果深度设置为 1(默认模式),排列 example.com 上的 test 单词,我们将得到 test.example.com。

🗒 选项

可用于启动工具的标志:

👾 使用

root@kitploit:~
gotator -sub domains.txt -perm permutations.txt -depth 2 -numbers 5 > output.txt

要过滤结果并删除可能的重复项:

root@kitploit:~
gotator -sub domains.txt -perm permutations.txt -depth 3 -numbers 10 -md | uniq > output2.txt

如果要对它们进行排序,请将前一个命令中的 uniq 改为 sort -u。(由于时间原因不推荐)

注意:如果你在本地编译,不要忘记在二进制文件前加上 ./!

🚀 示例

注意:示例可能对应于早期版本(其中未使用 -mindup 和 adv)。

我们有以下列表:

image

在第一个例子中,我们在指定的子域上进行变异。

image

在下面的例子中,我们指示 Gotator 使用 -md 从子域中提取可能的域:

image

可以看到 example.com 被考虑在内。现在是一个包含 test100demo 的排列列表的例子,我们使用参数 -numbers 3:

image

可以看到更大的变异深度,还可以指定 prefixes 参数(它会添加一个小的变异列表)。

image

最后一个例子只显示了部分输出。

最后,一个使用静默模式和不同深度并将输出重定向到文件的例子。

image

👉 免责声明

此工具可能生成巨大的文件和一些重复项,我们建议使用 uniq 或 sort -u 过滤输出,并注意 depth 标志,因为输出的大小(很容易生成超过 10 GB 的文件)。请记住,通过管道输出到其他工具需要该工具一次性处理整个输出(sort、uniq)。

  • 示例:
root@kitploit:~
# Filter output by size
gotator -sub subs.txt -perm perm.txt -depth 2 -numbers 5 -md | head -c 1G > output1G.txt

# Filter output by lines
gotator -sub subs.txt -perm perm.txt -depth 3 -mindup -numbers 20 | head -n 100000 > output100Klines.txt

# Sort unique lines
gotator -sub subs.txt -perm perm.txt -depth 2 -mindup -numbers 10 -prefixes | sort -u > outputSortUnique.txt

# Unique lines (only removes duplicate lines that follow each other) 
gotator -sub subs.txt -perm perm.txt -depth 3 -mindup | uniq > outputUnique.txt

# Unique lines 
gotator -sub subs.txt -perm perm.txt -depth 3 -mindup -adv | anew > outputAnew.txt

# Sort unique with limit size
gotator -sub subs.txt -perm perm.txt -prefixes -adv | head -c 1G | sort -u > output1GSortedUnique.txt

注意:示例中使用了 sort -u,这会减慢结果生成速度。没有必要对结果进行排序,建议使用 anew。

注意:此工具生成大量输出信息,建议使用 mindup 标志以减少行数。

下载工具
  • 如果深度设置为 2,并且我们需要排列 example.com 上的 dev 和 demo,除了 demo.example.com 和 dev.example.com 之外,我们还会得到 dev.demo.example.com 或 demo-dev.example.com。深度级别 3 是这个例子的扩展。
  • 使用 -mindup 标志可以控制和减少重复(由于生成的行数很多,目标是尽可能减少几乎不可能存在的域):
    • 如果我们有 test.example.com,下一个排列依然是 test,则忽略。
    • 如果我们有 testing.example.com,并且出现了 test,匹配 test 时会与 . 和 - 结合,避免 testtesting.example.com
    • 如果我们有 100.example.com,并且它得到 90 进行排列,则忽略该排列,因为它已经具有数字排列功能。
    • 如果我们有 test100.example.com,并且它得到 test 进行排列,我们会移除数字,然后 test==test,因此忽略该排列,因为它已经非常相似。
  • 使用 adv 标志:
    • 对于目标内的子域,例如 demo210.example.com,我们获取值 demo210 并将其添加到排列列表中。如果我们有 test-dev.domain.com,则向排列添加 test-dev、test 和 dev(仅当它们不在列表中时)。
    • 对于排列词,如果 gotator 收到 demo-test,它会将 demo-test、demo 和 test 添加到列表中。
    • 仅适用于 depth 1。使用此选项,如果子域目标是 tech.example.com,排列是 test,我们还会交换排列 "-" 和 "" 的位置,得到诸如 techtest.example.com 和 tech-test.example.com 的结果(参见示例 1)。
  • 交换域的模式,即如果目标是 dev.tech.example.com,则会添加为目标 tech.example.com 和 example.com [-md]。
  • 添加 gotator 中定义的默认排列列表的选项 [-prefixes]。
    • 前缀列表:1rer, 2, 2tty, admin, api, app, bbs, blog, cdn, cloud, cuali, demo, dev, dev2, email, exchange, forum, ftp, gov, govyty, gw, host, m, mail, mail2, mx1, mysql, news, ns, ns1, owa, portal, pre, pro, prod, prueba, qa, remote, secure, server, shop, smtp, store, support, test, test, tty, vpn, vps, web, ww1, ww42, www, www2。
  • 只有结果会写入标准输出。横幅和消息发送到错误输出。因此你可以对命令进行管道操作。
  • 标志类型必须描述示例
    substring是要交换的域列表。-sub subdomains.txt
    permstring否排列列表。-perm permutations.txt
    depthuint否配置深度(1 到 3 之间) - 默认 1。-depth 2
    numbersuint否配置对排列中找到的数字进行迭代的次数(向上和向下)。默认 0 跳过!此选项会影响性能,请使用较小的数字-numbers 10
    prefixesbool否将 gotator 默认前缀添加到排列。如果未配置,默认使用 perm。如果同时指定了 perm 和此标志,则合并排列。-prefixes
    mdbool否从 'sub' 列表中找到的子域中提取'先前'域和子域。-md
    advbool否高级选项。生成包含子域和带有 - 的词的排列。并将排列词放在后面(depth 1)。-adv
    mindupbool否设置此标志以最小化重复。(对于繁重的工作负载,建议激活此标志)。-mindup
    fastbool否不检查根域(注意你的范围)-fast
    silentbool否不显示 Gotator 横幅。-silent
    tuint否最大 Go 协程数(默认 100)。注意:数据通过控制台输出,线程可能会增加处理时间-t 200
    versionbool否显示 Gotator 版本-version