{"id":13841853,"url":"https://github.com/trickest/mksub","last_synced_at":"2025-12-24T23:29:28.010Z","repository":{"id":43656921,"uuid":"430782442","full_name":"trickest/mksub","owner":"trickest","description":"Generate tens of thousands of subdomain combinations in a matter of seconds","archived":false,"fork":false,"pushed_at":"2023-09-25T15:19:50.000Z","size":3637,"stargazers_count":249,"open_issues_count":0,"forks_count":23,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-05T17:29:31.298Z","etag":null,"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"],"latest_commit_sha":null,"homepage":"https://trickest.com","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trickest.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-22T16:25:50.000Z","updated_at":"2024-08-04T23:35:27.000Z","dependencies_parsed_at":"2024-06-18T22:39:17.389Z","dependency_job_id":"6e601d0c-7942-49ff-a73f-ba096c20d19c","html_url":"https://github.com/trickest/mksub","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trickest%2Fmksub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trickest%2Fmksub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trickest%2Fmksub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trickest%2Fmksub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trickest","download_url":"https://codeload.github.com/trickest/mksub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225729719,"owners_count":17515157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["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"],"created_at":"2024-08-04T17:01:22.893Z","updated_at":"2025-12-24T23:29:27.967Z","avatar_url":"https://github.com/trickest.png","language":"Go","funding_links":[],"categories":["[](#table-of-contents) Table of contents","Go"],"sub_categories":["[](#wordlists-generators)Wordlists generators"],"readme":"\u003ch1 align=\"center\"\u003emksub \u003ca href=\"https://twitter.com/intent/tweet?text=mksub%20-%20Generate%20tens%20of%20thousands%20of%20subdomain%20combinations%20in%20a%20matter%20of%20seconds%20%40trick3st%0Ahttps%3A%2F%2Fgithub.com%2Ftrickest%2Fmksub\u0026hashtags=bugbounty,bugbountytips,infosec\"\u003e\u003cimg src=\"https://img.shields.io/badge/Tweet--lightgrey?logo=twitter\u0026style=social\" alt=\"Tweet\" height=\"20\"/\u003e\u003c/a\u003e\u003c/h1\u003e\n\u003ch3 align=\"center\"\u003eGenerate tens of thousands of subdomain combinations in a matter of seconds\u003c/h3\u003e\n\n![mksub](mksub.png \"mksub\")\n\nRead 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.\n\nWhen 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:\n- 30 combinations for a 5-word wordlist.\n- 10100 combinations for a 100-word wordlist. \n- 250500 combinations for a 500-word wordlist.\n\n# Installation\n\n## Binary\nBinaries are available in the [latest release](https://github.com/trickest/mksub/releases/latest).\n\n## Docker\n```\ndocker run quay.io/trickest/mksub\n```\n\n## From source\n```\ngo install github.com/trickest/mksub@latest\n```\n\n# Usage\n```\n  -d string\n        Input domain\n  -df string\n        Input domain file, one domain per line\n  -l int\n        Subdomain level to generate (default 1)\n  -o string\n        Output file (stdout will be used when omitted)\n  -r string\n        Regex to filter words from wordlist file\n  -silent\n        Skip writing generated subdomains to stdout (faster) (default true)\n  -t int\n        Number of threads for every subdomain level (default 100)\n  -w string\n        Wordlist file\n```\n\n# Example\n### wordlist.txt\n```\ndev\nDEV\n*\nfoo.bar\nprod\n```\n```shell script\n$ mksub -d example.com -l 2 -w input.txt -r \"^[a-zA-Z0-9\\.-_]+$\"\ndev.example.com\nfoo.bar.example.com\nprod.example.com\nfoo.bar.dev.example.com\nprod.dev.example.com\ndev.dev.example.com\ndev.foo.bar.example.com\nfoo.bar.foo.bar.example.com\nprod.foo.bar.example.com\ndev.prod.example.com\nfoo.bar.prod.example.com\nprod.prod.example.com\n```\n\n## Report Bugs / Feedback\nWe look forward to any feedback you want to share with us or if you're stuck with a problem you can contact us at [support@trickest.com](mailto:support@trickest.com). You can also create an [Issue](https://github.com/trickest/mksub/issues/new) or pull request on the Github repository.\n\n# Where does this fit in your methodology?\nMksub 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!\n\n\n[\u003cimg src=\"./banner.png\" /\u003e](https://trickest.io/auth/register)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrickest%2Fmksub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrickest%2Fmksub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrickest%2Fmksub/lists"}