diff options
| author | jvoisin | 2015-06-30 14:59:47 +0200 |
|---|---|---|
| committer | jvoisin | 2015-06-30 14:59:47 +0200 |
| commit | c066a4fd993ace9c279ce95d7f60645f5c4a505a (patch) | |
| tree | 339ad410360435e8674138104cbffd7bc9086a37 | |
| parent | d459125edca99f84b8eda87e6e064c81ec6d53f7 (diff) | |
Use find to reduce the number of candidates in script.sh
| -rwxr-xr-x | script.sh | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -5,6 +5,6 @@ mkdir -p "$MOUNT_PATH" | |||
| 5 | while read name | 5 | while read name |
| 6 | do | 6 | do |
| 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 |
| 10 | done | 10 | done |
