testing all available scan backends and adding gif for readme

This commit is contained in:
Volodymyr Smirnov
2020-10-28 10:15:23 +02:00
parent 9afbabfb4d
commit 38193f1735
3 changed files with 57 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
using System.Text.RegularExpressions;
using MalwareMultiScan.Backends.Backends.Abstracts;
using Microsoft.Extensions.Logging;
namespace MalwareMultiScan.Backends.Backends.Implementations
{
public class McAfeeScanBackend : AbstractLocalProcessScanBackend
{
public McAfeeScanBackend(ILogger logger) : base(logger)
{
}
public override string Id { get; } = "mcafee";
protected override string BackendPath { get; } = "/usr/local/uvscan/uvscan";
protected override bool ThrowOnNonZeroExitCode { get; } = false;
protected override Regex MatchRegex { get; } =
new Regex(@".* ... Found: (?<threat>.*).", RegexOptions.Compiled | RegexOptions.Multiline);
protected override string GetBackendArguments(string path)
{
return $"--SECURE {path}";
}
}
}