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 "

🔍 Scanning for suspicious PHP files...

"; $results = scanFiles($directory, $suspicious_patterns); if (empty($results)) { echo "

✅ No suspicious PHP files found!

"; } else { echo "

⚠️ Suspicious files found:

"; } ?>