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.
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
This library is released under MIT license.