Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

GitDump 🥷

GitDump is a tool for downloading and reconstructing Git repositories from disclosed .git directories.

This project was inspired by lijiejie's GitHack, a fantastic tool that helped me during a HackTheBox CTF on Christmas night. While using GitHack, I found it incredibly useful, but I wanted to improve certain aspects like adding multi-threading support and making the output less verbose. So, I decided to create GitDump, a tool tailored to my needs.

Special thanks to lijiejie for the original inspiration!


Features 🌟

  • Multi-threading: Accelerate the download process with configurable concurrent threads.
  • Verbosity Levels: Choose the level of output detail:
    • 0: Show only successfully downloaded files.
    • 1: Show all files found in the index.
    • 2: Include errors for files that could not be downloaded.

Getting Started 🚀

Prerequisites

Ensure you have Python 3 installed on your system. No additional dependencies are required.

Installation

  1. Clone the repository:
    git clone https://github.com/gpericol/git_dump.git
    cd git_dump

Usage 📖

Command-Line Arguments:

usage: git_dump.py [-h] [-t THREADS] [-v {0,1,2}] url

GitDump: A tool for downloading and reconstructing Git repositories from disclosed .git directories.

positional arguments:
  url                   The base URL of the target Git repository (ending in .git/).

options:
  -h, --help            show this help message and exit
  -t THREADS, --threads THREADS
                        Number of concurrent threads to use (default: 10).
  -v {0,1,2}, --verbosity {0,1,2}
                        Verbosity level (0: only downloaded files, 1: show files found, 2: show errors).

Examples:

python git_dump.py http://example.com/.git/
python git_dump.py http://example.com/.git/ -t 42 -v 1

License 📜

The project is released under the WTFPL (Do What The F*ck You Want To Public License), a permissive free software license.


Author 🙌

Created with ❤️ by gpericol.

About

GitDump: A tool for downloading and reconstructing Git repositories from disclosed .git directories.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages