mirror of
https://github.com/volodymyrsmirnov/MalwareMultiScan.git
synced 2025-08-24 21:42:23 +00:00
34 lines
1.0 KiB
C#
34 lines
1.0 KiB
C#
using System.Text.RegularExpressions;
|
|
using MalwareMultiScan.Backends.Backends.Abstracts;
|
|
using MalwareMultiScan.Backends.Services.Interfaces;
|
|
|
|
namespace MalwareMultiScan.Backends.Backends
|
|
{
|
|
/// <inheritdoc />
|
|
public class McAfeeScanBackend : AbstractLocalProcessScanBackend
|
|
{
|
|
/// <inheritdoc />
|
|
public McAfeeScanBackend(IProcessRunner processRunner) : base(processRunner)
|
|
{
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public override string Id { get; } = "mcafee";
|
|
|
|
/// <inheritdoc />
|
|
protected override string BackendPath { get; } = "/usr/local/uvscan/uvscan";
|
|
|
|
/// <inheritdoc />
|
|
protected override bool ThrowOnNonZeroExitCode { get; } = false;
|
|
|
|
/// <inheritdoc />
|
|
protected override Regex MatchRegex { get; } =
|
|
new Regex(@".* ... Found: (?<threat>.*).", RegexOptions.Compiled | RegexOptions.Multiline);
|
|
|
|
/// <inheritdoc />
|
|
protected override string GetBackendArguments(string path)
|
|
{
|
|
return $"--SECURE {path}";
|
|
}
|
|
}
|
|
} |