19 declare(strict_types=1);
23 public function __construct(
string $scan_command,
string $clean_command)
26 $this->type =
'antivir';
27 $this->scanZipFiles =
true;
30 public function scanFile(
string $file_path,
string $org_name =
''): string
32 $this->scanFilePath = $file_path;
33 $this->scanFileOrigName = $org_name;
36 $a_filepath = realpath($file_path);
40 $this->scanResult = implode(
"\n",
$out);
43 if (str_contains($this->scanResult,
'ALERT:')) {
44 $this->scanFileIsInfected =
true;
49 $this->scanFileIsInfected =
false;
__construct(string $scan_command, string $clean_command)
static escapeShellArg(string $a_arg)
static execQuoted(string $cmd, ?string $args=null)
static escapeShellCmd(string $a_arg)
__construct(Container $dic, ilPlugin $plugin)
scanFile(string $file_path, string $org_name='')