<?php @ini_set('display_errors', 1); echo 'Start' . PHP_EOL; $report_file = __DIR__ . '/report.json'; if (!file_exists($report_file)) { echo 'Report not found' . PHP_EOL; return; } $report_json = file_get_contents($report_file); if (!$report = json_decode($report_json, true)) { echo 'Can not decode JSON' . PHP_EOL; return; } if (isset($report['php_malware'])) { foreach ($report['php_malware'] as $php_malware) { echo $php_malware['fn'] . PHP_EOL; //unlink($php_malware['fn']); } } else { echo 'Php Malware not found' . PHP_EOL; } if (isset($report['js_malware'])) { foreach ($report['js_malware'] as $js_malware) { echo $js_malware['fn'] . PHP_EOL; //unlink($js_malware['fn']); } } else { echo 'JS Malware not found' . PHP_EOL; }
Удалить все вирусы, найденные ai-bolit'ом
25 апреля 2019, 20:09
0 комментариев