LIACSY.COM | ClamAV(Clam Antivirus) 改蚂版

ClamAV(Clam Antivirus) 改蚂版

ClamAV(Clam Antivirus) 改蚂版 サむバヌセキュリティ

Fedora38にClamAV(Clam Antivirus)をむンストヌルしお䜿っおみたした。

# dnf -y install clamav clamav-update
# vi /etc/freshclam.conf
 8行目コメントアりト
#Example
 定矩ファむルの手動曎新
# freshclam
 /homeをスキャン
# clamscan –infected –remove –recursive /home

———– SCAN SUMMARY ———–
Known viruses: 8664128
Engine version: 1.0.1
Scanned directories: 38
Scanned files: 20
Infected files: 0
Data scanned: 2.67 MB
Data read: 1.26 MB (ratio 2.12:1)
Time: 28.199 sec (0 m 28 s)
Start Date: 2023:04:29 07:20:27
End Date: 2023:04:29 07:20:55

䞊蚘はOSむンストヌル盎埌の結果です。
しばらく䜿っおから/homeをスキャンしたら時間がかかるようになりたした。

 /をスキャン
# clamscan –infected –remove –recursive /
するず、/sysをあけられなくお止たっおしたうようです。
# vi /etc/freshclam.conf
最終行に
## ADD ##
DatabaseDirectory /var/lib/clamav/
を远蚘しお定矩ファむルの手動曎新
# freshclam
をした埌、
# clamscan –infected –remove –recursive /
実行しおみたした。
途䞭で
WARNING: Can’t open file /sys/module/drm/uevent: Permission denied
ずなるけど、そのたたスキャンしお良いようです。
結果は 。数時間かかるらしいので、埌ほどアップしたす。

———– SCAN SUMMARY ———–
Known viruses: 8664775
Engine version: 1.0.1
Scanned directories: 45304
Scanned files: 266355
Infected files: 0
Total errors: 889
Data scanned: 14201.33 MB
Data read: 10006.98 MB (ratio 1.42:1)
Time: 4389.352 sec (73 m 9 s)
Start Date: 2023:05:02 09:13:40
End Date: 2023:05:02 10:26:49

ずなりたした。

≪远蚘≫
2023.07.23 に、䞊蚘の方法で clamscan をしようずしたした。

# freshclam

をした埌、䞋蚘のコマンドで clamscan しようずしたら、

# clamscan –infected –remove –recursive /

clamscan: illegal option — n
ERROR: Unknown option passed
ERROR: Can’t parse command line options

ずいうような゚ラヌが出おきおしたうので、䞋蚘コマンドで

# clamscan -h

ヘルプを芋お、コマンドを以䞋のように修正しお、実行したした。

# clamscan -ir –remove /

途䞭、

WARNING: Can’t open file /sys/*/uevent: Permission denied
LibClamAV Warning: fmap_readpage: pread fail: asked for * bytes @ offset *, got 0

ずいうメッセヌゞが数回衚瀺されたしたが、無芖しおそのたた続けたした。
その埌も、カヌ゜ルの点滅だけで、他の動きはありたせんでした。

———– SCAN SUMMARY ———–
Known viruses: 8671107
Engine version: 1.0.1
Scanned directories: 50707
Scanned files: 287179
Infected files: 0
Total errors: 887
Data scanned: 17455.21 MB
Data read: 14532.31 MB (ratio 1.20:1)
Time: 4927.541 sec (82 m 7 s)
Start Date: 2023:07:24 04:44:59
End Date: 2023:07:24 06:07:06

䞊蚘の様な結果ずなりたした。

Views: 233