Skip to content
Snippets Groups Projects
Commit 9f806f34 authored by Tibo's avatar Tibo
Browse files

Corrected require autoload in the binary + updated readme

parent 1d313fa8
No related branches found
No related tags found
No related merge requests found
......@@ -25,14 +25,14 @@ echo $detector->analyzeFile("strange_file.php");
```composer global require rucd/webshell-detector```
This will install webshell-detector to your global vendor binaries directory
(usually **~/.composer/vendor/bin**). If this directory is part of your path,
(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:
```~/.composer/vendor/bin/webshell-detector <filename>```
```~/.config/composer/vendor/bin/webshell-detector <filename>```
......
#!/usr/bin/env php
<?php
require_once __DIR__ . "/../vendor/autoload.php";
## To run the binary after you clone the repository
include_once __DIR__ . "/../vendor/autoload.php";
## To run the binary installed with composer
include_once __DIR__ . "/../../../vendor/autoload.php";
use RUCD\WebshellDetector\Detector;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment