swift 杀毒 和ClamAV集成
2014-01-20 09:51
375 查看
This article will guide you through the installation of ClamAV on CentOS. Once installed, we will also configure a daily scan on our CentOS server.
ClamAV is an open source (GPL) antivirus engine designed for detecting Trojans, viruses, malware and other malicious threats on Linux. In this article, we will only be configuring ClamAV to run scheduled/on-demand scans; not resident scans.
Before we can do proceed, you must ensure that you have the EPEL yum repository enabled. To do this,click
here.
2. Install required packages
3. Start the clamd service and set it to auto-start
freshclam >> /tmp/clamavfresh.log
5.下载python库 clamd-1.0.1.zip解压,进入目录,执行$ ./setup.py install
6.进入python命令行模式.python import clamd
[/code]6.
ClamAV is an open source (GPL) antivirus engine designed for detecting Trojans, viruses, malware and other malicious threats on Linux. In this article, we will only be configuring ClamAV to run scheduled/on-demand scans; not resident scans.
A. Install ClamAV
1. Install EPEL repoBefore we can do proceed, you must ensure that you have the EPEL yum repository enabled. To do this,click
here.
CentOS 6 – 32-bit
1 | rpm -Uvh http://mirror.overthewire.com.au/pub/epel/6/i386/epel-release-6-8.noarch.rpm[/code] |
CentOS 6 – 64-bit
view sourceprint?1 | rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm[/code] |
yum install clamav clamd clamav-devel
3. Start the clamd service and set it to auto-start
/etc/init.d/clamd on chkconfig clamd on /etc/init.d/clamd start 4.更新病毒库,并设置为定时任务. [code] freshclam -v #chown search:search /etc/clamav.conf #chown -R searcha:search /var/lock/subsys/clamd#chown -R searcha:search /var/run/clamav[code]#chown -R searcha:search /var/clamav
freshclam >> /tmp/clamavfresh.log
5.下载python库 clamd-1.0.1.zip解压,进入目录,执行$ ./setup.py install
6.进入python命令行模式.python import clamd
from six import BytesIO as bi
cd = clamd.ClamdNetworkSocket('127.0.0.1',3310)cd.instream(bi(clamd.EICAR))
[/code]6.
from six import BytesIO as bi#
相关文章推荐
- ClamAv开源杀毒引擎详解
- Linux构建ClamAV 杀毒
- Protobuf-swift 集成小结 韩俊强的博客
- Swift - 集成app启动页广告,切换rootViewController,支持LaunchImage和LaunchScreen.storyboard,支持GIF图片显示,支持视图过渡动画
- Swift版仿封装的个人界面,一分钟集成不是梦!
- 为sendmail添加杀毒插件clamav
- 2017最新在swift3.0下集成iOS内购全流程(附代码)
- Swift 3D 与 Microsoft Silverlight 实现集成
- TurboMail邮件系统内置ClamAV杀毒引擎紧急故障修复指引
- 使用 Swift 在 iOS 10 中集成 Siri —— SiriKit 教程(Part 1)
- Clamav杀毒软件源码分析笔记[九]
- swift里采用cocoapods的方式集成高德地图遇到的问题
- CLAMAV 杀毒软件安装及使用配置
- postfix邮件杀毒模块clamav进程异常死掉产生的报警信息
- centos clamav杀毒软件安装配置及查杀,没想到linux下病毒比windows还多!
- iOS中Swift指触即开集成Touch ID指纹识别功能的方法
- CentOS下杀毒工具ClamAV安装
- ClamAv开源杀毒引擎详解