mirror of
https://github.com/volodymyrsmirnov/MalwareMultiScan.git
synced 2025-08-24 05:22:22 +00:00
26 lines
815 B
C#
26 lines
815 B
C#
using System.Text.RegularExpressions;
|
|
using MalwareMultiScan.Backends.Backends.Abstracts;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace MalwareMultiScan.Backends.Backends.Implementations
|
|
{
|
|
public class ComodoScanBackend : AbstractLocalProcessScanBackend
|
|
{
|
|
public ComodoScanBackend(ILogger logger) : base(logger)
|
|
{
|
|
}
|
|
|
|
public override string Id { get; } = "comodo";
|
|
|
|
protected override string BackendPath { get; } = "/opt/COMODO/cmdscan";
|
|
|
|
protected override Regex MatchRegex { get; } =
|
|
new Regex(@".* ---> Found Virus, Malware Name is (?<threat>.*)",
|
|
RegexOptions.Compiled | RegexOptions.Multiline);
|
|
|
|
protected override string GetBackendArguments(string path)
|
|
{
|
|
return $"-v -s {path}";
|
|
}
|
|
}
|
|
} |