Gitrecon - OSINT Tool To Get Information From A Github Profile And Find GitHub User'S Email Addresses Leaked On Commits

Gitrecon – OSINT Tool To Get Information From A Github Profile And Find GitHub User’S Email Addresses Leaked On Commits

OSINT tool to get information from a github profile and find GitHub 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 provide 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.




git clone
cd gitrecon/
python3 -m pip install -r requirements.txt

It is possible to use a Github access token by editing line 23 of the file

token = '<Access token here>'


usage: [-h] [-a] [-o] username

positional arguments:

optional arguments:
-h, --help show this help message and exit
-a, --avatar download avatar pic
-o, --output save output as json


  • Profile info
    • Username
    • Name
    • User ID
    • Avatar url
    • Email
    • Location
    • Bio
    • Company
    • Blog
    • Gravatar ID
    • Twitter username
    • Followers
    • Following
    • Created at
    • Updated at
  • Extract Orgs
  • Search for leaked emails on commits


To avoid this type of leaks, certain configurations can be made on Github:

Settings url:

  • ✔️

    Keep my email addresses private

  • ✔️

    Block command line pushes that expose my email

Leave a Reply

Your email address will not be published. Required fields are marked *

Special Offer for Hackers!Sign up to get your $5 Coupon code, weekly deals and latest hacking tools straight to your inbox!