Skip to content

Latest commit

 

History

History
36 lines (21 loc) · 1.01 KB

README.md

File metadata and controls

36 lines (21 loc) · 1.01 KB

GitHack Scripts

Scripts implementing Git Hack with recursion algorithm.

Usage

git clone https://github.com/hazzel-cn/GitHack.git
cd GitHack

// For githack.py, it collects all files classified by commits so that you can go through all files.
python3 githack.py http://you.target/.git/

// For gitclone.py, it clones the whole repository, which allows you to execute git commands.
python3 gitclone.py http://you.target/.git/

Screenshot

githack.py img

gitclone.py img

Why this script

Without installing git, you can exploit a Git source code leak.

More details can be found in https://www.hazzel.cn/2019/04/20/a-new-githack-script/

Update log

2019-4-21 Improve recursion implementation (DFS) and fix some bugs.