linux殺毒軟件安裝

來源:本站原創 Linux 超過1,729 views圍觀 0條評論

clamav 殺毒

RHEL/CentOS

On CentOS:

# yum install -y epel-release # yum install -y clamav

On Community Enterprise Operating System (CentOS) the clamav package requires the Extra Packages for Enterprise Linux (EPEL) repository.

On RedHat Enterprise Linux (RHEL) the EPEL release package has to be installed either manually or through RHN.

啟動

service clamd start

三、更新病毒庫

freshclam

一些常規用法舉例

1,掃描某個目錄,clamscan -r /home/oicqzone

2,將掃描結果存放到log中,clamscan -r /home/oicqzone -l /tmp/clamav.log

3,掃描過程中,只顯示有問題的文件并且發出警報聲音,clamscan -r –bell -i /home/oicqzone

4,掃描到有問題的文件,直接刪除,clamscan -r –remove /home/oicqzone,這一步要小心,最好不要這樣操作,如果刪除了系統文件就麻煩了。可能導致系統崩潰。

 

故障解決 ?UBUNTU

[email protected]:/usr/share# clamscan -r /root
LibClamAV Error: cli_loaddbdir(): No supported database files found in /var/lib/clamav
ERROR: Can’t open file or directory

———– SCAN SUMMARY ———–
Known viruses: 0
Engine version: 0.99.2
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 0.002 sec (0 m 0 s)
[email protected]:/usr/share# clamscan -r /
LibClamAV Error: cli_loaddbdir(): No supported database files found in /var/lib/clamav
ERROR: Can’t open file or directory

不能掃描
且不能更新

[email protected]:~# freshclam
ERROR: /var/log/clamav/freshclam.log is locked by another process
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
[email protected]:~#

使用如下命令選擇手動更新,并修改更新源為 cn
sudo dpkg-reconfigure clamav-freshclam

遞歸殺毒 并輸出日志

clamscan -r / -l /tmp/clam.log
Scanned directories: 33399
Scanned files: 649072
Infected files: 3
Total errors: 16874
Data scanned: 9564.13 MB
Data read: 20149.46 MB (ratio 0.47:1)
Time: 1797.790 sec (29 m 57 s)

殺毒并報警且只顯示被感染的文件

clamscan -r –bell -i / -l /tmp/clam.log

如何找到被感染的文件

grep FOUND /tmp/clam.log ?> 1.txt

/home//maven/lib/aether-impl-1.0.2.v20150114.jar: Java.Malware.Agent-6206104-0 FOUND
/home//maven/lib/plexus-interpolation-1.21.jar: Java.Malware.Agent-6205983-0 FOUND
/home//maven/lib/aether-spi-1.0.2.v20150114.jar: Java.Malware.Agent-6204790-0 FOUND

文章出自:CCIE那點事 http://www.qdxgqk.live/ 版權所有。本站文章除注明出處外,皆為作者原創文章,可自由引用,但請注明來源。 禁止全文轉載。
本文鏈接:http://www.qdxgqk.live/?p=3543轉載請注明轉自CCIE那點事
如果喜歡:點此訂閱本站
  • 相關文章
  • 為您推薦
  • 各種觀點
?
暫時還木有人評論,坐等沙發!
發表評論

您必須 [ 登錄 ] 才能發表留言!

?
?
萌宠夺宝游戏