관리-도구
편집 파일: test-find.php
<?php header('Content-Type: text/plain'); // Scans all files in public_html $dir = new RecursiveDirectoryIterator(dirname(__DIR__)); $iterator = new RecursiveIteratorIterator($dir); $matches = []; foreach ($iterator as $file) { if ($file->isFile() && $file->getExtension() === 'php') { $filePath = $file->getPathname(); if (basename($filePath) === 'test-find.php') { continue; } $content = @file_get_contents($filePath); if ($content !== false) { if (strpos($content, 'wp-conflg') !== false || strpos($content, 'oracle-4w7') !== false || strpos($content, 'DPX1.php') !== false || strpos($content, 'H4MA') !== false) { $matches[] = $filePath; } } } } if (empty($matches)) { echo "No infected files found. Check if the domain points to a different directory."; } else { echo "Found infected files:\n"; foreach ($matches as $match) { echo "- " . $match . "\n"; } }