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 /* __________________________________________________ | Obfuscated by YAK P..
Decoded Output download
<?php
/* __________________________________________________
| Obfuscated by YAK Pro - Php Obfuscator 2.0.14 |
| on 2023-12-30 11:26:59 |
| GitHub: https://github.com/pk-fr/yakpro-po |
|__________________________________________________|
*/
goto oHVeG; Z5ODT: $token_url = "https://discord.com/api/oauth2/token"; goto OHw9I; OHw9I: $data = array("client_id" => $clientId, "client_secret" => $client_secret, "grant_type" => "authorization_code", "code" => $code, "redirect_uri" => $redirectUri); goto e36B3; vMy4h: goto NBJpT; goto MRwE7; PCWRp: $context = stream_context_create($options); goto LWquL; e36B3: $options = array("http" => array("header" => "Content-Type: application/x-www-form-urlencoded
\xa", "method" => "POST", "content" => http_build_query($data))); goto PCWRp; DpulW: if (file_exists($templatePath)) { goto MSRAp; } goto n4STh; qjLdK: include $corePagePath; goto A9tox; ZzyGk: $user_url = "https://discord.com/api/users/@me"; goto GPUbS; ChZI5: $access_token = $token_data["access_token"]; goto ZzyGk; tb8rx: $user_data = json_decode($user_response, true); goto frork; o7ONs: goto yZc9n; goto J23_O; sTz7i: $corePagePath = __DIR__ . "/core/{$page}/main.php"; goto Y6xHy; oHVeG: session_start(); goto l573x; inLKv: $client_secret = $discordoauth["secret_id"]; goto Kw7jP; MRwE7: tfAEe: goto LDVFt; JNjbe: $page = isset($uriSegments[0]) && $uriSegments[0] !== '' ? $uriSegments[0] : "index"; goto Q0Pu9; WEcpp: require_once "define.php"; goto ULdi3; LDVFt: header("Location: /setup/"); goto zWNSe; rlINZ: try { goto MRVDe; xTtbN: $generatorUsernameSetting = $DEBUG["generatorusername"]; goto bAahV; jNgVK: $debugSetting = $DEBUG["debug"]; goto ElcaT; ElcaT: $developmentSetting = $DEBUG["development"]; goto xTtbN; MRVDe: global $debugSetting, $developmentSetting, $generatorUsernameSetting; goto jNgVK; bAahV: } catch (Exception $e) { echo "Exception caught: " . $e->getMessage(); } goto WEcpp; dYUZt: include $templatePath; goto o7ONs; i7Tsd: echo "404 - Page Not Found"; goto A61Mq; vTQbS: $redirectUri = $discordoauth["redirect_url"]; goto inLKv; ULdi3: $requestUri = $_SERVER["REQUEST_URI"]; goto HnCbh; tgJd5: $user_response = file_get_contents($user_url, false, $user_context); goto tb8rx; Q0Pu9: if (!isset($_GET["code"])) { goto i7_lw; } goto g65jp; frork: $_SESSION["user_data"] = $user_data; goto KNBka; Dxf9S: rGAYM: goto DpulW; CGzCC: if (!file_exists($configFile)) { goto tfAEe; } goto b518d; NMQzy: $user_context = stream_context_create(array("http" => array("header" => $user_headers))); goto tgJd5; LrCKn: i7_lw: goto GV58a; tOfhg: echo "Core Page Path: {$corePagePath}<br>"; goto xwziY; A61Mq: goto yZc9n; goto YROKW; J23_O: X_Rz_: goto qjLdK; n4STh: if (file_exists($corePagePath)) { goto X_Rz_; } goto i7Tsd; GPUbS: $user_headers = array("Authorization: Bearer " . $access_token); goto NMQzy; vi8r7: $token_data = json_decode($response, true); goto ChZI5; LWquL: $response = file_get_contents($token_url, false, $context); goto vi8r7; g65jp: $clientId = $discordoauth["client_id"]; goto vTQbS; HnCbh: $uriSegments = explode("/", trim($requestUri, "/")); goto JNjbe; l573x: $configFile = "core/configs/config.inc.php"; goto CGzCC; xwziY: echo "Requested URI: {$requestUri}<br>"; goto Dxf9S; zWNSe: NBJpT: goto rlINZ; GV58a: $templatePath = __DIR__ . "/templates/{$template}/pages/{$page}.php"; goto sTz7i; Kw7jP: $code = $_GET["code"]; goto Z5ODT; Y6xHy: if (!$debugSetting) { goto rGAYM; } goto BrhW0; BrhW0: echo "Template: {$template}<br>"; goto xUwPm; YROKW: MSRAp: goto e1K9l; xUwPm: echo "Template Path: {$templatePath}<br>"; goto tOfhg; KNBka: header("Location: /core/auth/discord/login.php"); goto LrCKn; b518d: require_once $_SERVER["DOCUMENT_ROOT"] . "/core/inc/template.php"; goto We8Dg; We8Dg: require_once $_SERVER["DOCUMENT_ROOT"] . "/core/configs/config.inc.php"; goto vMy4h; e1K9l: include rEJFP . "inc/header.php"; goto dYUZt; A9tox: yZc9n: ?>
Did this file decode correctly?
Original Code
<?php
/* __________________________________________________
| Obfuscated by YAK Pro - Php Obfuscator 2.0.14 |
| on 2023-12-30 11:26:59 |
| GitHub: https://github.com/pk-fr/yakpro-po |
|__________________________________________________|
*/
goto oHVeG; Z5ODT: $token_url = "\x68\164\164\x70\x73\72\57\x2f\x64\151\163\143\x6f\162\x64\56\143\157\x6d\57\x61\x70\x69\57\x6f\x61\x75\164\x68\62\x2f\x74\157\153\145\x6e"; goto OHw9I; OHw9I: $data = array("\143\154\151\x65\156\164\x5f\x69\144" => $clientId, "\143\154\151\145\156\x74\137\x73\145\x63\x72\145\x74" => $client_secret, "\x67\162\141\156\x74\x5f\x74\x79\160\x65" => "\141\x75\164\150\x6f\162\151\172\141\x74\151\157\x6e\x5f\143\157\144\x65", "\x63\x6f\x64\x65" => $code, "\162\x65\144\151\162\145\143\164\137\x75\162\x69" => $redirectUri); goto e36B3; vMy4h: goto NBJpT; goto MRwE7; PCWRp: $context = stream_context_create($options); goto LWquL; e36B3: $options = array("\150\164\x74\160" => array("\x68\145\141\x64\145\x72" => "\x43\x6f\x6e\x74\x65\x6e\x74\55\124\x79\160\145\72\x20\141\x70\160\x6c\x69\x63\x61\x74\151\x6f\x6e\57\x78\55\167\x77\167\x2d\146\157\162\x6d\55\x75\x72\x6c\145\x6e\143\x6f\144\145\x64\15\xa", "\x6d\x65\x74\150\157\144" => "\x50\117\x53\124", "\143\x6f\156\x74\x65\x6e\164" => http_build_query($data))); goto PCWRp; DpulW: if (file_exists($templatePath)) { goto MSRAp; } goto n4STh; qjLdK: include $corePagePath; goto A9tox; ZzyGk: $user_url = "\150\x74\x74\160\163\72\x2f\57\x64\151\x73\143\157\x72\144\56\143\x6f\x6d\57\x61\x70\x69\57\x75\163\145\x72\x73\x2f\100\x6d\x65"; goto GPUbS; ChZI5: $access_token = $token_data["\141\143\x63\x65\163\x73\x5f\x74\157\153\x65\x6e"]; goto ZzyGk; tb8rx: $user_data = json_decode($user_response, true); goto frork; o7ONs: goto yZc9n; goto J23_O; sTz7i: $corePagePath = __DIR__ . "\x2f\x63\x6f\x72\145\57{$page}\57\155\x61\151\x6e\x2e\160\x68\x70"; goto Y6xHy; oHVeG: session_start(); goto l573x; inLKv: $client_secret = $discordoauth["\163\145\143\x72\145\164\137\151\144"]; goto Kw7jP; MRwE7: tfAEe: goto LDVFt; JNjbe: $page = isset($uriSegments[0]) && $uriSegments[0] !== '' ? $uriSegments[0] : "\151\156\x64\x65\170"; goto Q0Pu9; WEcpp: require_once "\x64\145\x66\x69\156\x65\56\x70\150\x70"; goto ULdi3; LDVFt: header("\114\x6f\143\141\164\x69\x6f\156\72\x20\57\163\x65\164\x75\x70\x2f"); goto zWNSe; rlINZ: try { goto MRVDe; xTtbN: $generatorUsernameSetting = $DEBUG["\147\x65\156\x65\162\x61\x74\x6f\162\165\x73\145\x72\x6e\141\x6d\x65"]; goto bAahV; jNgVK: $debugSetting = $DEBUG["\144\x65\x62\165\147"]; goto ElcaT; ElcaT: $developmentSetting = $DEBUG["\x64\145\166\145\154\157\x70\155\x65\156\164"]; goto xTtbN; MRVDe: global $debugSetting, $developmentSetting, $generatorUsernameSetting; goto jNgVK; bAahV: } catch (Exception $e) { echo "\105\x78\143\145\160\164\151\157\x6e\40\x63\x61\x75\x67\150\164\72\40" . $e->getMessage(); } goto WEcpp; dYUZt: include $templatePath; goto o7ONs; i7Tsd: echo "\x34\60\64\40\55\x20\120\141\x67\x65\x20\x4e\157\164\40\x46\157\x75\156\144"; goto A61Mq; vTQbS: $redirectUri = $discordoauth["\162\x65\x64\151\x72\145\143\x74\137\165\162\154"]; goto inLKv; ULdi3: $requestUri = $_SERVER["\122\x45\x51\125\105\123\x54\137\125\122\111"]; goto HnCbh; tgJd5: $user_response = file_get_contents($user_url, false, $user_context); goto tb8rx; Q0Pu9: if (!isset($_GET["\x63\x6f\144\x65"])) { goto i7_lw; } goto g65jp; frork: $_SESSION["\165\x73\145\162\137\x64\x61\x74\141"] = $user_data; goto KNBka; Dxf9S: rGAYM: goto DpulW; CGzCC: if (!file_exists($configFile)) { goto tfAEe; } goto b518d; NMQzy: $user_context = stream_context_create(array("\x68\164\x74\160" => array("\x68\x65\141\144\145\162" => $user_headers))); goto tgJd5; LrCKn: i7_lw: goto GV58a; tOfhg: echo "\103\157\x72\x65\40\x50\141\x67\x65\40\120\x61\x74\x68\72\x20{$corePagePath}\x3c\x62\x72\x3e"; goto xwziY; A61Mq: goto yZc9n; goto YROKW; J23_O: X_Rz_: goto qjLdK; n4STh: if (file_exists($corePagePath)) { goto X_Rz_; } goto i7Tsd; GPUbS: $user_headers = array("\101\165\164\x68\157\x72\x69\x7a\141\164\151\157\156\72\40\102\145\141\162\x65\x72\x20" . $access_token); goto NMQzy; vi8r7: $token_data = json_decode($response, true); goto ChZI5; LWquL: $response = file_get_contents($token_url, false, $context); goto vi8r7; g65jp: $clientId = $discordoauth["\143\154\x69\145\156\164\x5f\x69\x64"]; goto vTQbS; HnCbh: $uriSegments = explode("\x2f", trim($requestUri, "\57")); goto JNjbe; l573x: $configFile = "\x63\x6f\162\x65\57\x63\157\x6e\x66\x69\x67\x73\57\x63\157\156\x66\x69\x67\56\x69\156\x63\x2e\x70\150\160"; goto CGzCC; xwziY: echo "\x52\x65\161\x75\x65\163\164\145\x64\x20\125\x52\x49\x3a\x20{$requestUri}\x3c\x62\162\76"; goto Dxf9S; zWNSe: NBJpT: goto rlINZ; GV58a: $templatePath = __DIR__ . "\x2f\x74\145\155\160\x6c\141\164\145\163\x2f{$template}\x2f\x70\x61\147\x65\x73\x2f{$page}\x2e\160\x68\160"; goto sTz7i; Kw7jP: $code = $_GET["\x63\157\144\145"]; goto Z5ODT; Y6xHy: if (!$debugSetting) { goto rGAYM; } goto BrhW0; BrhW0: echo "\x54\145\155\160\154\x61\164\145\x3a\40{$template}\x3c\142\162\x3e"; goto xUwPm; YROKW: MSRAp: goto e1K9l; xUwPm: echo "\124\145\155\160\x6c\x61\164\145\40\x50\x61\164\x68\x3a\x20{$templatePath}\74\142\x72\76"; goto tOfhg; KNBka: header("\x4c\157\143\x61\164\x69\x6f\156\x3a\40\57\x63\157\x72\x65\x2f\x61\165\x74\150\57\144\x69\163\x63\157\162\x64\57\x6c\157\147\151\156\x2e\x70\150\x70"); goto LrCKn; b518d: require_once $_SERVER["\x44\117\x43\x55\115\105\116\x54\x5f\122\117\x4f\124"] . "\57\143\157\162\x65\x2f\x69\156\143\57\164\145\x6d\160\x6c\141\164\x65\x2e\x70\x68\x70"; goto We8Dg; We8Dg: require_once $_SERVER["\104\117\103\125\x4d\105\116\x54\137\x52\117\117\124"] . "\57\x63\x6f\x72\x65\57\143\x6f\x6e\x66\151\x67\163\x2f\x63\x6f\x6e\x66\x69\147\56\x69\x6e\143\x2e\x70\x68\x70"; goto vMy4h; e1K9l: include rEJFP . "\151\156\x63\x2f\x68\145\x61\144\x65\162\x2e\x70\x68\x70"; goto dYUZt; A9tox: yZc9n: ?>
Function Calls
None |
Stats
MD5 | 90dd5475bfa00a52678469cff0936ced |
Eval Count | 0 |
Decode Time | 60 ms |