maxakawizard / php-virus-scanner
PHP Virus Scanner
0.3.1
2015-04-18 16:10 UTC
Requires
- php: >=5.4.0
- symfony/console: 2.6.*
- symfony/finder: 2.6.*
Requires (Dev)
- satooshi/php-coveralls: dev-master
This package is auto-updated.
Last update: 2024-10-29 03:28:00 UTC
README
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.