
サブドメイン列挙とリコン用のドメイン名順列を生成し、カスタムワードリスト、クラウドパターン、セキュリティ評価用の高速モードをサポートします。
DNSGenは、セキュリティ研究者やペネトレーションテスター向けに設計された、強力で柔軟なDNS名パーミュテーションツールです。サブドメインの発見やセキュリティ評価を支援するために、インテリジェントなドメイン名バリエーションを生成します。

# 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
# 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は、複数の高度なパーミュテーション手法を実装しています:
単語挿入
api.example.com → staging.api.example.com数値操作
api2.example.com → api1.example.com, api3.example.com単語付加
api.example.com → devapi.example.com, api-dev.example.comクラウドプロバイダーパターン
example.com → api-aws.example.com, storage-azure.example.comリージョンプレフィックス
api.example.com → us-east.api.example.comマイクロサービスのパターン
example.com → auth-service.example.com, user-api.example.com内部ツール
example.com → jenkins.internal.example.comポートプレフィックス
api.example.com → 8080.api.example.comdnsgen [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は、整理しやすいようにコメント付きワードリストをサポートしています:
# Environment Names
dev
staging
prod
# Cloud Providers
aws
azure
gcp
# Tools and Services
jenkins
gitlab
grafana
クリーンな解決済みドメインを取得:
# 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
コントリビューションを歓迎します! 協力方法は以下のとおりです:
git checkout -b feature/amazing-featuregit commit -m 'Add amazing feature'git push origin feature/amazing-feature詳細は CONTRIBUTING.md を参照してください。
このプロジェクトはMITライセンスの下でライセンスされています。詳細は LICENSE ファイルを参照してください。
セキュリティコミュニティにより ❤️ を込めて作られました