https://github.com/ollyxar/php-malware-detector
PHP malware detector
https://github.com/ollyxar/php-malware-detector
anti-malware antivirus php shell-detector vulnerability-scanners
Last synced: about 1 month ago
JSON representation
PHP malware detector
- Host: GitHub
- URL: https://github.com/ollyxar/php-malware-detector
- Owner: ollyxar
- License: mit
- Created: 2018-02-28T08:26:10.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-18T15:49:21.000Z (over 6 years ago)
- Last Synced: 2024-08-05T19:34:10.308Z (9 months ago)
- Topics: anti-malware, antivirus, php, shell-detector, vulnerability-scanners
- Language: PHP
- Size: 215 KB
- Stars: 130
- Watchers: 11
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP malware detector
[](https://travis-ci.org/ollyxar/php-malware-detector)


## Smart PHP vulnerability detector
Web mode:

Console mode:

## Using PHP malware detector
### Requirements
* PHP 5.4+### Install php-malware-detector via [composer](http://getcomposer.org).
```bash
# Install Composer
curl -sS https://getcomposer.org/installer | php
```Next, run the Composer command to install the latest stable version of php-malware-detector:
```bash
php composer.phar require ollyxar/php-malware-detector
```After installing, you need to require Composer's autoloader and run scan:
```php
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:
```bash
php /path_to/scanner.php > "log.txt"
```### Additional parameters for scanner:
```php
// 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();
```