diff options
| author | Julien (jvoisin) Voisin | 2016-02-24 17:37:15 +0100 |
|---|---|---|
| committer | Julien (jvoisin) Voisin | 2016-02-24 17:37:15 +0100 |
| commit | 570739e4bf143323928537b78045b2867ec41d3a (patch) | |
| tree | 7bbd20ecf3af807feb4c2958633142be85bfc2a3 | |
| parent | 24b7c95bea7a1c37229e38aeb798b65b593bd32b (diff) | |
Add a cool check for yara
| -rwxr-xr-x | php-malware-finder/phpmalwarefinder | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/php-malware-finder/phpmalwarefinder b/php-malware-finder/phpmalwarefinder index 492a476..215c8ef 100755 --- a/php-malware-finder/phpmalwarefinder +++ b/php-malware-finder/phpmalwarefinder | |||
| @@ -9,6 +9,11 @@ NICE_BIN=$(type -P nice) | |||
| 9 | if [ ! -x "$YARA" ] | 9 | if [ ! -x "$YARA" ] |
| 10 | then | 10 | then |
| 11 | YARA='./yara' | 11 | YARA='./yara' |
| 12 | if [ ! -x "$YARA" ] | ||
| 13 | then | ||
| 14 | echo "Unable to find yara in your PATH, and in the current directory." | ||
| 15 | exit 0 | ||
| 16 | fi | ||
| 12 | fi | 17 | fi |
| 13 | 18 | ||
| 14 | if [ ! -f "$CONFIG_PATH" ] | 19 | if [ ! -f "$CONFIG_PATH" ] |
