summaryrefslogtreecommitdiff
path: root/phpmalwarefinder
diff options
context:
space:
mode:
authorJulien Voisin2015-03-24 11:49:50 +0100
committerJulien Voisin2015-03-24 11:49:50 +0100
commit9e6f1ced23176a5b4b424fa58ba58b04e975263f (patch)
treed6fab0ab652c8e0127b254044742c7617ce3992f /phpmalwarefinder
parentd3e3e2e8cd0e79ad388c55650d6ffb459c4f1182 (diff)
Add packaging stuff dor debian!
Diffstat (limited to 'phpmalwarefinder')
-rwxr-xr-xphpmalwarefinder10
1 files changed, 8 insertions, 2 deletions
diff --git a/phpmalwarefinder b/phpmalwarefinder
index 66cdb92..80cf7f0 100755
--- a/phpmalwarefinder
+++ b/phpmalwarefinder
@@ -5,7 +5,7 @@ CONFIG_PATH='/etc/phpmalwarefinder/malwares.yara'
5 5
6show_help() { 6show_help() {
7 cat << EOF 7 cat << EOF
8Usage ${0##*/} [-dhw] 8Usage ${0##*/} [-cfhw]
9 -c Optional path to a configuration file 9 -c Optional path to a configuration file
10 -f Fast mode 10 -f Fast mode
11 -h Show this help message 11 -h Show this help message
@@ -49,6 +49,12 @@ then
49 exit 1 49 exit 1
50fi 50fi
51 51
52if [ -z $@ ]
53then
54 show_help
55 exit 1
56fi
57
52OPTS="${OPTS} -r ${CONFIG_PATH}" 58OPTS="${OPTS} -r ${CONFIG_PATH}"
53 59
54$YARA $OPTS $@ \ No newline at end of file 60$YARA $OPTS $@