12
返回列表 发新帖
楼主: CrackToAFu
收起左侧

[求助] BitDefender(比特梵德)有没有命令行扫描?有?又是怎么用?

[复制链接]
烟花雨
头像被屏蔽
发表于 2013-12-20 18:04:17 | 显示全部楼层
CrackToAFu 发表于 2013-12-20 15:15
扫描日志呢

有日志(XML格式保存)
烟花雨
头像被屏蔽
发表于 2013-12-20 18:06:56 | 显示全部楼层
本帖最后由 烟花雨 于 2013-12-20 18:08 编辑
CrackToAFu 发表于 2013-12-20 15:14
不是开启,就是扫描。就类似诺顿:https://support.norton.com/sp/zh ... t/solutions/v827835 ...


参考http://forum.bitdefender.com/index.php?showtopic=34558
或者
  1. package File::VirusScan::Engine::Command::BitDefender::BDC;
  2. use strict;
  3. use warnings;
  4. use Carp;

  5. use File::VirusScan::Engine::Command;
  6. use vars qw( [url=home.php?mod=space&uid=369280]@isa[/url] );
  7. @ISA = qw( File::VirusScan::Engine::Command );

  8. use Cwd 'abs_path';

  9. use File::VirusScan::Result;

  10. sub default_arguments
  11. {
  12.         return [qw( --mail --arc)];
  13. }

  14. sub scan
  15. {
  16.         my ($self, $path) = @_;

  17.         if(abs_path($path) ne $path) {
  18.                 return File::VirusScan::Result->error("Path $path is not absolute");
  19.         }

  20.         my ($exitcode, $scan_response) = eval { $self->_run_commandline_scanner(join(' ', $self->{command}, @{ $self->{args} }, $path, '2>&1')); };

  21.         if($@) {
  22.                 return File::VirusScan::Result->error($@);
  23.         }

  24.         if($exitcode == 0) {
  25.                 return File::VirusScan::Result->clean();
  26.         }

  27.         if($exitcode == 1) {
  28.                 my ($virus_name) = $scan_response =~ m/(?:suspected|infected)\: (\S+)/;

  29.                 if(!$virus_name) {
  30.                         $virus_name = 'unknown-bdc-virus';
  31.                 }
  32.                 return File::VirusScan::Result->virus($virus_name);
  33.         }

  34.         return File::VirusScan::Result->error("Unknown return code from bitdefender: $exitcode");
  35. }

  36. 1;
  37. __END__

  38. =head1 NAME

  39. File::VirusScan::Engine::Command::BitDefender::BDC - File::VirusScan backend for scanning with Bitdefender BDC

  40. =head1 SYNOPSIS

  41.     use File::VirusScan;
  42.     my $s = File::VirusScan->new({
  43.         engines => {
  44.                 '-Command::BitDefender::BDC' => {
  45.                         command => '/path/to/bdc',
  46.                 },
  47.                 ...
  48.         },
  49.         ...
  50. }

  51. =head1 DESCRIPTION

  52. File::VirusScan backend for scanning using the Bitdefender command-line scanner.

  53. File::VirusScan::Engine::Command::BitDefender::BDC inherits from, and follows the
  54. conventions of, File::VirusScan::Engine::Command.  See the documentation of
  55. that module for more information.

  56. =head1 CLASS METHODS

  57. =head2 new ( $conf )

  58. Creates a new scanner object.  B<$conf> is a hashref containing:

  59. =over 4

  60. =item command

  61. Fully-qualified path to the 'bdc' binary.

  62. =back

  63. =head1 INSTANCE METHODS

  64. =head2 scan ( $pathname )

  65. Scan the path provided using the command provided to the constructor.
  66. Returns an File::VirusScan::Result object.

  67. =head1 DEPENDENCIES

  68. L<Cwd>, L<File::VirusScan::Result>,

  69. =head1 SEE ALSO

  70. L<http://www.bitdefender.com/>

  71. =head1 AUTHOR

  72. David Skoll (dfs@roaringpenguin.com)

  73. Dave O'Neill (dmo@roaringpenguin.com)

  74. =head1 LICENCE AND COPYRIGHT

  75. Copyright (c) 2007 Roaring Penguin Software, Inc.

  76. This program is free software; you can redistribute it and/or modify it
  77. under the terms of the GNU General Public License, version 2, or
  78. (at your option) any later version.
复制代码
andylau
发表于 2013-12-25 09:50:14 | 显示全部楼层
CrackToAFu 发表于 2013-12-20 15:14
不是开启,就是扫描。就类似诺顿:https://support.norton.com/sp/zh/cn/home/current/solutions/v827835 ...

这Norton AntiVirus Online东西 那里有下载?

NORTON官网好像找不到下载呢
您需要登录后才可以回帖 登录 | 快速注册

本版积分规则

手机版|杀毒软件|软件论坛| 卡饭论坛

Copyright © KaFan  KaFan.cn All Rights Reserved.

Powered by Discuz! X3.4( 沪ICP备2020031077号-2 ) GMT+8, 2024-12-24 09:40 , Processed in 0.090452 second(s), 13 queries .

卡饭网所发布的一切软件、样本、工具、文章等仅限用于学习和研究,不得将上述内容用于商业或者其他非法用途,否则产生的一切后果自负,本站信息来自网络,版权争议问题与本站无关,您必须在下载后的24小时之内从您的电脑中彻底删除上述信息,如有问题请通过邮件与我们联系。

快速回复 客服 返回顶部 返回列表