Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/pry0cc/subgen
ReconnaissanceDNS & Subdomain EnumerationInformation GatheringSubdomain Enumeration
GitHubpry0cc/subgen

subgen

A really simple utility to concate wordlists to a domain name - to pipe into your favourite resolver!

View Repository
85136 years agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
subgen — A really simple utility to concate wordlists to a domain name - to pipe into your favourite resolver! | Kitploit

Subgen - a subdomain concating-utility with some smarts

If you've come to the realisation that you'd like to split up your DNS enumeration methodology by generating combinations and/or pulling passive data from other sources, then subgen is the sorter & concator you're probably looking for

### Installation

If you have a properly configured GOPATH and $GOPATH/bin is in your PATH, then run this command for a one-liner install, thank you golang!

root@kitploit:~
go get -u github.com/pry0cc/subgen

Cat a very large unsorted wordlist.

root@kitploit:~
cat wordlist.txt | subgen -d "uber.com" | zdns A | jq -r "select(.data.answers[0].name) | .name" 

Crawl website with Cewl and generated unresolved subdomain combinations

root@kitploit:~
cewl.rb -d 3 -u https://uber.com/ | subgen -d "uber.com"

tldr;

This will take a wordlist, concate with a domain, sort unique in real time (filtering lines that have already been produced) and filtering out with regex any non-DNS safe characters like special characters.

wordlist.txt

root@kitploit:~
admin
dashboard
www
helloworld
HELLOWORLD
helLoWorld
autodiscover
aUtOdiscover
*sd&^%$£$%^&*
zabbix
login
root@kitploit:~
cat wordlist.txt | subgen -d "uber.com"

Will produce:

root@kitploit:~
admin.uber.com
dashboard.uber.com
www.uber.com
helloworld.uber.com
autodiscover.uber.com
zabbix.uber.com
login.uber.com

Which you can pipe to a resolver tool such as MassDNS or ZDNS and print out resolved subdomains.

root@kitploit:~
cat ~/lists/sorted-all.txt | subgen -d uber.com | zdns A | jq -r "select(.data.answers[0].name) | .name" 
root@kitploit:~
cat ~/lists/jhaddix-all.txt | subgen -d uber.com |  massdns -r dns.txt -t A -o S -w results.txt

Download Tool