
ينشئ تبديلات أسماء النطاقات لتعداد النطاقات الفرعية والاستطلاع، مع دعم قوائم الكلمات المخصصة، وأنماط السحابة، والوضع السريع لتقييمات الأمان.
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 للحصول على التفاصيل.
صُنع بكل ❤️ بواسطة مجتمع الأمن