summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xphp-malware-finder/phpmalwarefinder26
1 files changed, 13 insertions, 13 deletions
diff --git a/php-malware-finder/phpmalwarefinder b/php-malware-finder/phpmalwarefinder
index c49a7bd..3870367 100755
--- a/php-malware-finder/phpmalwarefinder
+++ b/php-malware-finder/phpmalwarefinder
@@ -7,24 +7,24 @@ NICE_BIN=$(type -P nice)
7 7
8if [ ! -f "$YARA" ] 8if [ ! -f "$YARA" ]
9then 9then
10 YARA='./yara' 10 YARA='./yara'
11fi 11fi
12 12
13if [ ! -f "$CONFIG_PATH" ] 13if [ ! -f "$CONFIG_PATH" ]
14then 14then
15 CONFIG_PATH='./malwares.yara' 15 CONFIG_PATH='./malwares.yara'
16fi 16fi
17 17
18if [ -f "${IONICE_BIN}" ] 18if [ -f "${IONICE_BIN}" ]
19then 19then
20 NICE=${IONICE_BIN} 20 NICE=${IONICE_BIN}
21 NICE_OPTS="-c 3" 21 NICE_OPTS="-c 3"
22else 22else
23 if [ -f "${NICE_BIN}" ] 23 if [ -f "${NICE_BIN}" ]
24 then 24 then
25 NICE=${NICE_BIN} 25 NICE=${NICE_BIN}
26 NICE_OPTS="-n 20" 26 NICE_OPTS="-n 20"
27 fi 27 fi
28fi 28fi
29 29
30show_help() { 30show_help() {
@@ -75,14 +75,14 @@ fi
75 75
76if [ -z $@ ] 76if [ -z $@ ]
77then 77then
78 show_help 78 show_help
79 exit 1 79 exit 1
80fi 80fi
81 81
82if [ ! -e ${NICE} ] 82if [ ! -e ${NICE} ]
83then 83then
84 echo "No nice program available. Please install ionice or nice." 84 echo "No nice program available. Please install ionice or nice."
85 exit 1 85 exit 1
86fi 86fi
87 87
88OPTS="${OPTS} -r ${CONFIG_PATH}" 88OPTS="${OPTS} -r ${CONFIG_PATH}"