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

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

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

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

工具目录

分类

查看所有分类
Loading categories
dnsgen — 生成用于子域名枚举与侦察的域名排列组合,支持自定义字典、云模式和快速模式,适用于安全评估。 | Kitploit
工具/GitHubGitHub/alephnullsk/dnsgen
OSINT (开源情报)侦察信息收集渗透测试子域名枚举
GitHubalephnullsk/dnsgen

dnsgen

生成用于子域名枚举与侦察的域名排列组合,支持自定义字典、云模式和快速模式,适用于安全评估。

查看仓库
1.1k1311年前Kitploit 审核通过

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

DNSGen 2.0 - 高级 DNS 名称排列引擎 🚀

License: MIT Python 3.9+ Code style: black

DNSGen 是一款功能强大且灵活的 DNS 名称排列工具,专为安全研究人员和渗透测试人员设计。它会生成智能的域名变体,以辅助子域发现和安全评估。

DNSGen 横幅

✨ 功能特性

  • 🔍 智能域名排列引擎
  • 🚄 快速生成模式,用于快速评估
  • 📝 支持带注释的自定义字典
  • 🎯 从现有域名中智能提取单词
  • 🔧 多种排列技术
  • 🌍 云感知模式和现代命名约定

🚀 快速开始

安装

root@kitploit:~
# Using pip
python -m pip install dnsgen

# Using uv (recommended for development)
git clone https://github.com/AlephNullSK/dnsgen
cd dnsgen/
python -m pip install uv
uv sync

基本用法

root@kitploit:~
# Basic domain permutation
dnsgen domains.txt

# With custom wordlist and output file
dnsgen -w custom_wordlist.txt -o results.txt domains.txt

# Using fast mode for quick assessment
dnsgen -f domains.txt

# Pipe with massdns for resolution
cat domains.txt | dnsgen - | massdns -r resolvers.txt -t A -o J --flush 2>/dev/null

🛠️ 排列技术

DNSGen 2.0 实现了多种复杂的排列技术:

核心排列器

  1. 单词插入

    • 在域名层级之间插入单词
    • 示例:api.example.com → staging.api.example.com
  2. 数字操作

    • 智能修改现有数字
    • 示例:api2.example.com → api1.example.com、api3.example.com
  3. 单词附加

    • 在层级前/后附加单词
    • 示例:api.example.com → devapi.example.com、api-dev.example.com

云与现代化基础设施排列器

  1. 云提供商模式

    • 添加云特有的命名模式
    • 示例:example.com → api-aws.example.com、storage-azure.example.com
  2. 区域前缀

    • 添加地理区域模式
    • 示例:api.example.com → us-east.api.example.com
  3. 微服务模式

    • 生成微服务风格的名称
    • 示例:example.com → auth-service.example.com、user-api.example.com

DevOps 与工具排列器

  1. 内部工具

    • 添加常见的内部工具子域
    • 示例:example.com → jenkins.internal.example.com
  2. 端口前缀

    • 添加常见端口号
    • 示例:api.example.com → 8080.api.example.com

📋 命令行选项

root@kitploit:~
dnsgen [OPTIONS] FILENAME

Options:
  -l, --wordlen INTEGER  Min length of custom words (default: 6)
  -w, --wordlist PATH    Path to custom wordlist
  -f, --fast            Fast generation mode
  -o, --output PATH     Output file path
  -v, --verbose         Enable verbose logging
  --help               Show this message and exit

🔧 高级用法

自定义字典

DNSGen 2.0 支持带注释的字典,以便更好地组织:

root@kitploit:~
# Environment Names
dev
staging
prod

# Cloud Providers
aws
azure
gcp

# Tools and Services
jenkins
gitlab
grafana

与 MassDNS 集成

获取干净解析后的域名:

root@kitploit:~
# Generate and resolve
dnsgen hosts.txt > wordlist.txt
massdns -r resolvers.txt -o S wordlist.txt | grep -e ' A ' | \
  cut -d 'A' -f 1 | rev | cut -d "." -f1 --complement | \
  rev | sort | uniq > resolved_domains.txt

🤝 贡献

欢迎贡献!以下是您可以提供帮助的方式:

  1. 复刻(Fork)仓库
  2. 创建功能分支:git checkout -b feature/amazing-feature
  3. 提交您的更改:git commit -m 'Add amazing feature'
  4. 推送到分支:git push origin feature/amazing-feature
  5. 打开一个 Pull Request

更多详情请参阅 CONTRIBUTING.md。

📚 资源

  • 子域枚举:2019 工作流程
  • 子域枚举:更聪明地完成
  • 项目文档

📜 许可证

本项目基于 MIT 许可证授权 — 详情请参阅 LICENSE 文件。

🙏 致谢

  • 原始概念由 Aleph Null s.r.o. 提出
  • 灵感来自 altdns
  • massdns 用于 DNS 解析

📊 项目状态

  • ✅ 核心功能已完成
  • 🏗️ 正在添加更多排列技术
  • 📝 改进文档
  • 🧪 添加测试

由安全社区用 ❤️ 制作

下载工具