From c066a4fd993ace9c279ce95d7f60645f5c4a505a Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 30 Jun 2015 14:59:47 +0200 Subject: Use find to reduce the number of candidates in script.sh --- script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script.sh') diff --git a/script.sh b/script.sh index 95c2a9a..ce01467 100755 --- a/script.sh +++ b/script.sh @@ -5,6 +5,6 @@ mkdir -p "$MOUNT_PATH" while read name do sudo mount -t ext4 -oloop,ro,noload "$name" "$MOUNT_PATH" - ./yara -r malwares.yara -f -s "$MOUNT_PATH" + find -P -O3 -iname '*.ph*' -type f -size -5M -print0 -exec ./yara -r malwares.yara -f -s {}\; sudo umount "$MOUNT_PATH" || exit 1 done -- cgit v1.3