maxakawizard/php-virus-scanner

0.3.1 2015-04-18 16:10 UTC

This package is auto-updated.

Last update: 2024-03-29 02:16:22 UTC


README

Build Status Scrutinizer Code Quality Code Climate Coverage Status GitHub tag Minimum PHP Version License

SensioLabsInsight

This is a console tool for scanning files for virus signatures.

The code is compliant with PSR-4, PSR-1, and PSR-2. If you notice compliance oversights, please send a patch via pull request.

Usage

For correct signature interpretation, use only single quotes in command line. If signature contains single code itself, escape it in such way: '\''

This will output *.php files containing code eval($_POST['a']):

php phpvs scan /path/to/dir 'eval($_POST['\''a'\''])'

This will delete all *.php files containing code eval(base64_decode($abc)):

php phpvs scan /path/to/dir 'eval(base64_decode($abc))' --delete

License

This library is released under MIT license.