Skip to main content

Professional .git repository reconstructor and extractor

Project description

GitSnatcher

GitSnatcher Python

GitSnatcher is a professional-grade .git directory reconstructor and extractor. It recovers exposed git repositories from web servers, intelligently crawling and decompressing packfiles and index structures even when directory listing is disabled or partial objects return 403 Forbidden.

Made by baba01hacker.

Features

  • Smart Reconstruction: Recursively parses git indexes and tree structures to pull objects dynamically.
  • Multi-Threaded Engine: Uses thread pooling to download thousands of objects concurrently.
  • Evasion & Proxies: Native proxy support, SSL verification skipping, custom headers, and rate limiting.
  • Automatic Decompression: Handles zlib extraction dynamically to find new nested hashes.

Installation

pip install gitsnatcher

Or from source:

git clone https://github.com/Baba01hacker666/gitsnatcher.git
cd gitsnatcher
pip install .

Usage

gitsnatcher -u http://target.com/.git/ -o ./loot_dir

Options

  • -u, --url: Target .git URL
  • -o, --output-dir: Where to save the cloned repo locally
  • -t, --threads: Number of threads (default: 10)
  • -x, --proxy: Route traffic through proxy (e.g. http://127.0.0.1:8080)
  • -k, --insecure: Disable SSL verification
  • --delay: Delay between requests

Once downloaded, simply cd into the output directory and run git checkout . to restore the source code.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gitsnatcher-1.0.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gitsnatcher-1.0.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file gitsnatcher-1.0.0.tar.gz.

File metadata

  • Download URL: gitsnatcher-1.0.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gitsnatcher-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4fa1997babd14de9fb09695f0ed473095d7060c339297481a31e5fedc3fe5510
MD5 74fdf192472bd736942edd4e9b896792
BLAKE2b-256 858c3b9ac2b5612868c91f99deca0b9321a09071a72b4bd8d1cba629d3f56a8d

See more details on using hashes here.

Provenance

The following attestation bundles were made for gitsnatcher-1.0.0.tar.gz:

Publisher: publish-pypi.yml on Baba01hacker666/gitsnatcher

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gitsnatcher-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: gitsnatcher-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gitsnatcher-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1ac92be9f93cf92b40c5548442048f93614f87e4476dfb05ed110094334847f1
MD5 52949ecaac4a293cf7b86b53af6d348e
BLAKE2b-256 ccdadd99db459b7a499ef61d07bd5995212c1ee5f8f63ffe765840b1142c2dc8

See more details on using hashes here.

Provenance

The following attestation bundles were made for gitsnatcher-1.0.0-py3-none-any.whl:

Publisher: publish-pypi.yml on Baba01hacker666/gitsnatcher

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page