Skip to content

MAXakaWIZARD/PhpVirusScanner

Repository files navigation

PHP Virus Scanner

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.

About

Console tool for scanning files for virus signatures

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages