GitHack icon indicating copy to clipboard operation
GitHack copied to clipboard

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

Open davidwu1001 opened this issue 1 year ago • 2 comments

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查看,期待得到原因和解决方法

davidwu1001 avatar Aug 24 '23 03:08 davidwu1001

和你一样

Oision-hub avatar Aug 29 '23 06:08 Oision-hub

和你一样

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

davidwu1001 avatar Sep 11 '23 11:09 davidwu1001