shmilylty / OneForAll

OneForAll是一款功能强大的子域收集工具
GNU General Public License v3.0
7.96k stars 1.27k forks source link

github api 403 #312

Open r00t4dm opened 1 year ago

r00t4dm commented 1 year ago

是否使用了最新代码

Bug描述 GET https://api.github.com/search/code?q=hyperwallet.com&per_page=100&page=3&sort=indexed&access_t oken=xxxx 403 - Forbidden 245 02:18:16,324 [ALERT] utils:282 - {'documentation_url': 'https://docs.github.com/en/free-pro-team@latest/rest/overview/resources-in- the-rest-api#secondary-rate-limits', 'message': 'You have exceeded a secondary rate limit. Please wait a few minutes before you try again.'}

{ "message": "Must specify access token via Authorization header. https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param", "documentation_url": "https://docs.github.com/v3/#oauth2-token-sent-in-a-header" }

github 的 token放的位置改了,我看接口返回信息是要放到header里的

运行环境

如何复现 复现步骤(选写)

python3.9 oneforall.py --targets xxx.txt run

报错文本 GET https://api.github.com/search/code?q=hyperwallet.com&per_page=100&page=3&sort=indexed&access_t oken=xxxx 403 - Forbidden 245 02:18:16,324 [ALERT] utils:282 - {'documentation_url': 'https://docs.github.com/en/free-pro-team@latest/rest/overview/resources-in- the-rest-api#secondary-rate-limits', 'message': 'You have exceeded a secondary rate limit. Please wait a few minutes before you try again.'}

{ "message": "Must specify access token via Authorization header. https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param", "documentation_url": "https://docs.github.com/v3/#oauth2-token-sent-in-a-header" }

预期结果 清晰而简洁的预期结果描述(选写,如正常情况应该是怎么样的)

实际结果 清晰而简洁的实际结果描述(选写,如出现什么错误)

屏幕截图 完整OneForAll执行流程截图(建议上传)

日志上传 上传oneforall.log日志文件(复杂问题建议上传)

其他补充 关于bug的其他一些补充说明