Файловый менеджер - Редактировать - /home/d46091/foodlicenceonline.net/scan.php
Назад
<?php set_time_limit(0); echo "<h2>🔍 Deep Website Malware Scanner (Line-by-Line)</h2>"; echo "<style>body{font-family:monospace;background:#0d1117;color:#c9d1d9;padding:20px}li{margin:10px 0}code{background:#161b22;padding:3px 6px;border-radius:4px;color:#ffa657}</style>"; $scanPath = __DIR__; // Root folder (can change to 'public_html' or 'uploads') $suspiciousPatterns = [ 'eval', 'base64_decode', 'gzinflate', 'str_rot13', 'system', 'exec', 'shell_exec', 'passthru', 'assert', 'php://input', 'php://filter', 'preg_replace.*\/e', 'file_put_contents', 'fopen.*w', 'chmod', 'unlink', ]; $found = []; $rii = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($scanPath)); foreach ($rii as $file) { if (!$file->isFile()) continue; $ext = strtolower(pathinfo($file, PATHINFO_EXTENSION)); if (!in_array($ext, ['php', 'phtml'])) continue; $lines = file($file->getPathname()); foreach ($lines as $lineNum => $line) { foreach ($suspiciousPatterns as $pattern) { if (preg_match("/$pattern/i", $line)) { $filePath = $file->getPathname(); $matchedLine = htmlspecialchars(trim($line)); echo "<li>📁 <b>$filePath</b><br>📝 Line <b>" . ($lineNum + 1) . "</b>: <code>$matchedLine</code></li>"; break; } } } } echo "<h4>✅ Scan Complete</h4>"; ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка