mirror of
https://github.com/volodymyrsmirnov/MalwareMultiScan.git
synced 2025-08-25 05:52:23 +00:00
speed-up clamav scan by using clamav-daemon
This commit is contained in:
@@ -12,7 +12,7 @@ namespace MalwareMultiScan.Backends.Backends.Implementations
|
||||
|
||||
public override string Id { get; } = "clamav";
|
||||
|
||||
protected override string BackendPath { get; } = "/usr/bin/clamscan";
|
||||
protected override string BackendPath { get; } = "/usr/bin/clamdscan";
|
||||
|
||||
protected override Regex MatchRegex { get; } =
|
||||
new Regex(@"(\S+): (?<threat>[\S]+) FOUND", RegexOptions.Compiled | RegexOptions.Multiline);
|
||||
@@ -21,7 +21,7 @@ namespace MalwareMultiScan.Backends.Backends.Implementations
|
||||
|
||||
protected override string GetBackendArguments(string path)
|
||||
{
|
||||
return $"--no-summary {path}";
|
||||
return $"-m --fdpass --no-summary {path}";
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user