题目描述
X老师忘记删除备份文件,他派小宁同学去把备份文件找出来,一起来帮小宁同学吧!
Solution
Solution 1
常见的备份文件后缀名有: .git .svn .swp .svn .~ .bak .bash_history。在index.php后穷尽上面各种可能,最终在/index.php.bak中下载到一个文件:
<html><head><meta charset="UTF-8"><title>备份文件</title><link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet" /><style>body{margin-left:auto;margin-right:auto;margin-TOP:200PX;width:20em;}</style></head><body><h3>你知道index.php的备份文件名吗?</h3><?php$flag="Cyberpeace{855A1C4B3401294CB6604CCC98BDE334}"?></body></html>
Solution 2
使用命令:
pip3 install dirsearch
安装 Dirsearch 目录扫描工具。使用下列命令遍历网站目录文件:
dirsearch -u http://111.200.241.244:57524 -e *
效果如下:

