GitSniff
GitSniff is an MIT licensed OSINT tool designed to extract emails from metadata on GitHub accounts and repos. I built this because all the other similar tools were too limited or broke years ago.
Features
- Find emails in github repo metadata.
- Find emails from GitHub's user event feed
- Outputs results as a table or JSON
Install
pip install gitsniff
Usage
# Scan a user.
gitsniff -u <username>
# Scan a single repo.
gitsniff -r <repo>
# Show full help pages.
gitsniff -h
The email, reginaldgillespie@protonmail.com, is my email. The rest are the emails of other users found in my repositories because they contributed to them using their real emails.
Full Help Page
$ gitsniff -h
usage: gitsniff [-h] (-u USERNAME | -r OWNER/REPO) [--no-repos] [--no-events] [-f] [--private] [--max-commits N] [--start-index N] [--max-repos N] [--max-events N] [-t TOKEN] [--token-file FILE] [-p URL] [-j]
GitSniff - GitHub Email Scanner for OSINT
options:
-h, --help Show this help message and exit
Target Selection (required):
-u, --user USERNAME Scan GitHub user or organization
-r, --repo OWNER/REPO
Scan single repository
Scanning Methods:
--no-repos Disable repository cloning scan
--no-events Disable public event API scan
Repository Options:
-f, --forks Include forked repositories
--private Include private repositories (requires token)
--max-commits N Max commits per repository (default: 1000)
--start-index N Start repo scan from index N (default: 0)
--max-repos N Maximum repositories to scan
Event Options:
--max-events N Max public events to scan (default: 1000)
Connection & Output:
-t, --token TOKEN GitHub personal access token
--token-file FILE Path to token file (default: pat.env)
-p, --proxy URL HTTP/SOCKS proxy URL
-j, --json Output in JSON format
Examples:
gitsniff -u username # Scan user's repositories and events
gitsniff -u username --no-events # Scan only repositories
gitsniff -u username --no-repos # Scan only public events
gitsniff -r owner/repo # Scan specific repository
gitsniff -u username -f --max-repos 5 # Include forks, limit to 5 repos
gitsniff -u username --private -t TOKEN # Include private repos with token
This project was inspired by similar, but more limited projects such as:
- GONZOsint/gitrecon - scans event feeds for information.
- chm0dx/gitSome - scans single repositories.
Metadata
Release files for gitsniff 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gitsniff-1.0.2.tar.gz | 12.0 kB | Without provenance | Details for gitsniff-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gitsniff-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for gitsniff-1.0.2-py3-none-any.whl |
Total release size: 22.8 kB
Release files / gitsniff-1.0.2.tar.gz
| Download URL | gitsniff-1.0.2.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4af998a5481a64721f4ec16680dbe91e029ce677042853ac8a8e41ceb02e94bf
|
|
BLAKE2b-256 checksum How to use checksums |
ebedeba9225165e03ce88e479d34bff4be01301083327e2805435494a1cfaa66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / gitsniff-1.0.2-py3-none-any.whl
| Download URL | gitsniff-1.0.2-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2be7bdcf55896b8616748a8265dc6c7143875e6b6753ac1beaf016784d835f16
|
|
BLAKE2b-256 checksum How to use checksums |
e0a7aa1d58d1f2b45bdf63b5b2d5e3857f084f057e424ab7ed5967070a1e532e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Security for gitsniff 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.