A tool to dump exposed .git repositories
Перейти к файлу
Himadri Bhattacharjee 17a53f6e2b Use clap derive features to avoid unnecessary unwraps and get_ones 2023-04-28 10:41:36 +05:30
.github/workflows Create rust.yml 2023-04-18 10:13:35 +02:00
src Use clap derive features to avoid unnecessary unwraps and get_ones 2023-04-28 10:41:36 +05:30
test-data Create basic, functional git dumper 2022-09-17 15:51:44 +02:00
.gitignore Create basic, functional git dumper 2022-09-17 15:51:44 +02:00
Cargo.lock Use clap derive features to avoid unnecessary unwraps and get_ones 2023-04-28 10:41:36 +05:30
Cargo.toml Use clap derive features to avoid unnecessary unwraps and get_ones 2023-04-28 10:41:36 +05:30
LICENSE Create LICENSE 2022-09-20 20:35:14 +02:00
README.md Add README 2022-09-20 22:06:22 +02:00

README.md

git-dumper

This repository houses a tool to dump exposed .git repositories. This is a rewrite from the original GitTools's Dumper project, but in a real programming language with parallelism for massive speed gains (over 10x faster).

Why?

Many (lazy?) developers deploy their projects to their webservers through git: they run git clone https://url/to/my-repo.git in their web server's content directory. Doing this often leaves a .git folder exposed which an attacker can scrape and use to reconstruct your website's source code and version history. This tool does exactly that: scrape the .git directory so you can have a copy locally.

Limitations

Git may run "garbage collection" on your repository which causes it to compact multiple object files into "pack" files. While object files can be found fairly easily through references from other object files, pack files dont seem to have explicit references to them and can not be downloaded without having a directory listing. If you do have a directory listing, you dont need this tool and can download the repository using wget :)

  • GitTools, which inspired this project.
  • DotGit, a browser extension that automatically checks for exposed .git directories.