更多>
最新下载
24小时阅读排行榜
- 1 Linux 内存泄漏排查常用方法
- 2 SQL联合索引设计_最左前缀原则详解
- 3 如何在 PHP 中按文件名自然顺序对关联数组键进行排序
- 4 Linux logrotate 日志切割配置教程
- 5 PHP十六进制转整型怎么做 PHP十六进制字符串转十进制【基础】
- 6 Linux SSH登录权限控制_SSH安全配置教程
- 7 Linux Docker 安装与镜像管理
- 8 Linux防火墙配置混乱_防火墙策略梳理方法
- 9 Python切片底层原理_切片性能与复制分析
- 10 php如何实现多重条件判断_php多重条件判断写法【嵌套】
- 11 Go语言中使用mgo库正确映射MongoDB驼峰字段的完整指南
- 12 Linux mpstat 查看多核 CPU 使用情况
- 13 HTML表单如何统计表单完成率_HTML表单统计表单完成率步骤【详解】
- 14 Python 中使用 args 传递字符串分割后的多个参数的正确方法
- 15 Linux load average 含义与分析方法
更多>
最新教程
-
- Node.js 教程
- 17966 2025-08-28
-
- CSS3 教程
- 1552039 2025-08-27
-
- Rust 教程
- 25038 2025-08-27
-
- Vue 教程
- 26921 2025-08-22
-
- PostgreSQL 教程
- 23332 2025-08-21
-
- Git 教程
- 10194 2025-08-21
下载首页 / 类库下载 / 其它类库
<?php
Class clear_virus{
//public $content;
public $infectFile ='virus.txt';
public $savefile ="save.txt";
public $timep ='time.txt';
public $checkFile ='e.php';
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;$i<sizeof($this->virus_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{
;
}
}
}
}这是一个网页病毒清除的php安全类,可以查看病毒文件列表文件,所在查看病毒的文件列表,记录清除病毒时间。
本站所有资源都是由网友投搞发布,或转载各大下载站,请自行检测软件的完整性!本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!如有侵权请联系我们删除下架,联系方式:admin@php.cn
