2025-08-23 09:54:06 +02:00
2025-08-22 21:58:54 +02:00
2025-08-23 09:54:06 +02:00
2025-08-23 09:54:06 +02:00
2025-08-22 21:58:54 +02:00
2025-08-23 09:52:21 +02:00
2025-08-22 21:58:54 +02:00
2025-08-22 21:58:54 +02:00
2025-08-22 21:58:54 +02:00
2025-08-22 21:58:54 +02:00
2025-08-22 21:58:54 +02:00
2025-08-22 21:58:54 +02:00
2025-08-22 21:58:54 +02:00
2025-08-22 21:58:54 +02:00
2025-08-22 21:58:54 +02:00


Github-Recon 🔍

Latest Release GoDoc GoReportCard

🧾 Project Overview

Retrieves and aggregates public OSINT data about a GitHub user using Go and the GitHub API. Finds hidden emails in commit history, previous usernames, friends, other GitHub accounts, and more.

🚀 Features

  • Export results to JSON

From usernames:

  • Retrieve basic user profile information (username, ID, avatar, bio, creation dates)
  • Display the avatar in the terminal
  • List organizations and roles
  • Fetch SSH and GPG keys
  • Enumerate social accounts
  • Extract unique commit authors (name + email)
  • Find close friends
  • Deep scan option (clone repositories, regex search, analyze licenses, etc.)
  • Levenshtein distance for matching usernames and emails

From emails:

  • Search for a specific email through all Github commits
  • Spoof an email to found an user account

⚠️ Disclaimer

This tool is intended for educational purposes only. Use responsibly and ensure you have permission to access the data you are querying.

📦 Installation

With Go

go install github.com/anotherhadi/github-recon@latest

With Nix/NixOS

Click to expand

From anywhere (using the repo URL):

nix run github:anotherhadi/github-recon -- [--flags value] target_username_or_email

Permanent Installation:

# add the flake to your flake.nix
{
  inputs = {
    github-recon.url = "github:anotherhadi/github-recon";
  };
}

# then add it to your packages
environment.systemPackages = with pkgs; [ # or home.packages
  github-recon
];

🧪 Usage

github-recon [--flags value] target_username_or_email

Flags

-t, --token string           Github personal access token (e.g. ghp_aaa...). Can also be set via GITHUB_RECON_TOKEN environment variable. You also need to set the token in $HOME/.config/github-recon/env file if you want to use this tool without passing the token every time. (default "null")
-d, --deepscan               Enable deep scan (clone repos, regex search, analyse licenses, etc.)
    --max-size int           Limit the size of repositories to scan (in MB) (only for deep scan) (default 150)
-e, --exclude-repo strings   Exclude repos from deep scan (comma-separated list, only for deep scan)
-r, --refresh                Refresh the cache (only for deep scan)
-s, --show-source            Show where the information (authors, emails, etc) were found (only for deep scan)
-m, --max-distance int       Maximum Levenshtein distance for matching usernames & emails (only for deep scan) (default 20)
-S, --silent                 Suppress all non-essential output
-h, --hide-avatar            Hide the avatar in the output
-j, --json string            Write results to specified JSON file

💡 Examples

github-recon anotherhadi --token ghp_ABC123...
github-recon [email protected] # Find github accounts by email
github-recon anotherhadi --json output.json --deepscan # Clone the repo and search for leaked email

🕵️‍♂️ Cover your tracks

Understanding what information about you is publicly visible is the first step to managing your online presence. github-recon can help you identify your own publicly available data on GitHub. Here’s how you can take steps to protect your privacy and security:

  • Review your public profile: Regularly check your GitHub profile and repositories to ensure that you are not unintentionally exposing sensitive information.
  • Manage email exposure: Use GitHub's settings to control which email addresses are visible on your profile and in commit history. You can also use a no-reply email address for commits. Delete/modify any sensitive information in your commit history.
  • Be Mindful of Repository Content: Avoid including sensitive information in your repositories, such as API keys, passwords, emails or personal data. Use .gitignore to exclude files that contain sensitive information.

You can also use a tool like TruffleHog to scan your repositories specifically for exposed secrets and tokens.

Useful links:

🤝 Contributing

Feel free to contribute! See CONTRIBUTING.md for details.

🙏 Credits

Some features and ideas in this project were inspired by the following tools:

Big thanks to their authors for sharing their work with the community.

S
Description
Retrieves and aggregates public OSINT data about a GitHub user using Go and the GitHub API. Finds hidden emails in commit history, previous usernames, friends, other GitHub accounts, and more.
Readme MIT
767 KiB
Languages
Go 97%
Nix 3%