- getenv: documentation ( source)
- unserialize: documentation ( source)
<?php
class Sekai_Game{
public $start = True;
public function __destruct(){
echo "__destruct\n";
if($this->start === True){
echo "Sekai Game Start Here is your flag ".getenv('FLAG');
}
}
public function __wakeup(){
echo "__wakeup\n";
$this->start=False;
}
}
$data='C:10:"Sekai_Game":0:{}';
unserialize($data);
?>