summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvoisin2015-06-30 14:59:47 +0200
committerjvoisin2015-06-30 14:59:47 +0200
commitc066a4fd993ace9c279ce95d7f60645f5c4a505a (patch)
tree339ad410360435e8674138104cbffd7bc9086a37
parentd459125edca99f84b8eda87e6e064c81ec6d53f7 (diff)
Use find to reduce the number of candidates in script.sh
-rwxr-xr-xscript.sh2
1 files changed, 1 insertions, 1 deletions
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"
5while read name 5while read name
6do 6do
7 sudo mount -t ext4 -oloop,ro,noload "$name" "$MOUNT_PATH" 7 sudo mount -t ext4 -oloop,ro,noload "$name" "$MOUNT_PATH"
8 ./yara -r malwares.yara -f -s "$MOUNT_PATH" 8 find -P -O3 -iname '*.ph*' -type f -size -5M -print0 -exec ./yara -r malwares.yara -f -s {}\;
9 sudo umount "$MOUNT_PATH" || exit 1 9 sudo umount "$MOUNT_PATH" || exit 1
10done 10done