OSINT 工具,用于从 Github 或 Gitlab 个人资料获取信息,并查找在提交中泄露的用户电子邮件地址。
GitHub 使用与 GitHub 帐户关联的电子邮件地址将提交和其他活动链接到 GitHub 个人资料。当用户对公共仓库进行提交时,他们的电子邮件地址通常会出现在提交中,如果你知道在哪里查找,这些信息就会公开可访问。
GitHub 提供了一些说明,介绍如何防止这种情况发生,但似乎大多数 GitHub 用户要么不知道,要么不关心他们的电子邮件地址可能会被暴露。
查找 GitHub 用户的电子邮件地址通常就像通过 GitHub API 查看他们的近期事件一样简单。
想法和文本来自 Nick Drewe。 来源:https://thedatapack.com/tools/find-github-user-email/
正如 @pielco11 警告 的那样,电子邮件和其他数据在提交中可能被伪造。
git clone https://github.com/GONZOsint/gitrecon.git
cd gitrecon/
python3 -m pip install -r requirements.txt
可以通过编辑 modules/github_recon.py 文件的第 3 行来使用 Github 访问令牌。这样可以防止可能的 API 封禁。
可以通过编辑 modules/gitlab_recon.py 文件的第 3 行来使用 Gitlab 访问令牌。这样可以防止可能的 API 封禁。
token = '<Access token here>'
usage: gitrecon.py [-h] -s {github,gitlab} [-a] [-o] username
positional arguments:
username
optional arguments:
-h, --help show this help message and exit
-s {github,gitlab} sites selection
-a, --avatar download avatar pic
-o, --output save output
结果保存在 results/<username>/ 路径中。
| Github SSH 密钥 | Gitlab SSH 密钥 |
|---|---|
| ID | ❌ |
| ❌ | 标题 |
| ❌ | 创建时间 |
| ❌ | 过期时间 |
| 密钥 | 密钥 |
设置 URL:https://github.com/settings/emails
✔️ 保持我的电子邮件地址私密
✔️ 阻止暴露我电子邮件的命令行推送
设置 URL:https://gitlab.com/-/profile
✔️ 公开电子邮件:不在个人资料中显示
✔️ 提交电子邮件:使用私有电子邮件
| Github 个人信息 | Gitlab 个人信息 |
|---|
| 用户名 | 用户名 |
| 名称 | 名称 |
| 用户 ID | 用户 ID |
| ❌ | 状态 |
| ❌ | 状态 |
| 头像 URL | 头像 URL |
| 电子邮件 | 电子邮件 |
| 位置 | 位置 |
| 个人简介 | 个人简介 |
| 公司 | 组织 |
| 组织 | ❌ |
| ❌ | 职位 |
| ❌ | 工作信息 |
| 博客 | 网站 |
| Gravatar ID | ❌ |
| ❌ | Skype |
| ❌ | |
| 关注者 | 关注者 |
| 正在关注 | 正在关注 |
| 创建时间 | 创建时间 |
| 更新时间 | ❌ |