




下載本文檔
版權(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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- GB/T 45286-2025信息技術(shù)手持式移動(dòng)設(shè)備增強(qiáng)現(xiàn)實(shí)系統(tǒng)技術(shù)規(guī)范
- 2025年萊蕪下載貨運(yùn)從業(yè)資格證模擬考試系統(tǒng)試題
- 單位空調(diào)安裝合同范本
- 刑法中勞務(wù)合同范本
- 刊物設(shè)計(jì)制作合同范本
- 寫好運(yùn)輸合同范本
- 農(nóng)戶貸款合伙經(jīng)營(yíng)合同范本
- 企業(yè)重組收購(gòu)合同范本
- 供熱設(shè)備買賣合同范本
- 代理銀行開戶合同范本
- 銷售人員人才畫像
- 通力電梯KCE電氣系統(tǒng)學(xué)習(xí)指南
- 整理我的小書桌(課件)小學(xué)勞動(dòng)二年級(jí)通用版
- 教學(xué)課件-《旅行社業(yè)務(wù)》-(中職)
- 第二章 第一節(jié) CT設(shè)備基本運(yùn)行條件
- 森林撫育施工組織設(shè)計(jì)
- 某道路拓寬工程施工組織設(shè)計(jì)
- 第一章染整工廠設(shè)計(jì)
- 上虞市化工、印染企業(yè)名單-企業(yè)負(fù)責(zé)人信息及聯(lián)系方式
- DL-T 736-2021 農(nóng)村電網(wǎng)剩余電流動(dòng)作保護(hù)器安裝運(yùn)行規(guī)程
- YS/T 431-2009鋁及鋁合金彩色涂層板、帶材
評(píng)論
0/150
提交評(píng)論