<em id="0a85b"><option id="0a85b"></option></em>

<abbr id="0a85b"></abbr>

      <nobr id="0a85b"></nobr>
        <tr id="0a85b"></tr>
        9久久伊人精品综合,亚洲一区精品视频在线,成 人免费va视频,国产一区二区三区黄网,99国产精品永久免费视频,亚洲毛片多多影院,精品久久久无码人妻中文字幕,无码国产欧美一区二区三区不卡
        學(xué)習(xí)啦 > 學(xué)習(xí)電腦 > 電腦安全 > 病毒知識 > php網(wǎng)頁病毒清除的方法

        php網(wǎng)頁病毒清除的方法

        時間: 權(quán)威724 分享

        php網(wǎng)頁病毒清除的方法

          很多人的網(wǎng)頁經(jīng)常被無故的在php,asp,html,js 等文件后臺加上一些木馬地址,造成了很大的困擾,你知道要怎么清除php網(wǎng)頁病毒嗎?下面是學(xué)習(xí)啦小編整理的一些關(guān)于php網(wǎng)頁病毒清除的方法的相關(guān)資料,供你參考。

          php網(wǎng)頁病毒清除的方法:

          首先們要讀取 $checkFile 文件這個文章是判斷一個文章 是否被感染了,如果是就會執(zhí)行$savafile變量里面的txt文件路徑的所有文件,進行按你infecFile病毒列表清除一次.

          復(fù)制代碼 代碼如下:

          Class clear_virus{

          //public $content;

          public $infectFile ='virus.txt';//病毒文件列表文件

          public $savefile ="save.txt";//所在查看病毒的文件列表

          public $timep ='time.txt';//些記錄清除病毒時間

          public $checkFile ='e.php';//這里是設(shè)置

          public $run =0;

          public $virus_type;

          public $replace ;

          public $filepath ;

          public $tag =0;

          function open_file(){

          $this->read_virus();

          $this->check_File();

          if($this->run){

          $this->update_time();

          $this->read_file() ;

          foreach($this->filepath as $tmppath){

          if(file_exists($tmppath)){

          $tmp_file =file_get_contents($tmppath);

          print_r( $this->virus_type);

          for( $i=0;$ivirus_type);$i++ ){

          if( strrpos($tmp_file,$this->virus_type[$i])!== false){

          $tmp_file =str_replace($this->virus_type[$i],'',$tmp_file);

          $this->tag =1;

          }

          }

          if( $this->tag ){

          $handle =fopen($tmppath,'w');

          fwrite($handle,$tmp_file);

          fclose($handle);

          unset($tmp_file);

          }

          }else{

          ;

          }

          }

          }

          }

          function check_File(){

          if(file_exists($this->checkFile) ){

          $temp =file_get_contents($this->checkFile) ;

          echo $temp;

          foreach( $this->virus_type as $v_tmp ){

          if( strrpos($temp,$v_tmp)!== false ){

          $this->run =1;

          break;

          }

          }

          echo $this->run;

          unset($temp);

          }else{

          $this->show_error(5);

          }

          }

          function update_time(){

          if(file_exists($this->timep) ){

          $tmp_time =date("Y-m-d H:i:s").chr(13).'|';

          $tmp_fp =fopen($this->timep,'a+');

          fwrite($tmp_fp,$tmp_time);

          fclose($tmp_fp);

          }

          }

          function read_File(){

          if(file_exists($this->savefile) ){

          $this->content =file($this->savefile);

          if(is_array($this->content)){

          $this->filepath =$this->content;

          }else{

          $this->show_error(3);

          }

          }else{

          $this->show_error(4);

          }

          }

          function read_virus(){

          if(file_exists($this->infectFile) ){

          $this->replace =file($this->infectFile);

          if(is_array($this->replace)){

          $this->virus_type=$this->replace;

          }else{

          $this->show_error(1);

          }

          }else{

          $this->show_error(2);

          }

          }

          function show_error($number){

          $array = array(

          '1'=>'病毒文件未不能讀取!',

          '2'=>'病毒文件列表不存在!',

          '3'=>'文件列表不存了',

          '4'=>'查殺的文件不存',

          '5'=>$this->$checkFile.'不存在了,請設(shè)置病毒感染文件'

          );

          echo $array[$number];

          }

          }

          $virus =new clear_virus;

          $virus->open_file();

          ?>

          看過文章“php網(wǎng)頁病毒清除的方法”的人還看了:

          1.怎么樣正確處理被病毒侵入的電腦

          2.電腦中毒了該怎樣處理

          3.常用的殺毒防毒方法

          4.端口隔離技術(shù)新應(yīng)用

          5.怎么樣徹底查殺木馬病毒

          6.可以預(yù)防計算機病毒的方法

          7.十大方法教你預(yù)防惡意網(wǎng)頁

          8.發(fā)現(xiàn)電腦病毒后怎樣處理

          9.如何查找并防范ARP病毒

          10.最新計算機病毒2016是什么(2)

        556540 主站蜘蛛池模板: 国产91精品丝袜美腿在线| 精品国产中文字幕在线看| 国产美女午夜福利视频| 在线观看美女网站大全免费| 久久人与动人物a级毛片| 在线天堂最新版资源| 日本黄色三级一区二区三区| 男人猛躁进女人免费播放| 国产成人精品无码专区| 精品国产肉丝袜在线拍国语| 国产欧美精品aaaaaa片| 2020国产欧洲精品网站| 搡老女人老妇女老熟女o在线阅读| 深夜av在线免费观看| 日韩不卡在线观看视频不卡| 欧美人与动牲交a免费| 国产极品美女网站在线观看| 成 人影片 免费观看| 337P日本欧洲亚洲大胆精品555588| 国产性生大片免费观看性| 国产精品自在线拍国产手机版| 中文字幕精品亚洲二区| 成人区精品一区二区不卡| 久久久一本精品99久久| 麻豆一区二区三区精品蜜桃| 激情六月丁香婷婷四房播| 亚洲无人区码一二三区别| 亚洲成A人片在线观看无码不卡| 亚洲区精品区日韩区综合区| 午夜色无码大片在线观看免费| 国产男女猛烈无遮挡免费视频网址| 欧美综合人人做人人爱| 色吊丝av中文字幕| 国产精品自在拍首页视频8 | 欧洲精品码一区二区三区| 丰满的女邻居2| 久久精品蜜芽亚洲国产AV| 成人白浆一区二区三区在线观看| 蜜臀av在线无码国产| 最新日韩精品中文字幕| 北条麻妃无码|