Jeremy

PLM/PDM/BPM技术交流

  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  6 随笔 :: 0 文章 :: 3 评论 :: 0 Trackbacks

赛门铁克防病毒扫描引擎是一款企业级的杀毒引擎,并可以和各种环境进行集成,目前项目中需要在J2EE的环境中使用这个技术,故公布出实现方法供人参考。

为此目的专门开发了一个jar包用于和Scan Server 交互,关于这款产品的试用版下载:http://www.symantec.com/enterprise/products/trialware.jsp?pcid=1008&pvid=836_1

我将在文件下载中提供这个jar包的下载,名字为 virus-scan-connect.zip
地址为  http://www.blogjava.net/Files/bao1018/virus-scan-connect.zip

,以下的是最简单的实现步骤

0 Install virus scan server

SSE-InstallConfig-20061220

<1>, Install the SSE V51:

0, Download trial version software and license.

http://symantec.com/enterprise/products/trialware.jsp?pcid=1008&pvid=836_1

1, Install JDK 5;
2, Install ScanEngine.exe, setup the Admin port and password; 
3, Install license file

(1) By web console, https://ip:8004/; System-->License-->Install.

[Note, only with https is available.]

(2) Copy license file to C:\Program Files\Common Files\Symantec Shared\Licenses;

 4, Working with ICAP;

1 Virus Scan in JSP

1 Import the Jar package- virusscan-0.1.jar

2 A simple implement practice is

1 Sample Invode Code: 
 2 public static void main(String[] args) {
 3 //icap://10.225.69.89:1344/avscan 是scan server的url
 4 VirusScanManager vsm=new VirusScanManager("icap://10.225.69.89:1344/avscan");
 5 
 6                        
 7 
 8  String testFile="./test/eicar.com.txt";
 9 InputStream in=null;                
10 
11                         try {
12                        //Eicar是测试病毒代码
13                                     //in=new ByteArrayInputStream(Eicar.getEicar());
14                                    in=new FileInputStream(testFile);
15                         } catch (Exception e) {                                  e.printStackTrace();
16 
17                         }                     vsm.processScanVirus("eicarTestFile.txt""plain/text", in);
18 
19 }
20 


           



posted on 2007-03-09 14:02 阅读(1713) 评论(3)  编辑  收藏

评论

# re: 在J2EE 环境中集成赛门铁克防病毒扫描引擎 2007-03-10 00:55 Christ Chang
强烈鄙视搂主用日文做博客标题!!!!!!!!!!!!  回复  更多评论
  

# re: 在J2EE 环境中集成赛门铁克防病毒扫描引擎 2007-03-12 08:22 JAVAEST
你是不是来看技术的,@Christ Chang,有意思嘛 ?那中国学日文的是不是都要枪毙啊.看技术行嘛!
  回复  更多评论
  

# re: 在J2EE 环境中集成赛门铁克防病毒扫描引擎 2007-03-24 17:09 orse
写代码,赚小日的钱.叫小日的AV鸡.  回复  更多评论
  


只有注册用户登录后才能发表评论。


网站导航: