Clam AntiVirus インストール2023/07/07 |
アンチウィルスソフトウェア Clam AntiVirus をインストールします。
|
|
[1] | Clamav をインストールします。 |
root@dlp:~#
apt -y install clamav
root@dlp:~#
sed -i -e "s/^NotifyClamd/#NotifyClamd/g" /etc/clamav/freshclam.conf root@dlp:~# systemctl stop clamav-freshclam
# パターンファイル手動更新 root@dlp:~# freshclam Fri Jul 7 01:03:49 2023 --> ClamAV update process started at Fri Jul 7 01:03:49 2023 Fri Jul 7 01:03:49 2023 --> daily.cvd database is up-to-date (version: 26961, sigs: 2038526, f-level: 90, builder: raynman) Fri Jul 7 01:03:49 2023 --> main.cvd database is up-to-date (version: 62, sigs: 6647427, f-level: 90, builder: sigmgr) Fri Jul 7 01:03:49 2023 --> bytecode.cvd database is up-to-date (version: 334, sigs: 91, f-level: 90, builder: anvilleg)root@dlp:~# systemctl start clamav-freshclam
|
[2] | 動作確認としてスキャンを実行します。 |
root@dlp:~# clamscan --infected --remove --recursive /home ----------- SCAN SUMMARY ----------- Known viruses: 8670422 Engine version: 1.0.1 Scanned directories: 23 Scanned files: 40 Infected files: 0 Data scanned: 0.00 MB Data read: 0.00 MB (ratio 0.00:1) Time: 12.876 sec (0 m 12 s) Start Date: 2023:07:07 01:04:27 End Date: 2023:07:07 01:04:40 # お試し無害ウィルスをダウンロード
root@dlp:~#
root@dlp:~# wget http://www.eicar.org/download/eicar.com clamscan --infected --remove --recursive ./
/root/eicar.com: Win.Test.EICAR_HDB-1 FOUND
/root/eicar.com: Removed. # 削除された
----------- SCAN SUMMARY -----------
Known viruses: 8670422
Engine version: 1.0.1
Scanned directories: 2
Scanned files: 8
Infected files: 1
Data scanned: 0.02 MB
Data read: 0.01 MB (ratio 1.67:1)
Time: 12.567 sec (0 m 12 s)
Start Date: 2023:07:07 01:05:10
End Date: 2023:07:07 01:05:23
|
Sponsored Link |
|