lijiejie / GitHack

A `.git` folder disclosure exploit
3.08k stars 779 forks source link

GitHack处理之后,目标目录中无.git文件夹 #24

Open davidwu1001 opened 1 year ago

davidwu1001 commented 1 year ago

CTHHub log题 使用GitHack还原git历史 命令:

python GitHack.py http://challenge-378c7eae57fd469c.sandbox.ctfhub.com:10800/.git/

得到:

[+] Download and parse index file ...
[+] 50x.html
[+] index.html
[OK] index.html
[OK] 50x.html

按理说应该得到

[+] Download and parse index file ...
[+] 50x.html
[+] index.html
[ok] .git
[OK] index.html
[OK] 50x.html

结果没有.git文件夹,只恢复了源文件,没有恢复.git 无法进行git log查看,期待得到原因和解决方法

Oision-hub commented 1 year ago

和你一样

davidwu1001 commented 1 year ago

和你一样

还是没有找到解决办法 但是找到一个替换方法,用BugScanTeam 的githack,注意要在Python2环境里使用