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

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.5
File Size Uploaded
gitbleed-1.0.5.tar.gz 17.4 kB Details

Built distribution (wheel)

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

Total release size: 38.0 kB

Release files / gitbleed-1.0.5.tar.gz

Download URL gitbleed-1.0.5.tar.gz
Size 17.4 kB
Tags Source
SHA-256 checksum
How to use checksums
78d68d8960dcbeabe152150384dfc1124e6c288c2a4325e96f0fc3ced99a1367
BLAKE2b-256 checksum
How to use checksums
5194da705a0bdd6ba9f2de4ed130de0d4033c0b55c5ceed37b72643689d22ac1
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.5-py3-none-any.whl

Download URL gitbleed-1.0.5-py3-none-any.whl
Size 20.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7609acee6a8e4a97855d2ebcdacb93918fc663783bc36d4f62f482819bca158
BLAKE2b-256 checksum
How to use checksums
cc428adb2c2b2481d4fb8d27f61e6616d3ecf180cff97a92c169fa6dbc429d38
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.5 This release

2 release files

1.0.4

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