diff options
| author | Julien (jvoisin) Voisin | 2015-05-20 11:08:02 +0200 |
|---|---|---|
| committer | Julien (jvoisin) Voisin | 2015-05-20 11:08:02 +0200 |
| commit | 74552233edc5eddd2f16232121070b63697e77c3 (patch) | |
| tree | 26aa6a80a0e95950cb7ed55bf8f36f0e437dfb59 | |
| parent | e90a0d1bf329b47a3335ffde0d9b2e8afc89a1d0 (diff) | |
YARA fallback
| -rwxr-xr-x | phpmalwarefinder | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/phpmalwarefinder b/phpmalwarefinder index 9fe67cf..0a85d85 100755 --- a/phpmalwarefinder +++ b/phpmalwarefinder | |||
| @@ -3,7 +3,12 @@ | |||
| 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" ] | 6 | if [ ! -f "$YARA" ] |
| 7 | then | ||
| 8 | YARA='./yara' | ||
| 9 | fi | ||
| 10 | |||
| 11 | if [ ! -f "$CONFIG_PATH" ] | ||
| 7 | then | 12 | then |
| 8 | CONFIG_PATH='./malwares.yara' | 13 | CONFIG_PATH='./malwares.yara' |
| 9 | fi | 14 | fi |
