该 Go 工具在 GitHub 上执行搜索并解析结果,以查找指定域名的端点。
go install github.com/gwen001/github-endpoints@latest
或
git clone https://github.com/gwen001/github-endpoints
cd github-endpoints
go install
$ github-endpoints -h
Usage of github-endpoints:
-all
displays urls of all other domains, default=false
-d string
domain you are looking for (required)
-e extended mode, also look for <dummy>example.com
-k exit the program when all tokens have been disabled
-o string
output file, default: <domain>.txt
-r display relative urls, default=false
-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
如果你想使用多个令牌,最好在可执行文件目录下创建一个 .tokens 文件,每行一个令牌
token1
token2
...
或者使用以逗号分隔的令牌环境变量:
export GITHUB_TOKEN=token1,token2...
当 GitHub 触发速率限制警报时,令牌会被禁用,但会在 1 分钟后重新启用。
你可以使用 -k 选项禁用该功能。
20/09/2022
25/09/2020
23/09/2020
10/08/2020
如果你在使用脚本时遇到任何问题,欢迎打开一个 issue。