Файловый менеджер - Редактировать - /home/d46091/foodlicenceportal.net/scan.php
Назад
<?php // Malware Scanner with Modification Date set_time_limit(0); $directory = __DIR__; $suspicious_patterns = [ 'eval(', 'base64_decode(', 'gzinflate(', 'shell_exec(', 'passthru(', 'exec(', 'system(', 'proc_open(', 'popen(', 'curl_exec(', 'file_get_contents("http://', 'assert(', 'str_rot13(', 'chmod(', 'fopen(', 'fwrite(', ]; function scanFiles($dir, $patterns) { $rii = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir)); $found = []; foreach ($rii as $file) { if ($file->isDir() || pathinfo($file, PATHINFO_EXTENSION) !== 'php') continue; $content = file_get_contents($file->getPathname()); foreach ($patterns as $pattern) { if (stripos($content, $pattern) !== false) { $found[] = [ 'path' => $file->getPathname(), 'modified' => date("Y-m-d H:i:s", filemtime($file->getPathname())) ]; break; } } } return $found; } echo "<h2>🔍 Scanning for suspicious PHP files...</h2>"; $results = scanFiles($directory, $suspicious_patterns); if (empty($results)) { echo "<p>✅ No suspicious PHP files found!</p>"; } else { echo "<p>⚠️ Suspicious files found:</p><ul>"; foreach ($results as $file) { echo "<li style='color:red;'> <strong>File:</strong> " . htmlspecialchars($file['path']) . "<br> <strong>Last Modified:</strong> " . $file['modified'] . " </li><br>"; } echo "</ul>"; } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка