clamAV 安装与测试

一.clamAV 安装

Install ClamAV in Debian

If you want to install clamav in debian you need to add the any one of the following source list to your /etc/sources.list file

deb http://ftp2.de.debian.org/debian-volatile sarge/volatile main

or

deb http://people.debian.org/~sgran/debian sarge main
deb-src http://people.debian.org/~sgran/debian sarge main

Once you add the above souce list run the following commad

# apt-get update

#apt-get install clamav

二.更新病毒库

 /usr/bin/freshclam
ClamAV update process started at Fri Aug 25 13:02:25 2017
main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
daily.cvd is up to date (version: 23708, sigs: 1742553, f-level: 63, builder: neo)
bytecode.cvd is up to date (version: 309, sigs: 69, f-level: 63, builder: bbaker)

三.下载病毒文件

https://pan.baidu.com/share/link?shareid=70856&uk=236511442

四.扫描文件

 /usr/bin/clamscan -r /root/test/ -l /var/log/messages
/root/test/g-mortic.zip: Win.Trojan.GenVir-2 FOUND
/root/test/g-1440.zip: Win.Trojan.GenVir-2 FOUND
/root/test/g-pugsle.zip: Win.Trojan.GenVir-2 FOUND

----------- SCAN SUMMARY -----------
Known viruses: 6303174
Engine version: 0.99.2
Scanned directories: 1
Scanned files: 3
Infected files: 3
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 10.723 sec (0 m 10 s)



猜你喜欢

转载自blog.csdn.net/himire/article/details/77572020