webshell-detector
Installation and usage
The webshell detector can be integrated as a composer library to your project, or you can run it from the command line.
As a library
composer require rucd/webshell-detector
require_once "vendor/autoload.php";
use RUCD\WebshellDetector\Detector;
$detector = new Detector();
echo $detector->analyzeFile("strange_file.php");
From the command line
composer global require rucd/webshell-detector
This will install webshell-detector to your global vendor binaries directory (usually ~/.config/composer/vendor/bin). If this directory is part of your path, you can run it directly:
webshell-detector <filename>
Or, if the global vendor binaries directory is not part of your path:
~/.config/composer/vendor/bin/webshell-detector <filename>