我的创作纪念日

机缘

感谢CSDN,感谢各位师傅的知道,能在CSDN与大家相遇,分享学习知识,共同进步,非常开心。

收获

  1. 获得了600➕粉丝的关注
  2. 获得224678阅读量
  3. 8位铁粉

日常

提示:当前创作和你的工作、学习是什么样的关系

例如:

  1. 创作是否已经是你生活的一部分了
  2. 有限的精力下,如何平衡创作和工作学习
  3. 通过分享,能自我提高,能帮助别人解决与我相同的问题,心里很开心

成就

这段时间感觉反序列化比较有趣,希望各位师傅,有好的建议和想法,可以一起交流。

<?php
//flag is in flag.php
//WTF IS THIS?
//Learn From https://ctf.ieki.xyz/library/php.html#%E5%8F%8D%E5%BA%8F%E5%88%97%E5%8C%96%E9%AD%94%E6%9C%AF%E6%96%B9%E6%B3%95
//And Crack It!
class Modifier {
    protected  $var;
    public function append($value){
        include($value);
    }
    public function __invoke(){
        $this->append($this->var);
    }
}

class Show{
    public $source;
    public $str;
    public function __construct($file='index.php'){
        $this->source = $file;
        echo 'Welcome to '.$this->source."<br>";
    }
    public function __toString(){
        return $this->str->source;
    }

    public function __wakeup(){
        if(preg_match("/gopher|http|file|ftp|https|dict|\.\./i", $this->source)) {
            echo "hacker";
            $this->source = "index.php";
        }
    }
}

class Test{
    public $p;
    public function __construct(){
        $this->p = array();
    }

    public function __get($key){
        $function = $this->p;
        return $function();
    }
}

if(isset($_GET['pop'])){
    @unserialize($_GET['pop']);
}
else{
    $a=new Show;
    highlight_file(__FILE__);
}

憧憬

  1. 希望CSDN越来越好。
  2. 希望那个坚持的你,在未来能成为更好的自己

Tips

  1. 您发布的文章将会展示至 里程碑专区 ,您也可以在 专区 内查看其他创作者的纪念日文章
  2. 优质的纪念文章将会获得神秘打赏哦
相关推荐
Narnat6 个月前
我的创作纪念日
纪念
破浪前进7 个月前
我的创作纪念日
纪念