Skip to main content

GitBleed

GitBleed is a tool designed for penetration testers and security researchers to dump and reconstruct an entire Git repository from a publicly exposed .git folder on a web server.


Installation

You can easily install GitBleed directly from PyPI using pip.

Prerequisites

  • Python 3.10 or higher is required.

Standard Installation

Run the following command in your terminal:

pip install gitbleed

Usage

Once installed, the gitbleed command will be available globally in your system or virtual environment. You can verify the installation and view available options by running:

gitbleed --help

Security Warning (RCE Risk)

[!CAUTION]

Malicious Git repositories can contain hooks (.git/hooks/*) and dangerous configuration directives (such as core.sshCommand, core.editor, or core.pager) that may execute arbitrary commands on your system when you interact with the repository (e.g., during git checkout).

GitBleed attempts to mitigate this risk by automatically sanitizing .git/config before running git checkout. However, no mitigation is completely foolproof. Always run this tool in isolated environments (containers, VMs, or sandboxes) and never blindly trust repositories from unknown or untrusted sources.


Disclaimer


Credits

This project is a derivative work based on the git-dumper utility developed by Maxime Arthaud.

It specifically forks the logic established between versions 1.0.8 and 1.0.9, building upon the community contributions from mid-2026.

The main modifications introduced in this version include:

  • Object-Oriented Refactoring: Rewrote the core architecture to leverage Object-Oriented Programming (OOP) principles for better maintainability.
  • Visual & Display Enhancements: Refactored terminal outputs and logging messages to provide a cleaner, more intuitive visual identification.
  • Robust Error Handling: Integrated comprehensive exception handling to make the tool more resilient and informative during execution failures.
  • Bug Fixes: Resolved underlying code defects and improved reliability.
  • CLI Improvements: Added new flags for granular request control and eliminated the reliance on positional arguments for improved flexibility.

License

This project is licensed under the Apache-2.0 License. See the LICENSE file for details.

Metadata

Release files for gitbleed 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gitbleed 1.0.3
File Size Uploaded
gitbleed-1.0.3.tar.gz 16.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gitbleed 1.0.3
File Interpreter ABI Platform
gitbleed-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 32.1 kB

Release files / gitbleed-1.0.3.tar.gz

Download URL gitbleed-1.0.3.tar.gz
Size 16.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9b5a8c186eee44e7a84b1922392ea3a049ff8e8f2d215f85bac0be1a3af8f3ed
BLAKE2b-256 checksum
How to use checksums
295b35af01c2313c0b13791d721600105467cd368427e85c3f92a861fa7898d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / gitbleed-1.0.3-py3-none-any.whl

Download URL gitbleed-1.0.3-py3-none-any.whl
Size 15.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d34c94b28147da6afba94e00e003f47edd0e1b0c320777009441f8730f084c6
BLAKE2b-256 checksum
How to use checksums
c97fdf8d3877c5999098d05e2d8423a8b507f2172f6de6452cb4fd217110834a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page