工具下载地址:https://github.com/BugScanTeam/GitHack
python版本2.7 运行环境windows
Log
python GitHack.py http://challenge-55b6c65232b6b6ab.sandbox.ctfhub.com:10080/.git/
可将泄露的部分下载在dist文件夹下
cd .\dist
dir 显示目录下的文件
cd .\dist\challenge-55b6c65232b6b6ab.sandbox.ctfhub.com_10080\
git log 查看日志
此时位于a530 remove flag 即最新时刻
git diff 7547
检查当前文件和上一次提交文件的不同之处(这里的7547是缩写,一般四位以上能区分即可)