墨者学院 - PHP本地包含漏洞代码溯源

<!--r.php文件源码如下 本关通关key保存在系统根目录the_key_is_here.txt中 ->

​<?php 

$p=($_GET["p"].".txt");

$pics=file($p);

for($i=0;$i< count($pics);$i++)

{

echo $pics[$i];

}

?>

说明密码存在the_key_is_here,输入http://xxx/r.php?p=/the_key_is_here,即可获取key

posted @ 2018-09-14 17:52  小贱丶  阅读(722)  评论(0)    收藏  举报