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.4

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.4
File Size Uploaded
gitbleed-1.0.4.tar.gz 17.1 kB Details

Built distribution (wheel)

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

Total release size: 37.3 kB

Release files / gitbleed-1.0.4.tar.gz

Download URL gitbleed-1.0.4.tar.gz
Size 17.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1a648a5e4c27e6729d916bde0e444c98da7cf41f352662fa9122ac06e1fdba3d
BLAKE2b-256 checksum
How to use checksums
b976662bb83ccb52b32699195b3b19f3f462643dc11fbb3adfb87994094dca80
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.4-py3-none-any.whl

Download URL gitbleed-1.0.4-py3-none-any.whl
Size 20.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
550c2176291f9db9492dd9fad0c31da9b4be4b9a2dade4a0450a90e1c6af0921
BLAKE2b-256 checksum
How to use checksums
a48b068a9513b078769fa39b65905a5e50cd08a0841286052f5bfe3e7eacf0a7
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

1.0.5

2 release files

This release

1.0.4 This release

2 release files

1.0.3

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