
Erzeugt Domänennamen-Permutationen für Subdomain-Enumeration und Recon, mit Unterstützung für benutzerdefinierte Wordlists, Cloud-Muster und einen Schnellmodus für Sicherheitsbewertungen.
DNSGen ist ein leistungsstarkes und flexibles Werkzeug zur Permutation von DNS-Namen, das für Sicherheitsforscher und Penetrationstester entwickelt wurde. Es erzeugt intelligente Domain-Name-Variationen, um die Subdomain-Erkennung und Sicherheitsbewertungen zu unterstützen.

# 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 implementiert mehrere ausgefeilte Permutationstechniken:
Worteinfügung
api.example.com → staging.api.example.comZahlenmanipulation
api2.example.com → api1.example.com, api3.example.comWort-Affigierung
api.example.com → devapi.example.com, api-dev.example.comCloud-Anbieter-Muster
example.com → api-aws.example.com, storage-azure.example.comRegion-Präfixe
api.example.com → us-east.api.example.comMicroservice-Muster
example.com → auth-service.example.com, user-api.example.comInternes Tooling
example.com → jenkins.internal.example.comPort-Präfixe
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 unterstützt kommentierte Wortlisten für eine bessere Organisation:
# Environment Names
dev
staging
prod
# Cloud Providers
aws
azure
gcp
# Tools and Services
jenkins
gitlab
grafana
Erhalte sauber aufgelöste Domains:
# 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
Beiträge sind willkommen! So kannst du helfen:
git checkout -b feature/amazing-featuregit commit -m 'Add amazing feature'git push origin feature/amazing-featureWeitere Details findest du in CONTRIBUTING.md.
Dieses Projekt ist unter der MIT-Lizenz lizenziert – siehe Datei LICENSE für Details.
Mit ❤️ von der Sicherheits-Community erstellt