clamav

更新 [#cae30fef]

 # freshclam

オプション [#m6a8384c]

 --recursive  ディレクトリを再帰的に
 --infected 脅威のあるファイルのみ表示
 --remove 脅威のあるファイルを削除

検索(対象ディレクトリにて) [#daa09117]

 # clamscan --infected --recursive .

テスト [#b7f6d839]

 # wget http://www.eicar.org/download/eicar.com.txt
 # clamscan --infected --recursive .
 /home/hogehoge/eicar.com.txt: Eicar-Test-Signature FOUND
 
 ----------- SCAN SUMMARY -----------
 Known viruses: 4061832
 Engine version: 0.98.7
 Scanned directories: 2
 Scanned files: 12
 Infected files: 1
 Data scanned: 3.21 MB
 Data read: 1.59 MB (ratio 2.01:1)
 Time: 13.128 sec (0 m 13 s)

削除テスト [#pb12d6d9]

 # clamscan --infected --recursive --remove .
 ./eicar.com: Eicar-Test-Signature FOUND
 ./eicar.com: Removed.
 
 ----------- SCAN SUMMARY -----------
 Known viruses: 5941117
 Engine version: 0.99.2
 Scanned directories: 4
 Scanned files: 10
 Infected files: 1
 Data scanned: 0.02 MB
 Data read: 0.01 MB (ratio 2.00:1)
 Time: 10.456 sec (0 m 10 s)