mirror of
https://github.com/volodymyrsmirnov/MalwareMultiScan.git
synced 2025-08-25 22:01:16 +00:00
basic skeleton for the API and queueing
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text.RegularExpressions;
|
||||
using MalwareMultiScan.Backends.Backends.Abstracts;
|
||||
using Microsoft.Extensions.Logging;
|
||||
@@ -14,9 +12,6 @@ namespace MalwareMultiScan.Backends.Backends.Implementations
|
||||
|
||||
public override string Id { get; } = "clamav";
|
||||
|
||||
public override DateTime DatabaseLastUpdate =>
|
||||
File.GetLastWriteTime("/var/lib/clamav/daily.cvd");
|
||||
|
||||
protected override string BackendPath { get; } = "/usr/bin/clamscan";
|
||||
|
||||
protected override Regex MatchRegex { get; } =
|
||||
|
@@ -14,9 +14,6 @@ namespace MalwareMultiScan.Backends.Backends.Implementations
|
||||
|
||||
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; } =
|
||||
|
@@ -1,5 +1,3 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text.RegularExpressions;
|
||||
using MalwareMultiScan.Backends.Backends.Abstracts;
|
||||
using Microsoft.Extensions.Logging;
|
||||
@@ -14,9 +12,6 @@ namespace MalwareMultiScan.Backends.Backends.Implementations
|
||||
|
||||
public override string Id { get; } = "drweb";
|
||||
|
||||
public override DateTime DatabaseLastUpdate =>
|
||||
File.GetLastWriteTime("/var/opt/drweb.com/version/version.ini");
|
||||
|
||||
protected override string BackendPath { get; } = "/usr/bin/drweb-ctl";
|
||||
|
||||
protected override Regex MatchRegex { get; } =
|
||||
|
@@ -1,5 +1,3 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text.RegularExpressions;
|
||||
using MalwareMultiScan.Backends.Backends.Abstracts;
|
||||
using Microsoft.Extensions.Logging;
|
||||
@@ -14,9 +12,6 @@ namespace MalwareMultiScan.Backends.Backends.Implementations
|
||||
|
||||
public override string Id { get; } = "kes";
|
||||
|
||||
public override DateTime DatabaseLastUpdate =>
|
||||
File.GetLastWriteTime("/var/opt/kaspersky/kesl/common/updates/avbases/klsrl.dat");
|
||||
|
||||
protected override string BackendPath { get; } = "/bin/bash";
|
||||
|
||||
protected override Regex MatchRegex { get; } =
|
||||
|
@@ -1,5 +1,3 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text.RegularExpressions;
|
||||
using MalwareMultiScan.Backends.Backends.Abstracts;
|
||||
using Microsoft.Extensions.Logging;
|
||||
@@ -14,9 +12,6 @@ namespace MalwareMultiScan.Backends.Backends.Implementations
|
||||
|
||||
public override string Id { get; } = "mcafeee";
|
||||
|
||||
public override DateTime DatabaseLastUpdate =>
|
||||
File.GetLastWriteTime("/usr/local/uvscan/avvscan.dat");
|
||||
|
||||
protected override string BackendPath { get; } = "/usr/local/uvscan/uvscan";
|
||||
|
||||
protected override bool ThrowOnNonZeroExitCode { get; } = false;
|
||||
|
@@ -1,5 +1,3 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text.RegularExpressions;
|
||||
using MalwareMultiScan.Backends.Backends.Abstracts;
|
||||
using Microsoft.Extensions.Logging;
|
||||
@@ -14,9 +12,6 @@ namespace MalwareMultiScan.Backends.Backends.Implementations
|
||||
|
||||
public override string Id { get; } = "sophos";
|
||||
|
||||
public override DateTime DatabaseLastUpdate =>
|
||||
File.GetLastWriteTime("/opt/sophos-av/lib/sav/vdlsync.upd");
|
||||
|
||||
protected override string BackendPath { get; } = "/opt/sophos-av/bin/savscan";
|
||||
|
||||
protected override bool ThrowOnNonZeroExitCode { get; } = false;
|
||||
|
@@ -1,5 +1,3 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text.RegularExpressions;
|
||||
using MalwareMultiScan.Backends.Backends.Abstracts;
|
||||
using Microsoft.Extensions.Logging;
|
||||
@@ -14,9 +12,6 @@ namespace MalwareMultiScan.Backends.Backends.Implementations
|
||||
|
||||
public override string Id { get; } = "windows-defender";
|
||||
|
||||
public override DateTime DatabaseLastUpdate =>
|
||||
File.GetLastWriteTime("/opt/engine/mpavbase.vdm");
|
||||
|
||||
protected override string BackendPath { get; } = "/opt/mpclient";
|
||||
|
||||
protected override Regex MatchRegex { get; } =
|
||||
|
Reference in New Issue
Block a user