# lijiejie/GitHack

A `.git` folder disclosure exploit

Repository: https://github.com/lijiejie/GitHack
Canonical: https://ross.abutalabs.com/products/githack
Language: Python
License Family: other
Last push: 2023-02-01T07:14:07+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4144, "days_push": 1309, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3576, forks 809 (observed 2026-08-28T04:08:10.836234+00:00)

## What it is
GitHack is a Python CLI exploit tool that reconstructs a website's source code from an exposed .git folder. It parses the .git/index file, downloads objects from .git/objects, decompresses them, and rewrites the original directory structure.

## Use cases
- recover source code from an exposed .git directory on a web server
- test whether my site leaks its .git folder
- rebuild a project's files during a penetration test
- audit leaked source code for web vulnerabilities like SQL injection
- download all blobs referenced by a leaked git index

## When to choose
- you need a simple, fast script to exploit .git folder disclosure
- you want to preserve the original directory structure when reconstructing files
- you prefer a lightweight Python tool with no heavy dependencies

## When to avoid
- you need a full-featured git client or general-purpose git recovery
- you require an actively maintained tool with ongoing releases
- you need a tool with a formal license for commercial use

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: security, web-scraping, parser, cli
- domain: security, penetration-testing, developer-tools, version-control
- platform: python, cli, windows
- tags: git-disclosure, exploit, pentest, source-code-recovery, offensive-security, linux, macos

## Member repositories
- lijiejie/GitHack (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:10.836234+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:34:02.294733+00:00, confidence not recorded.
  - readme: https://github.com/lijiejie/GitHack (fetched 2026-08-28T04:08:10.836234+00:00, sha d073ac123c75)
- Data as of 2026-08-30T08:39:29.467469+00:00.
