Skip to content

Commit

Permalink
Add missing support for AV engines in Virus Report
Browse files Browse the repository at this point in the history
- f-prot-6
- f-protd-6
- f-secure-12
- esets
- esetsefs

Partialy fixes issue #1308
  • Loading branch information
endelwar committed Sep 10, 2024
1 parent dd16f40 commit 93bc895
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions mailscanner/rep_viruses.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
// Authentication checking
require __DIR__ . '/login.function.php';

// add the header information such as the logo, search, menu, ....
// Add the header information such as the logo, search, menu, ....
$filter = html_start(__('virusreport50'), 0, false, true);

// Get a list of virus scanners from MailScanner.conf
Expand All @@ -54,14 +54,15 @@
break;
case 'clamd':
$scanner[$vscanner]['name'] = 'ClamD';
// ORIG#$scanner[$vscanner]['regexp'] = "/(?P<file>.+) contains (?P<virus>\S+)/";
$scanner[$vscanner]['regexp'] = "/(?P<file>.+) was infected: (?P<virus>\S+)/";
break;
case 'clamavmodule':
$scanner[$vscanner]['name'] = 'Clam AV Module';
$scanner[$vscanner]['regexp'] = "/(?P<file>.+) was infected: (?P<virus>\S+)/";
break;
case 'f-prot':
case 'f-prot-6':
case 'f-protd-6':
$scanner[$vscanner]['name'] = 'F-Prot';
$scanner[$vscanner]['regexp'] = "/(?P<file>.+) Infection: (?P<virus>\S+)/";
break;
Expand All @@ -71,6 +72,7 @@
$scanner[$vscanner]['regexp'] = "/(?P<file>.+) Found the (?P<virus>\S+) (trojan|virus) !!!/";
break;
case 'f-secure':
case 'f-secure-12':
$scanner[$vscanner]['name'] = 'F-Secure';
$scanner[$vscanner]['regexp'] = "/(?P<file>.+) Infected: (?P<virus>\S+)/";
break;
Expand Down Expand Up @@ -110,6 +112,11 @@
$scanner[$vscanner]['name'] = 'Avast';
$scanner[$vscanner]['regexp'] = '/Avast: found (?P<virus>.*) in (?P<file>.*)/';
break;
case 'esets':
case 'esetsefs':
$scanner[$vscanner]['name'] = 'ESET';
$scanner[$vscanner]['regexp'] = '/Esets: found (?P<virus>\S+) in (?P<file>\S+)/';
break;
}
}

Expand Down

0 comments on commit 93bc895

Please sign in to comment.