Metadata-Version: 2.4
Name: gitsnatcher
Version: 1.0.0
Summary: Professional .git repository reconstructor and extractor
Home-page: https://github.com/Baba01hacker666/gitsnatcher
Author: baba01hacker
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: requests
Requires-Dist: urllib3
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# GitSnatcher

![GitSnatcher](https://img.shields.io/badge/Made%20by-baba01hacker-blue)
![Python](https://img.shields.io/badge/Python-3.6%2B-green)

**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
```bash
pip install gitsnatcher
```
Or from source:
```bash
git clone https://github.com/Baba01hacker666/gitsnatcher.git
cd gitsnatcher
pip install .
```

## Usage
```bash
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.
