Home

Awesome

<h1 align="center">github-subdomains</h1> <h4 align="center">Find subdomains on GitHub.</h4> <p align="center"> <img src="https://img.shields.io/badge/go-v1.13-blue" alt="go badge"> <img src="https://img.shields.io/badge/license-MIT-green" alt="MIT license badge"> <a href="https://twitter.com/intent/tweet?text=https%3a%2f%2fgithub.com%2fgwen001%2fgithub-subdomains%2f" target="_blank"><img src="https://img.shields.io/twitter/url?style=social&url=https%3A%2F%2Fgithub.com%2Fgwen001%2Fgithub-subdomains" alt="twitter badge"></a> </p> <!-- <p align="center"> <img src="https://img.shields.io/github/stars/gwen001/github-subdomains?style=social" alt="github stars badge"> <img src="https://img.shields.io/github/watchers/gwen001/github-subdomains?style=social" alt="github watchers badge"> <img src="https://img.shields.io/github/forks/gwen001/github-subdomains?style=social" alt="github forks badge"> </p> -->

Description

This Go tool performs searches on GitHub and parses the results to find subdomains of a given domain.

Install

go install github.com/gwen001/github-subdomains@latest

or

git clone https://github.com/gwen001/github-subdomains
cd github-subdomains
go install

Usage

$ github-subdomains -h

Usage of github-subdomains:
  -d string
    	domain you are looking for (required)
  -e	extended mode, also look for <dummy>example.<tld>
  -k	exit the program when all tokens have been disabled
  -o string
    	output file, default: <domain>.txt
  -raw
    	raw output
  -t string
    	github token (required), can be:
    	  • a single token
    	  • a list of tokens separated by comma
    	  • a file (.tokens) containing 1 token per line
    	if the options is not provided, the environment variable GITHUB_TOKEN is readed, it can be:
    	  • a single token
    	  • a list of tokens separated by comma

If you want to use multiple tokens, you better create a .tokens file in the executable directory with 1 token per line

token1
token2
...

or use an environment variable with tokens separated by comma:

export GITHUB_TOKEN=token1,token2...

Tokens are disabled when GitHub raises a rate limit alert, however they are re-enable 1mn later. You can disable that feature by using the option -k.

<img src="https://github.com/gwen001/github-subdomains/raw/master/preview.png">

Todo

Changelog

20/09/2022

25/09/2020

23/09/2020

12/08/2020

06/08/2020

05/08/2020

04/08/2020

03/08/2020


Feel free to open an issue if you have any problem with the script.