Updated Jul 15, 2026

Static Code Analysis

Rebuild a git repository from an exposed .git folder

Git ripper that reconstructs repos even when directory browsing is off.

Agent

overview

What dvcsripper-git does

When a target leaves .git reachable, point -u at that URL and reconstruct the repository objects into a FOLDER for source review.

Use it after you confirm an exposed .git path and need history even with listing disabled. Set -b for the branch, -t for parallel tasks, and -g to guess packed-refs.

Unlike secret scanners such as dora or dumpsterdiver, this node recovers the repo first. Hand the reconstructed tree to those tools next.

source github.com/kost/dvcs-ripper

use cases

Where dvcsripper-git fits

Recover source from an exposed .git

Reconstruct a repository from a leaked .git folder so you can review the source and history of an application that should not have shipped it.

Rip when directory listing is off

Walk the git object graph directly to pull the repo even when the server blocks browsing of the .git directory.

Feed recovered code into secret scanning

Hand the reconstructed repository to a credential scanner so hardcoded keys in the leaked history surface for remediation.

reference

dvcsripper-git inputs and flags

16 inputs
NameTypeFlagDescription
urlSTRING-uURL with the exposed .git folder.
use-branchSTRING-bBranch to rip (default: master).
use-proxySTRING-pProxy host to use for connections.
use-agentSTRING-aUser agent string to send.
number-of-parallel-tasksSTRING-tNumber of parallel tasks to run.
guess-packed-refs-nameBOOLEAN-gIntelligently guess the name of packed refs.
dont-verify-sslBOOLEAN-sDo not verify the SSL certificate.
verboseBOOLEAN-vVerbose mode.

Showing key inputs. dvcsripper-git exposes 16 inputs in total.

Full flag reference (16 inputs)
NameTypeFlagDescription
urlSTRING-uUrl with .git folder.
verboseBOOLEAN-vVerbose mode
use-agentSTRING-aUse agent <s> (default: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0.2) Gecko/20100101 Firefox/10.0.2)
use-proxySTRING-pUse proxy <h> for connections
use-redisSTRING-eUse redis <s> server as server:port
use-branchSTRING-bUse branch <s> (default: master)
git-checkout-fBOOLEAN-cperform 'git checkout -f' on end (default)
dont-verify-sslBOOLEAN-sDo not verify SSL cert
set-basic-auth-keySTRING-baSet basic auth key
dont-override-filesBOOLEAN-nDo not overwrite files
guess-packed-refs-nameBOOLEAN-gTry to inteligently guess name of packed refs
use-session-name-redisSTRING-kUse session name <s> for redis (default: random)
brute-force-packed-refsBOOLEAN-xBrute force packed refs (extremely slow!!)
max-number-of-redirectsSTRING-rSpecify max number of redirects (default: 0)
number-of-parallel-tasksSTRING-tUse <i> parallel tasks
mkdir-url-name-for-outputBOOLEAN-mMkdir URL name when outputting (works good with -o)

example

Run dvcsripper-git

dvcsripper-git · command
# rip an exposed .git folder with parallel tasks and packed-refs guess# dvcsripper-git (rip-git.pl)dvcsripper-git -u https://example.com/.git/ -b master -t 8 -g -v -c
sample output
dvcsripper-git: fetching https://example.com/.git/[+] HEAD -> refs/heads/master[+] packed-refs guessed via -g[*] object 9f3a1c2b7d4e5f60a1b2c3d4e5f6a7b8c9d0e1f2[*] object a1b2c3d4e5f60718293a4b5c6d7e8f9012345678[*] parallel tasks: 8[+] checkout -f completeSummary: 318 objects recovered for example.comOutput: ./example.com

guidance

Choosing dvcsripper-git

Use dvcsripper-git when a target exposes its .git folder and you want the full source and history back, even with directory listing disabled. After it reconstructs the repo, scan with dora or dumpsterdiver for leaked credentials.

dora

Scans the recovered repository for exposed API keys. Natural next step after the rip completes.

dumpsterdiver

Hunts secrets across reconstructed files by entropy and rules. Pair it after ripping.

faq

dvcsripper-git questions

Yes. It walks the git object structure directly, so it can rip the repo even when browsing of the .git directory is disabled.

Run dvcsripper-git yourself

A URL with an exposed .git folder feeds dvcs-ripper, which reconstructs the repository and passes it to dora so leaked keys land as a queryable output.

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