Discovery
Flag hosts that serve a public .git directory
Sweep a host list for publicly accessible .git directories.
commit abb17ad on Trickest · Python · MIT license
Free plan: 1 user, 3 execution slots, no card.
overview
What mass-gitfinder does
mass-gitfinder reads a host file via -i and checks each target for a publicly reachable .git directory, writing the short list of leak candidates.
Use it after subdomain discovery and an HTTP prober such as httpx so checks run only on live hosts. Raise -t when the list is large.
Trickest provides mass-gitfinder as a managed Discovery node. It flags exposure only; route hits to gittools-dumper or gitjacker to recover the repository.
source github.com/shortcutmaniac/Gitfinder-for-Massscans · commit abb17ad on Trickest
image quay.io/trickest/mass-gitfinder:abb17ad
use cases
mass-gitfinder use cases
Audit a domain estate for exposed source
Feed a full list of company subdomains and flag every host that serves a reachable .git directory, catching leaks before an attacker dumps the repository.
Triage a discovered attack surface
Run mass-gitfinder after subdomain discovery and HTTP probing so the .git check fires only against hosts that are confirmed live.
Recurring exposure monitoring
Schedule the scan against a maintained host list so newly deployed servers that ship their version control folder get caught soon after they go live.
Bug bounty source recovery
Scan a target's published domains for accessible .git paths, then pull the leaked repository to read source, hardcoded credentials, and internal endpoints.
reference
mass-gitfinder inputs and flags
| Name | Type | Flag | Description |
|---|---|---|---|
| input-file | FILE | -i | File of hosts to check for an exposed .git directory. |
| threads | STRING | -t | Number of concurrent threads for the sweep. |
Showing key inputs. mass-gitfinder exposes 2 inputs in total.
example
mass-gitfinder command examples
# mass-gitfinder: sweep hosts.txt for exposed .git with 40 threads
mass-gitfinder -i hosts.txt -t 40https://example.com/.git/
https://staging.example.com/.git/
https://dev.example.com/.git/
https://old.example.com/.git/
https://cdn-origin.example.com/.git/
https://intranet.example.com/.git/
# 6 hosts with accessible .git from 180 probedguidance
mass-gitfinder vs alternatives
Use mass-gitfinder when you have a host list and need to know which targets leak a .git directory. It checks one high-value path at scale after discovery and probing. Prefer meg or ffuf for broad path discovery.
| Tool | Pick it when |
|---|---|
| meg | Fetches many paths across many hosts. Broader coverage; not specialized for .git. |
| mass-linkfinder | Extracts endpoints from JS URLs across a list. Different leak surface than version control. |
| ffuf | General content and directory fuzzer. Use when you need many paths; mass-gitfinder targets one. |
faq
mass-gitfinder FAQ
related
More Discovery tools
cariddi
Crawl a domain list and scan responses for endpoints, secrets, tokens, and juicy files.
crawlergo
Browser-driven crawler that harvests requests for downstream scanners.
dirsearch
Web path scanner.
feroxbuster
Recursive content discovery with smart defaults and rich response filters.
gittools-dumper-extractor
Download an exposed .git and rebuild the working tree in one pass.
jsluice
Extract URLs, paths, and secrets from JavaScript with a syntax tree.
Run mass-gitfinder yourself
A host list is probed by httpx for live targets, then Mass-GitFinder checks each one for an exposed .git directory and writes the leak candidates as a queryable output.
Facts on this page come from the live Trickest tool library.