Generic virus scanner
Pascal Maes
pascal.maes at uclouvain.be
Tue May 24 06:36:13 UTC 2016
Hello,
MailScanner Version 4.85.2-3
We havre written our own generic virus scanner to check the macros included in some Office documents.
We use the "generic-wrapper" but it doesn't work as in SweepViruses.pm we found the line
3671 sub InstalledScanners {
3672
3673 my(@installed, $scannername, $nameandpath, $name, $path, $command, $result);
3674
3675 # Get list of all the names of the scanners to look up. There are a few
3676 # rogue ones!
3677 my @scannernames = keys %Scanners;
3678
3679 print STDERR "\n\n @scannernames \n\n ";
3680 foreach $scannername (@scannernames) {
3681 next unless $scannername;
3682 next if $scannername =~ /generic|none/i;
3684 $nameandpath = MailScanner::Config::ScannerCmds($scannername);
3685 ($name, $path) = split(',', $nameandpath);
3686 $command = "$name $path -IsItInstalled";
3687 print STDERR "$command gave: ";
3688 $result = system($command) >> 8;
3689 print STDERR "\"$result\"\n";
3690 push @installed, $scannername unless $result;
3691 }
So should we choose another name that "generic-wrapper" ?
Regards
--
Pascal
More information about the MailScanner
mailing list