php網(wǎng)頁怎樣清除病毒清_第1頁
php網(wǎng)頁怎樣清除病毒清_第2頁
php網(wǎng)頁怎樣清除病毒清_第3頁
php網(wǎng)頁怎樣清除病毒清_第4頁
php網(wǎng)頁怎樣清除病毒清_第5頁
全文預(yù)覽已結(jié)束

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

本文格式為Word版,下載可任意編輯——php網(wǎng)頁怎樣清除病毒清php網(wǎng)頁怎樣除掉病毒清

好多人的`網(wǎng)頁經(jīng)常被無故的在php,asp,html,js等文件后臺(tái)加上一些木馬地址,造成了很大的困擾,你知道要怎么除掉php網(wǎng)頁病毒嗎?下面我給大家整理了php網(wǎng)頁病毒除掉的方法,供大家參閱。

首先們要讀取$checkFile文件這個(gè)文章是判斷一個(gè)文章是否被感染了,假設(shè)是就會(huì)執(zhí)行$savafile變量里面的txt文件路徑的全體文件,舉行按你infecFile病毒列表除掉一次.

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

Classclear_virus

//public$content;

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

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

public$timep=time.txt;//些記錄除掉病毒時(shí)間

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

public$run=0;

public$virus_type;

public$replace;

public$filepath;

public$tag=0;

functionopen_file

$this-read_virus;

$this-check_File;

if$this-run

$this-update_time;

$this-read_file;

foreach$this-filepathas$tmppath

iffile_exists$tmppath

$tmp_file=file_get_contents$tmppath;

print_r$this-virus_type;

for$i=0;$ivirus_type;$i++

ifstrrpos$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

;

functioncheck_File

iffile_exists$this-checkFile

$temp=file_get_contents$this-checkFile;

echo$temp;

foreach$this-virus_typeas$v_tmp

ifstrrpos$temp,$v_tmp!==false

$this-run=1;

break;

echo$this-run;

unset$temp;

else

$this-show_error5;

functionupdate_time

iffile_exists$this-timep

$tmp_time=dateY-m-dH:i:s.chr13.|;

$tmp_fp=fopen$this-timep,a+;

fwrite$tmp_fp,$tmp_time;

fclose$tmp_fp;

functionread_File

iffile_exists$this-savefile

$this-content=file$this-savefile;

ifis_array$this-content

$this-filepath=$this-content;

else

$this-show_error3;

else

$this-show_error4;

functionread_virus

iffile_exists$this-infectFile

$this-replace=file$this-infectFile;

ifis_array$this-replace

$this-virus_type=$this-replace;

else

$this-show_error1;

else

$this-show_error2;

functionshow_error$number

$array=array

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

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

3=文件列表不存了,

4=查殺的文件不存,

5=$this-$c

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論