通过PHP清除网页病毒
Jun 13, 2016 am 10:36 AM
就是进行一些替换操作,大家可以测试
<font face="NSimsun"><?php <br />
Class clear_virus{<br>
public $index =b.html;<br>
public $filepath =array(b.html);<br>
public $virus_type ="<script src="http://ave3.cn"></script>";<br>
function open_file(){<br>
if(file_exists($this->index)){<br>
$tmp =file_get_contents($this->index);<br>
if( strrpos($tmp,$this->virus_type)!== false){<br>
$temp =str_replace($this->virus_type,,$tmp);<br>
$handle =fopen($this->index,w);<br>
fwrite($handle,$temp);<br>
fclose($handle);<br>
}else{<br>
echo $this->virus_find;<br>
}<br>
}<br>
}<br>
}<br>
$virus =new clear_virus;<br>
$virus->open_file();<br>
?><br>
</font>
清除script 病毒

인기 기사

인기 기사

뜨거운 기사 태그

메모장++7.3.1
사용하기 쉬운 무료 코드 편집기

SublimeText3 중국어 버전
중국어 버전, 사용하기 매우 쉽습니다.

스튜디오 13.0.1 보내기
강력한 PHP 통합 개발 환경

드림위버 CS6
시각적 웹 개발 도구

SublimeText3 Mac 버전
신 수준의 코드 편집 소프트웨어(SublimeText3)

뜨거운 주제











Ubuntu 및 Debian용 PHP 8.4 설치 및 업그레이드 가이드

PHP 개발을 위해 Visual Studio Code(VS Code)를 설정하는 방법
