summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien (jvoisin) Voisin2016-02-24 17:37:15 +0100
committerJulien (jvoisin) Voisin2016-02-24 17:37:15 +0100
commit570739e4bf143323928537b78045b2867ec41d3a (patch)
tree7bbd20ecf3af807feb4c2958633142be85bfc2a3
parent24b7c95bea7a1c37229e38aeb798b65b593bd32b (diff)
Add a cool check for yara
-rwxr-xr-xphp-malware-finder/phpmalwarefinder5
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)
9if [ ! -x "$YARA" ] 9if [ ! -x "$YARA" ]
10then 10then
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
12fi 17fi
13 18
14if [ ! -f "$CONFIG_PATH" ] 19if [ ! -f "$CONFIG_PATH" ]