Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trickest/mksub
Generate tens of thousands of subdomain combinations in a matter of seconds
https://github.com/trickest/mksub
bugbounty bugbountytips enumeration infosec infosectools penetration-testing penetration-testing-tools pentesting pentesting-tools recon reconnaissance security security-tools subdomain subdomain-enumeration subdomain-finder subdomain-scanner
Last synced: 22 days ago
JSON representation
Generate tens of thousands of subdomain combinations in a matter of seconds
- Host: GitHub
- URL: https://github.com/trickest/mksub
- Owner: trickest
- License: mit
- Created: 2021-11-22T16:25:50.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-25T15:19:50.000Z (about 1 year ago)
- Last Synced: 2024-08-05T17:29:31.298Z (4 months ago)
- Topics: bugbounty, bugbountytips, enumeration, infosec, infosectools, penetration-testing, penetration-testing-tools, pentesting, pentesting-tools, recon, reconnaissance, security, security-tools, subdomain, subdomain-enumeration, subdomain-finder, subdomain-scanner
- Language: Go
- Homepage: https://trickest.com
- Size: 3.47 MB
- Stars: 249
- Watchers: 5
- Forks: 23
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hacking-lists - trickest/mksub - Generate tens of thousands of subdomain combinations in a matter of seconds (Go)
README
mksub
Generate tens of thousands of subdomain combinations in a matter of seconds
![mksub](mksub.png "mksub")
Read a wordlist file and generate subdomain combinations for a given domain or list of domains. Input from the wordlist file is lowercased and only unique words are processed. Additionally, wordlist can be filtered using regex.
When you use mksub's `-l` parameter, it will generate all subdomain combinations up to the specified level, including all lower levels, using words from the wordlist. For instance, with `-l 2`, it will generate `len(permutation_list)^2 + len(permutation_list)` results, which is:
- 30 combinations for a 5-word wordlist.
- 10100 combinations for a 100-word wordlist.
- 250500 combinations for a 500-word wordlist.# Installation
## Binary
Binaries are available in the [latest release](https://github.com/trickest/mksub/releases/latest).## Docker
```
docker run quay.io/trickest/mksub
```## From source
```
go install github.com/trickest/mksub@latest
```# Usage
```
-d string
Input domain
-df string
Input domain file, one domain per line
-l int
Subdomain level to generate (default 1)
-o string
Output file (stdout will be used when omitted)
-r string
Regex to filter words from wordlist file
-silent
Skip writing generated subdomains to stdout (faster) (default true)
-t int
Number of threads for every subdomain level (default 100)
-w string
Wordlist file
```# Example
### wordlist.txt
```
dev
DEV
*
foo.bar
prod
```
```shell script
$ mksub -d example.com -l 2 -w input.txt -r "^[a-zA-Z0-9\.-_]+$"
dev.example.com
foo.bar.example.com
prod.example.com
foo.bar.dev.example.com
prod.dev.example.com
dev.dev.example.com
dev.foo.bar.example.com
foo.bar.foo.bar.example.com
prod.foo.bar.example.com
dev.prod.example.com
foo.bar.prod.example.com
prod.prod.example.com
```## Report Bugs / Feedback
We look forward to any feedback you want to share with us or if you're stuck with a problem you can contact us at [[email protected]](mailto:[email protected]). You can also create an [Issue](https://github.com/trickest/mksub/issues/new) or pull request on the Github repository.# Where does this fit in your methodology?
Mksub is an integral part of the [Inventory](https://github.com/trickest/inventory) workflow and many other workflows in the Trickest store. Sign up on [trickest.com](https://trickest.com) to get access to these workflows or build your own from scratch![](https://trickest.io/auth/register)