From b1f5377f011ff1eeab9bec96261667ed566c6fbe Mon Sep 17 00:00:00 2001 From: Julien (jvoisin) Voisin Date: Thu, 31 Mar 2016 10:57:31 +0200 Subject: Update the documentation --- README.md | 11 ++++++----- php-malware-finder/phpmalwarefinder | 3 +-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 481fc36..5778d06 100644 --- a/README.md +++ b/README.md @@ -55,12 +55,13 @@ of [YARA](https://plusvic.github.io/yara/) rules. Yes, it's that simple! ``` $ ./phpmalwarefinder -h -Usage phpmalwarefinder [-cfhw] ... - -c Optional path to a configuration file - -f Fast mode - -h Show this help message +Usage phpmalwarefinder [-cfhtv] [-l (php|asp)] ... + -c Optional path to a configuration file + -f Fast mode + -h Show this help message -t Specify the number of threads to use (8 by default) - -v Verbose mode + -v Verbose mode + -l Set language ('asp', 'php') ``` Or if you prefer to use `yara`: diff --git a/php-malware-finder/phpmalwarefinder b/php-malware-finder/phpmalwarefinder index 3dda46b..501ce47 100755 --- a/php-malware-finder/phpmalwarefinder +++ b/php-malware-finder/phpmalwarefinder @@ -5,6 +5,7 @@ YARA=$(type -P yara) CONFIG_PATH='/etc/phpmalwarefinder/common.yara' IONICE_BIN=$(type -P ionice) NICE_BIN=$(type -P nice) +FORMAT="php" if [ ! -x "$YARA" ] then @@ -72,8 +73,6 @@ one_line_trick() { ;; esac - echo "Target is $FORMAT." - find "$@" -type f -iname "$EXT" -print0 | while IFS= read -r -d '' -r file; do read -r lines _ chars _ <<< "$(wc "$file")" -- cgit v1.3