吐槽一下
这次的web题目感觉完全是新手题,思路很直接,我就不掺和了,做完web就逃23333,继续完成密码学课程实验报告去了。。。但还是记录一下。
easy
这个题目考的是一个php反序列化的一个绕过,上来就给了一段代码,很简单
<?php
@error_reporting(1);
include 'flag.php';
class baby
{
public $file;
function __toString()
{
if(isset($this->file))
{
$filename = "./{
$this->file}";
if (file_get_contents($filename))
{
return file_get_contents($filename);
}
}