ollyxar/php-malware-detector
最新稳定版本:1.0.1
Composer 安装命令:
composer require ollyxar/php-malware-detector
包简介
PHP malware detector
README 文档
README
Smart PHP vulnerability detector
Web mode:
Console mode:
Using PHP malware detector
Requirements
- PHP 5.4+
Install php-malware-detector via composer.
# Install Composer curl -sS https://getcomposer.org/installer | php
Next, run the Composer command to install the latest stable version of php-malware-detector:
php composer.phar require ollyxar/php-malware-detector
After installing, you need to require Composer's autoloader and run scan:
require 'vendor/autoload.php'; (new Scanner())->run();
Using php-malware-detector in Web-mode:
Put scanner.php in the web-root directory on the web-server and open your website in the browser (like http://mywebsite.com/scanner.php)
Using php-malware-detector in Cron-mode:
You can schedule scanning process. To do that you have to add commend:
php /path_to/scanner.php > "log.txt"
Additional parameters for scanner:
// 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();
统计信息
- 总下载量: 25.08k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 129
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-28