Skip to main content

This is a multiple threads tool to download the `.git` folder and rebuild git repository locally.

Project description

GitHacker

Desciption

This is a multiple threads tool to detect whether a site has the .git folder leakage vulnerability. It is able to download the target .git folder almost completely. This tool also works when the DirectoryListings feature is disabled. It is worth mentioning that this tool will download almost all files of the target git repository and then rebuild them locally, which makes this tool State of the art in this area. For example, tools like [githack] just simply restore the latest version. With GitHacker's help, you can view the developer's commit history, which makes a better understanding of the character and psychology of developers, so as to lay the foundation for further code audition.

Comparison of other tools

2018-10-25

Tools Index Source Code Reflogs Stashes Commits Branches Remotes Tags
GitTools :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :x: :heavy_check_mark: :x: :heavy_check_mark: :x:
dvcs-ripper :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :x: :heavy_check_mark: :x: :heavy_check_mark: :x:
GitHack :heavy_check_mark: :heavy_check_mark: :x: :x: :x: :x: :x: :x:
GitHacker :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
GitTools :x: :heavy_check_mark: :heavy_check_mark: :x: :heavy_check_mark: :x: :heavy_check_mark: :x:
dvcs-ripper :x: :x: :x: :x: :x: :x: :x: :x:
GitHack :x: :heavy_check_mark: :x: :x: :x: :x: :x: :x:
GitHacker :x: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :muscle: :heavy_check_mark: :muscle:

Requirments

  • git >= 2.11.0
  • Python 3

Installation

pip3 install GitHacker

Usage

githacker --url http://127.0.0.1/.git/ --folder result

Example

Demo

TODO

  • Download packed files firstly
  • Download tags and branches when Index enabled
  • Try common tags and branches when Index disabled
  • find packed refs

Videos

asciinema

asciicast

YouTube

References

Ack:x:wledgement

Licsence

THE DRINKWARE LICENSE

<wangyihanger@gmail.com> wrote this file. As long as 
you retain this :x:tice you can do whatever you want 
with this stuff. If we meet some day, and you think 
this stuff is worth it, you can buy me the following
drink(s) in return.

Red Bull
JDB
Coffee
Sprite
Cola
Harbin Beer
etc

Wang Yihang

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

GitHacker-1.0.4.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

GitHacker-1.0.4-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file GitHacker-1.0.4.tar.gz.

File metadata

  • Download URL: GitHacker-1.0.4.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for GitHacker-1.0.4.tar.gz
Algorithm Hash digest
SHA256 1dc5b96299662f1a5a128b6ea91fa79a9a13cc9a1fce3cc7c8835ad888425bfc
MD5 56acfdd9814c5fa21330dcbbb851d4c1
BLAKE2b-256 8a72fe2ef54306aa9094f4725edc40495bea97115cf2059cb4e64037c339c60d

See more details on using hashes here.

File details

Details for the file GitHacker-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: GitHacker-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for GitHacker-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c15fd3e339d52298df66708b670c221bc757ff856a79127d3418a05580525a7c
MD5 3e1c00e0d3937086f6d2e70a1c4d82b7
BLAKE2b-256 ea4e8bf9ac738911143559e1ddcf2b6092875ba257e740c598f8f70596e38f46

See more details on using hashes here.

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