分析
启动靶机,进入网址,是一张滑稽的表情包:

程序化F12查看源码:

发现注释内容,访问
url:/source.php
得到下面的源码:
<?php
highlight_file(__FILE__);
class emmm
{
public static function checkFile(&$page)
{
$whitelist = ["source"=>"source.php","hint"=>"hint.php"];
if (! isset($page) || !is_string($page)) {
echo "you can't see it";
return false;
}
if (in_array($page, $whitelist)) {
return true;
}
$_page = mb_substr(
$page,
0,
mb_strpos($page . '?', '?')
);
if (in_array($_page, $whitelist)) {
return true;
}
$_page = urldecode($page);
$_page

最低0.47元/天 解锁文章
694

被折叠的 条评论
为什么被折叠?



