diff options
| -rwxr-xr-x | phpmalwarefinder | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/phpmalwarefinder b/phpmalwarefinder index b050a7e..9fe67cf 100755 --- a/phpmalwarefinder +++ b/phpmalwarefinder | |||
| @@ -3,6 +3,11 @@ | |||
| 3 | YARA=$(which yara) | 3 | YARA=$(which yara) |
| 4 | CONFIG_PATH='/etc/phpmalwarefinder/malwares.yara' | 4 | CONFIG_PATH='/etc/phpmalwarefinder/malwares.yara' |
| 5 | 5 | ||
| 6 | if [ ! -a "$CONFIG_PATH" ] | ||
| 7 | then | ||
| 8 | CONFIG_PATH='./malwares.yara' | ||
| 9 | fi | ||
| 10 | |||
| 6 | show_help() { | 11 | show_help() { |
| 7 | cat << EOF | 12 | cat << EOF |
| 8 | Usage ${0##*/} [-cfhw] <file|folder> ... | 13 | Usage ${0##*/} [-cfhw] <file|folder> ... |
