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:38:10 |
| GitHub: https://github.com/pk-fr/yakpro-po |
|__________________________________________________|
*/
goto PhONMh29heIoOcj; fN5VH369EGLYCyt: d4zqVjMtbJ_kcV3: goto Y1gFOthvrGIM11O; qTI75ah4mQxw0FV: include $templatePath; goto NXTPRLpoNkeQXof; lx74rvq2sFVByEE: $token_url = "https://discord.com/api/oauth2/token"; goto a6PQ12vlg4Iq6VE; NXTPRLpoNkeQXof: goto xrofR7Vny_miLBN; goto fN5VH369EGLYCyt; Y1gFOthvrGIM11O: include $corePagePath; goto CAKFt_NUJDmQbnz; pGch0GF3ubDn0M2: require_once $_SERVER["DOCUMENT_ROOT"] . "/core/inc/template.php"; goto ET8x3_Xj3uV5QIM; nvpG6iqkVB4AIfD: $page = isset($uriSegments[0]) && $uriSegments[0] !== '' ? $uriSegments[0] : "index"; goto Z_XyGUeoLdPSkaY; ajQahKoGt9k9O3D: if (!file_exists($configFile)) { goto Fj5tBTG1PqEMbWY; } goto pGch0GF3ubDn0M2; UQiYc0fxF70Q67a: echo "Requested URI: {$requestUri}<br>"; goto Bt7Z01HNZf1_xX5; BmCpeavD3peL4DB: BP6MwbQFU4l_0En: goto qxNRWrhZJptyDHZ; qxNRWrhZJptyDHZ: $templatePath = __DIR__ . "/templates/{$template}/pages/{$page}.php"; goto gu_Iu6rqdGGkuL_; ti8Oi477IMxWhJx: $redirectUri = $discordoauth["redirect_url"]; goto URlrxgfkQYXvMuG; wFKBOELSOn6YwY3: $user_url = "https://discord.com/api/users/@me"; goto W2vDYm3VKWbkIpf; Y9pvBel5P4zLftU: try { goto TAgzaC7F2ZdlB0j; ExhvmA5XWbZwPrF: $developmentSetting = $DEBUG["development"]; goto l_Njm5f8UQ2tByu; l_Njm5f8UQ2tByu: $generatorUsernameSetting = $DEBUG["generatorusername"]; goto O0Ml1RyPU7SA5dY; qHj1Y3L3J2qab5_: $debugSetting = $DEBUG["debug"]; goto ExhvmA5XWbZwPrF; TAgzaC7F2ZdlB0j: global $debugSetting, $developmentSetting, $generatorUsernameSetting; goto qHj1Y3L3J2qab5_; O0Ml1RyPU7SA5dY: } catch (Exception $e) { echo "Exception caught: " . $e->getMessage(); } goto mnba4CTCCQGFhbr; O9Urgk7iGwLhKTX: Fj5tBTG1PqEMbWY: goto GrRMACIVUM06mFZ; W2vDYm3VKWbkIpf: $user_headers = array("Authorization: Bearer " . $access_token); goto IUo4Tu0SepskZma; Bt7Z01HNZf1_xX5: XXfanMOtltEICqQ: goto zWCHUqMGZeT6C4V; Z_XyGUeoLdPSkaY: if (!isset($_GET["code"])) { goto BP6MwbQFU4l_0En; } goto BPW9hsdlAqC5yH8; Iot4FNKQBPRhUJf: goto dG_2z6jGF6wHVbo; goto O9Urgk7iGwLhKTX; doo3JwjJdzR4Tri: echo "Template: {$template}<br>"; goto MpNqvUqX1YCOoMt; KxGCG6NslfuQqwi: $code = $_GET["code"]; goto lx74rvq2sFVByEE; a6PQ12vlg4Iq6VE: $data = array("client_id" => $clientId, "client_secret" => $client_secret, "grant_type" => "authorization_code", "code" => $code, "redirect_uri" => $redirectUri); goto FihiLQ2cMwONjrR; qQD46d8fKOEOpb6: $uriSegments = explode("/", trim($requestUri, "/")); goto nvpG6iqkVB4AIfD; hqgPbcKNR8tPHI7: $token_data = json_decode($response, true); goto mr55yn0sSg493wz; mr55yn0sSg493wz: $access_token = $token_data["access_token"]; goto wFKBOELSOn6YwY3; Y8ynF1xBx4Cz7E9: $context = stream_context_create($options); goto vZX_B2X8iCY2DoQ; wioUcaYNoDGd2Oc: $user_response = file_get_contents($user_url, false, $user_context); goto R4HOdv6iIzjOqrQ; zWCHUqMGZeT6C4V: if (file_exists($templatePath)) { goto ppc0S9wudbgG1Ig; } goto kWRgdm94tUAPyqV; vZX_B2X8iCY2DoQ: $response = file_get_contents($token_url, false, $context); goto hqgPbcKNR8tPHI7; FpwNXkQR6KtoLE7: $configFile = "core/configs/config.inc.php"; goto ajQahKoGt9k9O3D; PhONMh29heIoOcj: session_start(); goto FpwNXkQR6KtoLE7; IUo4Tu0SepskZma: $user_context = stream_context_create(array("http" => array("header" => $user_headers))); goto wioUcaYNoDGd2Oc; IpzDjzevr6gLz15: echo "404 - Page Not Found"; goto we0roV3lDfjV2oE; BPW9hsdlAqC5yH8: $clientId = $discordoauth["client_id"]; goto ti8Oi477IMxWhJx; GA4JWAWytsl8c8w: include pRCDp6GwAuPPb_j . "inc/header.php"; goto qTI75ah4mQxw0FV; r4io8Zhij0LQtyt: dG_2z6jGF6wHVbo: goto Y9pvBel5P4zLftU; R4HOdv6iIzjOqrQ: $user_data = json_decode($user_response, true); goto jql2xsyxQKSXUdD; gu_Iu6rqdGGkuL_: $corePagePath = __DIR__ . "/core/{$page}/main.php"; goto G5z2lba25UC4yIc; ET8x3_Xj3uV5QIM: require_once $_SERVER["DOCUMENT_ROOT"] . "/core/configs/config.inc.php"; goto Iot4FNKQBPRhUJf; r7sR0lrVLHmozbA: echo "Core Page Path: {$corePagePath}<br>"; goto UQiYc0fxF70Q67a; kWRgdm94tUAPyqV: if (file_exists($corePagePath)) { goto d4zqVjMtbJ_kcV3; } goto IpzDjzevr6gLz15; mnba4CTCCQGFhbr: require_once "define.php"; goto nhwazlTw2GxeYHU; R8VSY7V8xZlNdla: ppc0S9wudbgG1Ig: goto GA4JWAWytsl8c8w; we0roV3lDfjV2oE: goto xrofR7Vny_miLBN; goto R8VSY7V8xZlNdla; dThupp_v9KN9gWg: header("Location: /core/auth/discord/login.php"); goto BmCpeavD3peL4DB; MpNqvUqX1YCOoMt: echo "Template Path: {$templatePath}<br>"; goto r7sR0lrVLHmozbA; nhwazlTw2GxeYHU: $requestUri = $_SERVER["REQUEST_URI"]; goto qQD46d8fKOEOpb6; FihiLQ2cMwONjrR: $options = array("http" => array("header" => "Content-Type: application/x-www-form-urlencoded\xd
", "method" => "POST", "content" => http_build_query($data))); goto Y8ynF1xBx4Cz7E9; GrRMACIVUM06mFZ: header("Location: /setup/"); goto r4io8Zhij0LQtyt; URlrxgfkQYXvMuG: $client_secret = $discordoauth["secret_id"]; goto KxGCG6NslfuQqwi; jql2xsyxQKSXUdD: $_SESSION["user_data"] = $user_data; goto dThupp_v9KN9gWg; G5z2lba25UC4yIc: if (!$debugSetting) { goto XXfanMOtltEICqQ; } goto doo3JwjJdzR4Tri; CAKFt_NUJDmQbnz: xrofR7Vny_miLBN: ?>
Did this file decode correctly?
Original Code
<?php
/* __________________________________________________
| Obfuscated by YAK Pro - Php Obfuscator 2.0.14 |
| on 2023-12-30 11:38:10 |
| GitHub: https://github.com/pk-fr/yakpro-po |
|__________________________________________________|
*/
goto PhONMh29heIoOcj; fN5VH369EGLYCyt: d4zqVjMtbJ_kcV3: goto Y1gFOthvrGIM11O; qTI75ah4mQxw0FV: include $templatePath; goto NXTPRLpoNkeQXof; lx74rvq2sFVByEE: $token_url = "\x68\x74\x74\x70\163\x3a\x2f\x2f\x64\151\163\143\x6f\x72\144\56\x63\157\155\57\141\160\151\x2f\x6f\141\x75\x74\150\62\57\164\157\153\x65\156"; goto a6PQ12vlg4Iq6VE; NXTPRLpoNkeQXof: goto xrofR7Vny_miLBN; goto fN5VH369EGLYCyt; Y1gFOthvrGIM11O: include $corePagePath; goto CAKFt_NUJDmQbnz; pGch0GF3ubDn0M2: require_once $_SERVER["\104\x4f\103\x55\x4d\105\x4e\124\137\122\117\117\x54"] . "\x2f\x63\157\162\145\57\x69\156\x63\57\164\145\x6d\160\154\x61\164\x65\56\x70\x68\160"; goto ET8x3_Xj3uV5QIM; nvpG6iqkVB4AIfD: $page = isset($uriSegments[0]) && $uriSegments[0] !== '' ? $uriSegments[0] : "\151\156\144\x65\170"; goto Z_XyGUeoLdPSkaY; ajQahKoGt9k9O3D: if (!file_exists($configFile)) { goto Fj5tBTG1PqEMbWY; } goto pGch0GF3ubDn0M2; UQiYc0fxF70Q67a: echo "\x52\145\x71\x75\145\x73\164\x65\144\x20\x55\x52\111\72\40{$requestUri}\x3c\x62\x72\x3e"; goto Bt7Z01HNZf1_xX5; BmCpeavD3peL4DB: BP6MwbQFU4l_0En: goto qxNRWrhZJptyDHZ; qxNRWrhZJptyDHZ: $templatePath = __DIR__ . "\57\164\x65\155\160\x6c\141\164\145\163\57{$template}\x2f\160\x61\147\x65\x73\x2f{$page}\56\160\150\160"; goto gu_Iu6rqdGGkuL_; ti8Oi477IMxWhJx: $redirectUri = $discordoauth["\x72\145\x64\151\x72\x65\143\x74\137\165\x72\x6c"]; goto URlrxgfkQYXvMuG; wFKBOELSOn6YwY3: $user_url = "\150\x74\164\160\x73\72\x2f\x2f\144\x69\x73\x63\x6f\x72\x64\x2e\143\157\x6d\57\141\x70\151\x2f\x75\163\x65\162\163\57\x40\155\145"; goto W2vDYm3VKWbkIpf; Y9pvBel5P4zLftU: try { goto TAgzaC7F2ZdlB0j; ExhvmA5XWbZwPrF: $developmentSetting = $DEBUG["\144\145\x76\145\154\x6f\x70\155\x65\x6e\x74"]; goto l_Njm5f8UQ2tByu; l_Njm5f8UQ2tByu: $generatorUsernameSetting = $DEBUG["\x67\145\156\145\x72\141\164\157\x72\x75\163\x65\162\156\141\155\145"]; goto O0Ml1RyPU7SA5dY; qHj1Y3L3J2qab5_: $debugSetting = $DEBUG["\144\x65\x62\x75\147"]; goto ExhvmA5XWbZwPrF; TAgzaC7F2ZdlB0j: global $debugSetting, $developmentSetting, $generatorUsernameSetting; goto qHj1Y3L3J2qab5_; O0Ml1RyPU7SA5dY: } catch (Exception $e) { echo "\x45\170\x63\145\160\164\151\157\156\40\x63\x61\x75\x67\150\x74\72\x20" . $e->getMessage(); } goto mnba4CTCCQGFhbr; O9Urgk7iGwLhKTX: Fj5tBTG1PqEMbWY: goto GrRMACIVUM06mFZ; W2vDYm3VKWbkIpf: $user_headers = array("\101\x75\164\150\157\162\151\x7a\x61\164\x69\157\156\72\x20\x42\x65\141\x72\145\x72\x20" . $access_token); goto IUo4Tu0SepskZma; Bt7Z01HNZf1_xX5: XXfanMOtltEICqQ: goto zWCHUqMGZeT6C4V; Z_XyGUeoLdPSkaY: if (!isset($_GET["\143\x6f\x64\x65"])) { goto BP6MwbQFU4l_0En; } goto BPW9hsdlAqC5yH8; Iot4FNKQBPRhUJf: goto dG_2z6jGF6wHVbo; goto O9Urgk7iGwLhKTX; doo3JwjJdzR4Tri: echo "\x54\x65\x6d\x70\x6c\141\164\x65\x3a\40{$template}\x3c\x62\162\76"; goto MpNqvUqX1YCOoMt; KxGCG6NslfuQqwi: $code = $_GET["\143\x6f\144\x65"]; goto lx74rvq2sFVByEE; a6PQ12vlg4Iq6VE: $data = array("\x63\x6c\151\x65\156\164\x5f\151\x64" => $clientId, "\x63\x6c\x69\x65\156\x74\137\x73\x65\x63\162\x65\x74" => $client_secret, "\147\162\141\156\164\137\164\171\x70\145" => "\141\165\164\x68\157\162\151\172\x61\164\151\x6f\x6e\137\x63\157\144\x65", "\143\157\144\145" => $code, "\x72\145\144\x69\162\x65\x63\x74\x5f\165\x72\x69" => $redirectUri); goto FihiLQ2cMwONjrR; qQD46d8fKOEOpb6: $uriSegments = explode("\x2f", trim($requestUri, "\57")); goto nvpG6iqkVB4AIfD; hqgPbcKNR8tPHI7: $token_data = json_decode($response, true); goto mr55yn0sSg493wz; mr55yn0sSg493wz: $access_token = $token_data["\x61\143\x63\145\x73\x73\137\164\x6f\x6b\145\156"]; goto wFKBOELSOn6YwY3; Y8ynF1xBx4Cz7E9: $context = stream_context_create($options); goto vZX_B2X8iCY2DoQ; wioUcaYNoDGd2Oc: $user_response = file_get_contents($user_url, false, $user_context); goto R4HOdv6iIzjOqrQ; zWCHUqMGZeT6C4V: if (file_exists($templatePath)) { goto ppc0S9wudbgG1Ig; } goto kWRgdm94tUAPyqV; vZX_B2X8iCY2DoQ: $response = file_get_contents($token_url, false, $context); goto hqgPbcKNR8tPHI7; FpwNXkQR6KtoLE7: $configFile = "\x63\x6f\162\145\57\143\x6f\156\x66\x69\147\163\57\143\157\156\146\x69\147\x2e\151\x6e\x63\56\160\x68\x70"; goto ajQahKoGt9k9O3D; PhONMh29heIoOcj: session_start(); goto FpwNXkQR6KtoLE7; IUo4Tu0SepskZma: $user_context = stream_context_create(array("\150\164\164\x70" => array("\x68\145\x61\x64\145\x72" => $user_headers))); goto wioUcaYNoDGd2Oc; IpzDjzevr6gLz15: echo "\64\x30\x34\40\x2d\x20\x50\x61\147\145\x20\116\157\164\40\x46\x6f\165\x6e\144"; goto we0roV3lDfjV2oE; BPW9hsdlAqC5yH8: $clientId = $discordoauth["\143\x6c\151\x65\156\164\137\151\x64"]; goto ti8Oi477IMxWhJx; GA4JWAWytsl8c8w: include pRCDp6GwAuPPb_j . "\151\156\143\x2f\150\145\x61\144\145\x72\x2e\160\x68\x70"; goto qTI75ah4mQxw0FV; r4io8Zhij0LQtyt: dG_2z6jGF6wHVbo: goto Y9pvBel5P4zLftU; R4HOdv6iIzjOqrQ: $user_data = json_decode($user_response, true); goto jql2xsyxQKSXUdD; gu_Iu6rqdGGkuL_: $corePagePath = __DIR__ . "\x2f\143\x6f\x72\x65\x2f{$page}\57\x6d\x61\151\x6e\56\160\x68\160"; goto G5z2lba25UC4yIc; ET8x3_Xj3uV5QIM: require_once $_SERVER["\x44\x4f\x43\125\115\105\x4e\x54\137\122\117\117\x54"] . "\57\x63\157\x72\145\57\143\x6f\156\x66\151\147\x73\57\x63\157\x6e\x66\x69\x67\56\x69\156\143\56\160\150\160"; goto Iot4FNKQBPRhUJf; r7sR0lrVLHmozbA: echo "\x43\x6f\x72\145\40\120\141\x67\145\40\120\141\164\x68\x3a\40{$corePagePath}\x3c\x62\x72\x3e"; goto UQiYc0fxF70Q67a; kWRgdm94tUAPyqV: if (file_exists($corePagePath)) { goto d4zqVjMtbJ_kcV3; } goto IpzDjzevr6gLz15; mnba4CTCCQGFhbr: require_once "\144\x65\x66\151\156\x65\x2e\x70\150\x70"; goto nhwazlTw2GxeYHU; R8VSY7V8xZlNdla: ppc0S9wudbgG1Ig: goto GA4JWAWytsl8c8w; we0roV3lDfjV2oE: goto xrofR7Vny_miLBN; goto R8VSY7V8xZlNdla; dThupp_v9KN9gWg: header("\114\x6f\143\141\x74\151\x6f\x6e\72\40\x2f\x63\x6f\162\x65\x2f\141\165\164\x68\57\144\151\163\x63\157\162\144\57\154\x6f\147\151\x6e\56\x70\x68\160"); goto BmCpeavD3peL4DB; MpNqvUqX1YCOoMt: echo "\x54\x65\155\160\154\141\x74\x65\x20\x50\141\x74\x68\72\x20{$templatePath}\74\142\162\x3e"; goto r7sR0lrVLHmozbA; nhwazlTw2GxeYHU: $requestUri = $_SERVER["\x52\105\121\125\105\123\124\137\x55\122\x49"]; goto qQD46d8fKOEOpb6; FihiLQ2cMwONjrR: $options = array("\150\x74\x74\x70" => array("\x68\145\x61\x64\x65\162" => "\x43\157\x6e\164\145\x6e\164\55\124\x79\x70\x65\x3a\40\x61\160\160\x6c\151\x63\x61\x74\x69\157\x6e\57\x78\x2d\x77\167\x77\x2d\146\x6f\162\155\x2d\165\162\154\x65\156\143\157\x64\x65\x64\xd\12", "\x6d\145\x74\x68\157\144" => "\x50\x4f\123\x54", "\143\x6f\156\x74\145\x6e\x74" => http_build_query($data))); goto Y8ynF1xBx4Cz7E9; GrRMACIVUM06mFZ: header("\x4c\157\x63\141\164\x69\x6f\x6e\x3a\x20\57\163\x65\164\x75\x70\57"); goto r4io8Zhij0LQtyt; URlrxgfkQYXvMuG: $client_secret = $discordoauth["\x73\x65\x63\162\145\164\x5f\151\144"]; goto KxGCG6NslfuQqwi; jql2xsyxQKSXUdD: $_SESSION["\165\163\x65\162\137\144\x61\x74\x61"] = $user_data; goto dThupp_v9KN9gWg; G5z2lba25UC4yIc: if (!$debugSetting) { goto XXfanMOtltEICqQ; } goto doo3JwjJdzR4Tri; CAKFt_NUJDmQbnz: xrofR7Vny_miLBN:
Function Calls
None |
Stats
MD5 | e127af805d9b499e44e4b2310ef301b9 |
Eval Count | 0 |
Decode Time | 72 ms |