Updated Jul 15, 2026

Discovery

Fetch a leaked .git directory over HTTP

Download exposed .git directories when listing is disabled.

Shell · MIT license

Agent

overview

What gittools-dumper does

gittools-dumper is the Dumper half of GitTools. It pulls objects, refs, and the index from a .git directory left in a public web root. Pass a target URL that includes /.git/.

Listing can be off. The tool requests known git paths by name, so a 403 on directory indexes does not stop the download when those files remain world-readable.

Dumping alone is not readable source. Chain gittools-extractor next, or use gittools-dumper-extractor for both steps. Prefer gitjacker when you want download and rebuild in one pass.

source github.com/internetwache/GitTools

use cases

Where gittools-dumper fits

Download a leaked .git directory

Point the Dumper at a target's /.git/ path to pull down the git objects and refs even when the server hides the folder listing.

Stage a repository for reconstruction

Run the Dumper first to fetch the raw internals, then hand the folder to gittools-extractor to rebuild a readable source tree.

Open a path to committed secrets

Recover the repository so a downstream secret scanner can read its history for credentials the deployed app never meant to expose.

reference

gittools-dumper inputs and flags

1 inputs
NameTypeFlagDescription
targetSTRING·target URL including the /.git/ folder

Showing key inputs. gittools-dumper exposes 1 inputs in total.

example

Run gittools-dumper

gittools-dumper · command
# gittools-dumper: download an exposed .git tree into ./dump
gitdumper.sh https://example.com/.git/ ./dump
sample output
[+] Downloading from https://example.com/.git/
[+] Destination: ./dump
[*] Fetching HEAD
[*] Fetching refs/heads/main
[*] Fetching objects/info/packs
[*] Fetching objects/pack/pack-8f3a1c2e.idx
[*] Fetching objects/pack/pack-8f3a1c2e.pack
[*] Fetching index
[+] Dump complete: 142 objects under ./dump

guidance

Choosing gittools-dumper

Use gittools-dumper to grab an exposed .git when you want the raw dump kept. Follow with gittools-extractor to rebuild source, or use gittools-dumper-extractor for both. Prefer gitjacker for single-pass partial recovery.

gittools-dumper-extractor

Dump and reconstruct in one node when you want the working tree directly.

gitjacker

Downloads and rebuilds in one pass with partial-recovery support.

gittools-extractor

Rebuilds source from the folder the Dumper wrote.

faq

gittools-dumper questions

No. It requests known git paths by name, so it works when directory listing is disabled.

Not alone. The Dumper fetches raw git objects; pass its output folder to gittools-extractor to reconstruct the working tree.

The target URL including the /.git/ folder, for example https://example.com/.git/, so the Dumper knows where the exposed directory lives.

gittools-dumper only downloads; follow with gittools-extractor (or use gittools-dumper-extractor). gitjacker downloads and reconstructs in one pass and can recover partial trees when some objects are missing.

gittools-extractor to rebuild source, then a secret scanner over the tree and history for credentials that shipped with the repo.

Run gittools-dumper yourself

A /.git/ URL feeds gittools-dumper, which downloads the git data and passes it to gittools-extractor so the reconstructed source lands as output.

Facts on this page come from the live Trickest tool library.