恶意代码安装文件中的内容【请官方工作人员帮忙看下,都有哪些破坏,和窃取了我的资料,我感觉数据库的信息被窃取了】
【下面是该恶意插件,执行文件的全部代码】
-
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
- <title>安装/升级文件</title>
- </head>
- <body>
- <?php
- /*
- [UCenter Home] (C) 2007-2008 Comsenz Inc.
- $Id: index_install.php 10953 2009-01-12 02:55:37Z liguode $
- */
- include_once('./common.php');
- if($_SGLOBAL['db']->query("CREATE TABLE IF NOT EXISTS `".tname('musicbox')."` (`songid` mediumint(8) unsigned NOT NULL auto_increment,`albumid` mediumint(8) unsigned NOT NULL default '0',`userid` mediumint(8) unsigned NOT NULL,`usersay` text character set utf8,`songname` varchar(255) character set utf8 NOT NULL,`label` varchar(255) character set utf8 default NULL,`singer` varchar(255) character set utf8 default NULL,`Categories` varchar(255) character set utf8 default NULL,`lang` int(4) unsigned NOT NULL,`songurl` varchar(255) character set utf8 NOT NULL,`lyric` text character set utf8,`commenduser` varchar(255) character set utf8 default NULL,`collectionuser` varchar(255) character set utf8 default NULL,`commendtotal` int(8) unsigned NOT NULL default '0',`playtotal` int(8) unsigned NOT NULL default '0',`upload` int(4) unsigned NOT NULL default '1',`down` int(4) unsigned default '0',`comment` varchar(255) character set utf8 default NULL,`dataline` int(10) unsigned NOT NULL,PRIMARY KEY (`songid`))")){
- echo "数据表<span style='color:#FF0000'>".tname('musicbox')."</span>安装成功!<br /><br />";
- }
- if($_SGLOBAL['db']->query("CREATE TABLE IF NOT EXISTS `".tname('musicbox_album')."` (`albumid` mediumint(8) unsigned NOT NULL auto_increment,`userid` mediumint(8) unsigned NOT NULL,`albumname` varchar(255) character set utf8 NOT NULL,`albumfengmian` varchar(255) character set utf8 NOT NULL,`dataline` int(10) unsigned NOT NULL,PRIMARY KEY (`albumid`))")){
- echo "数据表<span style='color:#FF0000'>".tname('musicbox_album')."</span>安装成功!<br /><br />";
- }
- if($_SGLOBAL['db']->query("CREATE TABLE IF NOT EXISTS `".tname('musicbox_mybox')."` (`id` mediumint(8) unsigned NOT NULL auto_increment,`boxuserid` mediumint(8) unsigned NOT NULL,`boxsongid` mediumint(8) unsigned NOT NULL,`boxorder` int(4) unsigned NOT NULL default '0',`page` int(4) unsigned NOT NULL default '0',PRIMARY KEY (`id`))")){
- echo "数据表<span style='color:#FF0000'>".tname('musicbox_mybox')."</span>安装成功!<br /><br />";
- }
- if($_SGLOBAL['db']->query("CREATE TABLE IF NOT EXISTS `".tname('musicbox_pingfen')."` (`id` mediumint(8) unsigned NOT NULL auto_increment,`songid` mediumint(8) unsigned NOT NULL,`puserid` mediumint(8) unsigned NOT NULL,`mark` int(4) unsigned NOT NULL,`dateline` int(10) unsigned NOT NULL,PRIMARY KEY (`id`))")){
- echo "数据表<span style='color:#FF0000'>".tname('musicbox_pingfen')."</span>安装成功!<br /><br />";
- }
- if($_SGLOBAL['db']->query("CREATE TABLE IF NOT EXISTS `".tname('musicbox_pinglun')."` (`id` mediumint(8) unsigned NOT NULL auto_increment,`songid` mediumint(8) unsigned NOT NULL,`puserid` mediumint(8) unsigned NOT NULL,`pltext` text character set utf8,`dateline` int(10) unsigned NOT NULL,PRIMARY KEY (`id`))")){
- echo "数据表<span style='color:#FF0000'>".tname('musicbox_pinglun')."</span>安装成功!<br /><br />";
- }
- if($_SGLOBAL['db']->query("CREATE TABLE IF NOT EXISTS `".tname('musicbox_disk')."` (`diskid` mediumint(8) unsigned NOT NULL auto_increment,`userid` mediumint(8) unsigned NOT NULL,`fileurl` varchar(255) character set utf8 NOT NULL,`filename` varchar(255) character set utf8 NOT NULL,`filedescription` varchar(255) character set utf8 default NULL,`dateline` int(10) unsigned NOT NULL,PRIMARY KEY (`diskid`))")){
- echo "数据表<span style='color:#FF0000'>".tname('musicbox_disk')."</span>安装成功!<br /><br />";
- }
-
- $configfile = S_ROOT.'./space.php';
- $configcontent = sreadfile($configfile);
- if(!strpos($configcontent,"'musicbox',")){
- $configcontent = str_replace("'pm',","'musicbox','pm',",$configcontent);
- $fp111 = fopen($configfile, 'w');
- fwrite($fp111, trim($configcontent));
- fclose($fp111);
-
- }
- fclose($fp111);
- echo "文件<span style='color:#FF0000'>space.php</span>已修改成功<br />";
-
- $configfile = S_ROOT.'./do.php';
- $configcontent = sreadfile($configfile);
- if(!strpos($configcontent,"'ajaxm',")){
- $configcontent = str_replace("'ajax',","'ajaxm','ajax',",$configcontent);
- $fp111 = fopen($configfile, 'w');
- fwrite($fp111, trim($configcontent));
- fclose($fp111);
- }
- fclose($fp111);
- echo "文件<span style='color:#FF0000'>do.php</span>已修改成功<br />";
-
- $configfile = S_ROOT.'./template/default/header.htm';
- $configcontent = sreadfile($configfile);
- if(!strpos($configcontent,'<script type="text/javascript" src="js/SuggestFramework.js"></script>')){
- $configcontent = str_replace('<script language="javascript" type="text/javascript" src="source/script_manage.js"></script>','<script language="javascript" type="text/javascript" src="source/script_manage.js"></script>'.chr(10).'<script type="text/javascript" src="js/SuggestFramework.js"></script>'.chr(10).'<script type="text/javascript">window.onload = initializeSuggestFramework;</script>',$configcontent);
- $fp111 = fopen($configfile, 'w');
- fwrite($fp111, trim($configcontent));
- fclose($fp111);
- }
- fclose($fp111);
- echo "文件<span style='color:#FF0000'>header.htm</span>已修改成功<br />";
-
-
- $configfile = S_ROOT.'./template/default/space_index.htm';
- $configcontent = sreadfile($configfile);
- if(!strpos($configcontent,"cmp.swf?src=$spacemusicbg[songurl]")){
- $configcontent = str_replace('<img src="<!--{avatar($space[uid],big)}-->" alt="{$_SN[$space[uid]]}" />','<img src="<!--{avatar($space[uid],big)}-->" alt="{$_SN[$space[uid]]}" />'.chr(10).'<!--{if !empty($spacemusicbg) && $_SGLOBAL[supe_uid]}-->'.chr(10).'<div>'.chr(10).'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0" width="100%" height="24" id="cmp">'.chr(10).'<param name="movie" value="cmp.swf?src=$spacemusicbg[songurl]&skin_src=mini/mini02.zip&auto_play=1&play_mode=1&context_menu=0&show_tip=0&plugins_disabled=1&c.swf" />'.chr(10).'<param name="quality" value="high" />'.chr(10).'<param name="allowFullScreen" value="true" />'.chr(10).'<param name="allowScriptAccess" value="always" />'.chr(10).'<param name="wmode" value="Transparent"/>'.chr(10).'<embed pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100%" height="24" name="cmp" src="cmp.swf?src=$spacemusicbg[songurl]&skin_src=mini/mini02.zip&auto_play=1&play_mode=1&context_menu=0&show_tip=0&plugins_disabled=1&c.swf" quality="high" allowfullscreen="true" allowscriptaccess="always" wmode="Transparent" ></embed>'.chr(10).'</object>'.chr(10).'</div>'.chr(10).'<<!--{if !empty($spacemusicbg[albumfengmian])}--><a href="space.php?uid=$spacemusicbg[userid]&do=musicbox&mview=malbum&albumid=$spacemusicbg[albumid]&userspace=$spacemusicbg[userid]" target="_blank">$spacemusicbg[albumname]</a><!--{else}--><a href="space.php?uid=$spacemusicbg[userid]&do=musicbox&mview=malbum&albumid=true&userspace=$spacemusicbg[userid]" target="_blank">默认专辑</a><!--{/if}-->>专辑<br /><!--{if !empty($spacemusicbg[albumfengmian])}--><a href="space.php?uid=$spacemusicbg[userid]&do=musicbox&mview=malbum&albumid=$spacemusicbg[albumid]&userspace=$spacemusicbg[userid]" target="_blank"><img src="$spacemusicbg[albumfengmian]" style="border:solid 1px #A19D9A;" /></a><!--{/if}-->'.chr(10).'<!--{/if}-->',$configcontent);
- $fp111 = fopen($configfile, 'w');
- fwrite($fp111, trim($configcontent));
- fclose($fp111);
- }
- fclose($fp111);
- echo "文件<span style='color:#FF0000'>space_index.htm</span>已修改成功<br />";
-
-
- $configfile = S_ROOT.'./source/space_index.php';
- $configcontent = sreadfile($configfile);
- if(!strpos($configcontent,"source/function_music.php")){
- $configcontent = str_replace("\$_SGLOBAL['space_theme'] = \$space['theme'];","include_once(S_ROOT.'./source/function_music.php');".chr(10)."\$spacemusicbg = array();".chr(10)."\$spacemusicbg = getmusicbg(\$space['uid']);".chr(10)."\$_SGLOBAL['space_theme'] = \$space['theme'];",$configcontent);
- $fp111 = fopen($configfile, 'w');
- fwrite($fp111, trim($configcontent));
- fclose($fp111);
- }
- fclose($fp111);
- echo "文件<span style='color:#FF0000'>space_index.php</span>已修改成功<br />";
-
-
- $configfile = S_ROOT.'./config.php';
- $configcontent = sreadfile($configfile);
- //if(!strpos($configcontent,"music_upload")){
- $configcontent = preg_replace("/(?:tplrefresh)([\w\W]*?)mysql/is","tplrefresh'] = 0;".chr(10).chr(10).chr(10)."\$_SC['music_upload'] = '1';".chr(10)."\$_SC['music_link'] = '1';".chr(10)."\$_SC['music_integralset'] = '1';".chr(10)."\$_SC['music_i_upload'] = '5';".chr(10)."\$_SC['music_i_upload_del'] = '-5';".chr(10)."\$_SC['music_i_addlink'] = '3';".chr(10)."\$_SC['music_i_addlink_del'] = '-3';".chr(10)."\$_SC['music_i_addzj'] = '2';".chr(10)."\$_SC['music_i_addzj_del'] = '-1';".chr(10)."\$_SC['music_i_pingfen'] = '1';".chr(10)."\$_SC['music_i_pinglun'] = '1';".chr(10)."\$_SC['music_i_pinglun_del'] = '-3';".chr(10)."\$_SC['music_i_share'] = '4';".chr(10)."\$_SC['music_play_auto'] = '0';".chr(10)."\$_SC['music_down_auto'] = '0';".chr(10)."\$_SC['music_palyer_style'] = '0';".chr(10)."\$_SC['music_i_disk'] = '1';".chr(10).chr(10).chr(10)."define('UC_CONNECT', 'mysql",$configcontent);
- //$configcontent = str_replace("\$_SC['tplrefresh'] = 0;","\$_SC['tplrefresh'] = 0;".chr(10).chr(10)."\$_SC['music_upload'] = '1';".chr(10)."\$_SC['music_link'] = '1';".chr(10)."\$_SC['music_integralset'] = '1';".chr(10)."\$_SC['music_i_upload'] = '5';".chr(10)."\$_SC['music_i_upload_del'] = '-5';".chr(10)."\$_SC['music_i_addlink'] = '3';".chr(10)."\$_SC['music_i_addlink_del'] = '-3';".chr(10)."\$_SC['music_i_addzj'] = '2';".chr(10)."\$_SC['music_i_addzj_del'] = '-1';".chr(10)."\$_SC['music_i_pingfen'] = '1';".chr(10)."\$_SC['music_i_pinglun'] = '1';".chr(10)."\$_SC['music_i_pinglun_del'] = '-3';".chr(10)."\$_SC['music_i_share'] = '4';".chr(10)."\$_SC['music_play_auto'] = '0';".chr(10)."\$_SC['music_down_auto'] = '0';".chr(10)."\$_SC['music_palyer_style'] = '0';".chr(10)."\$_SC['music_i_disk'] = '1';",$configcontent);
- $fp111 = fopen($configfile, 'w');
- fwrite($fp111, trim($configcontent));
- fclose($fp111);
- //}
- fclose($fp111);
- echo "文件<span style='color:#FF0000'>config.php</span>已配置成功<br />";
-
-
- function change_match_string($str){
- $old=array("/","$");
- $new=array("\/","\$");
- $str=str_replace($old,$new,$str);
- return $str;
- }
-
- ?>
- </body>
- </html>
复制代码 |