七、GUI
基于GTK+ &Perl: ClamTK
基于KDE: Klamav
八、自动化处理(定时)
#crontab –e //加入下面两行
0 3 * * * root /usr/bin/freshclam --quiet -l/var/log/clamav/freshclam.log #每天3点升级病毒库
0 0 * * * clamscan –r --remove/location_of_files_or_folders # 扫描文件或文件夹,发现问题自动删除
下面给出我们线上服务器被攻击后检测出的结果:
[root@test2 ~]# freshclam
ClamAV update process started at Fri Aug 16 17:32:54 2013
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.97.7 Recommended version: 0.97.8
DON'T PANIC! Read http://www.clamav.net/support/faq
main.cvd is up to date (version: 54, sigs: 1044387, f-level: 60, builder: sven)
Downloading daily-17687.cdiff [100%]
Downloading daily-17688.cdiff [100%]
Downloading daily-17689.cdiff [100%]
daily.cld updated (version: 17689, sigs: 1611932, f-level: 63, builder: guitar)
bytecode.cld is up to date (version: 221, sigs: 42, f-level: 63, builder: dgoddard)
Database updated (2656361 signatures) from db.cn.clamav.net (IP: 202.118.1.40)
Clamd successfully notified about the update.
[root@test2 xxx]# ll
总用量 10224
-rw-r--r-- 1 root root 10414080 4月 27 21:49 ftp.tar
-rw-r--r-- 1 root root 51200 4月 28 09:58 h.tar
[root@test2 xxx]# clamscan ftp.tar
LibClamAV Warning: **************************************************
LibClamAV Warning: *** The virus database is older than 7 days! ***
LibClamAV Warning: *** Please update it as soon as possible. ***
LibClamAV Warning: **************************************************
ftp.tar: Trojan.Linux.RST.b FOUND
----------- SCAN SUMMARY -----------
Known viruses: 1258735
Engine version: 0.97.7
Scanned directories: 0
Scanned files: 1
Infected files: 1
Data scanned: 0.01 MB
Data read: 9.93 MB (ratio 0.00:1)
Time: 2.153 sec (0 m 2 s)
[root@test2 xxx]# clamscan h.tar
LibClamAV Warning: **************************************************
LibClamAV Warning: *** The virus database is older than 7 days! ***
LibClamAV Warning: *** Please update it as soon as possible. ***
LibClamAV Warning: **************************************************
h.tar: Trojan.Tsunami.B FOUND
----------- SCAN SUMMARY -----------
Known viruses: 1258735
Engine version: 0.97.7
Scanned directories: 0
Scanned files: 1
Infected files: 1
Data scanned: 0.04 MB
Data read: 0.05 MB (ratio 0.75:1)
Time: 2.113 sec (0 m 2 s)
