summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xphp-malware-finder/phpmalwarefinder4
1 files changed, 3 insertions, 1 deletions
diff --git a/php-malware-finder/phpmalwarefinder b/php-malware-finder/phpmalwarefinder
index a218a40..701564e 100755
--- a/php-malware-finder/phpmalwarefinder
+++ b/php-malware-finder/phpmalwarefinder
@@ -205,8 +205,10 @@ OPTS="${OPTS} -r ${CONFIG_PATH}${FORMAT}.yar"
205 205
206# Copy outpout to temporary file 206# Copy outpout to temporary file
207output=$(mktemp) 207output=$(mktemp)
208# delete trailing slash for directories to prevent double slash (issue #40)
209target=$(echo "$@" | sed s'#/$##')
208# Execute rules 210# Execute rules
209${NICE} ${NICE_OPTS} $YARA $OPTS "$@" |tee $output 211${NICE} ${NICE_OPTS} $YARA $OPTS "$target" |tee $output
210 212
211needle_in_haystack $output 213needle_in_haystack $output
212rm $output # comment this if you want to keep output 214rm $output # comment this if you want to keep output