Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DigHub

Advanced GitHub Dorking & Secret Hunting Tool

Go Version License

DigHub is a CLI tool that scans a GitHub organization or user's public repositories for exposed secrets, credentials, and sensitive files. It ships with 140+ dork patterns — covering cloud, database, payment, and AI/LLM provider keys (OpenAI, Anthropic, Gemini, Hugging Face, Groq, and more) — plus concurrent scanning and multiple output formats (terminal, JSON, CSV, HTML).

DigHub scanning an organization

Install

go install github.com/ahmetartuc/dighub@latest

Or build from source:

git clone https://github.com/ahmetartuc/dighub.git
cd dighub && go build -o dighub

Usage

# Scan an organization
dighub -org <github-org> -token <your_github_pat>

# Scan a user
dighub -user <github-user> -token <your_github_pat>

# High-priority findings only, exported as HTML
dighub -org myorg -token ghp_xxx -priority high -output html -out-file report.html

# Faster scan, filter to specific categories
dighub -org myorg -token ghp_xxx -workers 10 -include "AWS,GitHub,SSH"

Both -flag and --flag syntax work.

Options

Flag Description
-org, -o GitHub organization to scan
-user, -u GitHub user to scan (alternative to -org)
-token, -t GitHub Personal Access Token (required)
-output, -f Output format: terminal, json, csv, html (default: terminal)
-out-file, -w Output file path (auto-generated if omitted)
-priority, -p Filter by priority: all, high, medium, low (default: all)
-include, -i Include only these dork categories (comma-separated)
-exclude, -e Exclude these dork categories (comma-separated)
-workers, -W Concurrent workers, 1–20 (default: 5)
-delay, -d Delay between requests in seconds (default: 2)
-verbose, -v Verbose output
-quiet, -q Quiet mode — only show matches

GitHub Token

  1. Go to Settings → Developer Settings → Personal Access Tokens.
  2. Generate a classic token with the public_repo scope.
  3. Pass it with the -token flag.

Disclaimer

This tool is intended for authorized security research and educational purposes only. Only scan repositories and organizations you have permission to test, and always comply with applicable laws and GitHub's Terms of Service. The authors are not responsible for misuse.

License

MIT — see LICENSE. Contributions welcome; see CONTRIBUTING.md.

Releases

Packages

Contributors

Languages