diff options
| -rwxr-xr-x | php-malware-finder/phpmalwarefinder | 26 |
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 | ||
| 8 | if [ ! -f "$YARA" ] | 8 | if [ ! -f "$YARA" ] |
| 9 | then | 9 | then |
| 10 | YARA='./yara' | 10 | YARA='./yara' |
| 11 | fi | 11 | fi |
| 12 | 12 | ||
| 13 | if [ ! -f "$CONFIG_PATH" ] | 13 | if [ ! -f "$CONFIG_PATH" ] |
| 14 | then | 14 | then |
| 15 | CONFIG_PATH='./malwares.yara' | 15 | CONFIG_PATH='./malwares.yara' |
| 16 | fi | 16 | fi |
| 17 | 17 | ||
| 18 | if [ -f "${IONICE_BIN}" ] | 18 | if [ -f "${IONICE_BIN}" ] |
| 19 | then | 19 | then |
| 20 | NICE=${IONICE_BIN} | 20 | NICE=${IONICE_BIN} |
| 21 | NICE_OPTS="-c 3" | 21 | NICE_OPTS="-c 3" |
| 22 | else | 22 | else |
| 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 |
| 28 | fi | 28 | fi |
| 29 | 29 | ||
| 30 | show_help() { | 30 | show_help() { |
| @@ -75,14 +75,14 @@ fi | |||
| 75 | 75 | ||
| 76 | if [ -z $@ ] | 76 | if [ -z $@ ] |
| 77 | then | 77 | then |
| 78 | show_help | 78 | show_help |
| 79 | exit 1 | 79 | exit 1 |
| 80 | fi | 80 | fi |
| 81 | 81 | ||
| 82 | if [ ! -e ${NICE} ] | 82 | if [ ! -e ${NICE} ] |
| 83 | then | 83 | then |
| 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 |
| 86 | fi | 86 | fi |
| 87 | 87 | ||
| 88 | OPTS="${OPTS} -r ${CONFIG_PATH}" | 88 | OPTS="${OPTS} -r ${CONFIG_PATH}" |
