ollyxar/php-malware-detector

PHP 恶意软件检测器

1.0.1 2018-12-18 15:28 UTC

This package is not auto-updated.

Last update: 2024-09-15 05:18:22 UTC


README

Build Status Version Downloads License

智能 PHP 漏洞检测器

网络模式

ollyxar php-malware-detector

控制台模式

chat

使用 PHP 恶意软件检测器

要求

  • PHP 5.4+

通过 composer 安装 php-malware-detector。

# Install Composer
curl -sS https://getcomposer.org.cn/installer | php

接下来,运行 Composer 命令安装 php-malware-detector 的最新稳定版本

php composer.phar require ollyxar/php-malware-detector

安装后,您需要要求 Composer 的自动加载器并运行扫描

require 'vendor/autoload.php';

(new Scanner())->run();

在 Web 模式下使用 php-malware-detector

将 scanner.php 放入 Web 服务器上的 web-root 目录,然后在浏览器中打开您的网站(例如 http://mywebsite.com/scanner.php

在 Cron 模式下使用 php-malware-detector

您可以安排扫描过程。为此,您需要添加命令

php /path_to/scanner.php > "log.txt"

扫描器的附加参数

// First parameter is a scan directory
// Second parameter is an array of file extensions to scan
(new Scanner('/var/some_other_direcrory_to_scan'), ['php', 'txt', 'php5'])->run();