gitrecon: get information from a Github and Gitlab profile
OSINT tool to get information from a Github or Gitlab profile and find user’s email addresses leaked on commits.
How does this work?
GitHub uses the email address associated with a GitHub account to link commits and other activity to a GitHub profile. When a user makes commits to public repos their email address is usually published in the commit and becomes publicly accessible, if you know where to look.
GitHub provides some instructions on how to prevent this from happening, but it seems that most GitHub users either don’t know or don’t care that their email address may be exposed.
Finding a GitHub user’s email address is often as simple as looking at their recent events via the GitHub API.
Idea and text from Nick Drewe.
Gitlab and Github leaked emails on commits
Gitlab and Github SSH keys
|Github SSH keys||Gitlab SSH keys|
Gitlab and Github profile info
|Github profile info||Gitlab profile info|
|User ID||User ID|
|Avatar url||Avatar url|
|Created at||Created at|
git clone https://github.com/GONZOsint/gitrecon.git
python3 -m pip install -r requirements.txt
It is possible to use a Github access token by editing line 3 of the modules/github_recon.py file. This will prevent a possible API ban.
It is possible to use a Gitlab access token by editing line 3 of the modules/gitlab_recon.py file. This will prevent a possible API ban.
token = ‘<Access token here>’
Configurations on Github:
- Settings url: https://github.com/settings/emails
- ✔️ Keep my email addresses private
- ✔️ Block command line pushes that expose my email
Configurations on Gitlab:
- Settings url: https://gitlab.com/-/profile
- ✔️ Public email: do not show on profile
- ✔️ Commit email: use a private email
Copyright (C) 2021 GONZOsint