New ignore argument to exclude files and folders with glob style matching

This commit is contained in:
Gabor Gyorvari
2017-01-11 19:10:59 +01:00
parent b522a23a74
commit acb58f1c2e
2 changed files with 65 additions and 15 deletions

View File

@@ -9,15 +9,18 @@ How to use?
```
$ php ./scan.php -h
Usage scan.php -d <directory> [-e=.php] [--hide-ok] [--hide-whitelist]
-d Directory for searching
-e=.php Extension
--hide-ok Hide OK aka not infected messages
--hide-whitelist Hide whitelisted messages
--extra-check Adds GoogleBot and htaccess to Scan List
--follow-symlink Follow symlinked directories
Usage scan.php -d <directory> [-i=<directory|file>] [-e=.php] [--hide-ok] [--hide-whitelist]
-d Directory for searching
-e=.php Extension
-i=<directory|file> Directory of file to igonre
--hide-ok Hide OK aka not infected messages
--hide-whitelist Hide whitelisted messages
--extra-check Adds GoogleBot and htaccess to Scan List
--follow-symlink Follow symlinked directories
```
Ignore argument could be used multiple times and accept glob style matching ex.: "cache*", "??-cache.php" or "/cache" etc.
Whitelisting
------------