项目作者: ollyxar

项目描述 :
PHP malware detector
高级语言: PHP
项目地址: git://github.com/ollyxar/php-malware-detector.git
创建时间: 2018-02-28T08:26:10Z
项目社区:https://github.com/ollyxar/php-malware-detector

开源协议:MIT License

下载


PHP malware detector

Build Status
Version
Downloads
License

Smart PHP vulnerability detector

Web mode:

ollyxar php-malware-detector

Console mode:

chat

Using PHP malware detector

Requirements

  • PHP 5.4+

Install php-malware-detector via composer.

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

Next, run the Composer command to install the latest stable version of php-malware-detector:

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

After installing, you need to require Composer’s autoloader and run scan:

  1. require 'vendor/autoload.php';
  2. (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:

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

Additional parameters for scanner:

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