目录
一、Log
1、题目介绍
2、知识储备
(1)、用的工具:dirsearch、Githack。(大家在GitHub上自己下载,也可以私聊)
Githack在使用前需要有确保git在环境变量里,下载如下:
ubuntu/debian: $ apt-get install git
redhat/centos: $ yum install git
windows:https://github.com/git-for-windows/git/releases/tag/v2.38.1.windows.1(下载地址)
(2)、GitHack是一个.git泄露利用脚本,通过泄露的.git文件夹下的文件,还原重建工程源代码。
(3)、Githack使用思路:1、Githack扫描;2、git log查看历史记录。
扫描语法:python GitHack.py http://www.target.com/.git/
3、解题步骤
(1)、查看页面
(2)、dirsearch扫描目录
python dirsearch.py -u http://challenge-5a5d24023f7ea71c.sandbox.ctfhub.com:10800 -e git -t 5
扫描结果:
存在git泄露;