basic structure and initial scan request service

This commit is contained in:
Volodymyr Smirnov
2020-10-23 11:11:19 +03:00
parent 46d696cdb1
commit 96695664e0
23 changed files with 242 additions and 168 deletions

View File

@@ -11,16 +11,16 @@ namespace MalwareMultiScan.Backends.Backends.Implementations
public ComodoScanBackend(ILogger logger) : base(logger)
{
}
public override string Id { get; } = "comodo";
public override DateTime DatabaseLastUpdate =>
File.GetLastWriteTime("/opt/COMODO/scanners/bases.cav");
protected override string BackendPath { get; } = "/opt/COMODO/cmdscan";
protected override Regex MatchRegex { get; } =
new Regex(@".* ---> Found Virus, Malware Name is (?<threat>.*)",
new Regex(@".* ---> Found Virus, Malware Name is (?<threat>.*)",
RegexOptions.Compiled | RegexOptions.Multiline);
protected override string GetBackendArguments(string path)