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 echo "\357\xbb\xbf"; use VDV\Core\Model\LoginRememberMe; use VDV\LoginPage\Model\L..
Decoded Output download
<?php
echo ""; use VDV\Core\Model\LoginRememberMe; use VDV\LoginPage\Model\LoginPageDb; $errorMessage = null; try { require_once "inc.serverPath.php"; require_once "components/autoload.php"; require_once "components/vdv/language/model/get_language.php"; require_once "components/vdv/database/model/ini_vdv_prepare_query.php"; require_once "components/vdv/database/model/ini.inc.php"; require_once "components/vdv/database/model/ini.db.open.php"; require_once "components/vdv/core/view/loadUser.php"; require_once "components/vdv/log/model/inc_log_save.php"; require_once "components/vdv/user/model/user_get.php"; require_once "components/vdv/site/model/station_get.php"; require_once "components/vdv/user/model/UserDb.php"; require_once "components/vdv/language/model/LanguageDb.php"; require_once "components/vdv/user/model/user_confirm_password.php"; require_once "components/vdv/real_time_display/model/rtd_get.php"; require_once "components/vdv/dashboard/model/dashboard_get.php"; require_once "components/vdv/core/view/loadUser.php"; require_once "components/component_broker.php"; session_start(); if (checkIfLoggedIn()) { header("Location: vdv.php"); } } catch (\PDOException $e) { fatalError("Unable to connect to database"); } catch (\VDV\OAuth_SSO\Model\OauthException $e) { $errorMessage = $e->getMessage(); } catch (\Exception $e) { fatalError("Internal Server Error"); } $loginPageDb = new LoginPageDb(); $loginPage = !empty($_GET["idOverride"]) ? $loginPageDb->findByUuid($_GET["idOverride"]) : $loginPageDb->findByHostname($_SERVER["HTTP_HOST"]); if ($loginPage === null) { fatalError("Internal Server Error"); } require "components/vdv/loginPage/assets/templates/login.php"; function fatalError(string $errorMessage) { require "components/vdv/loginPage/assets/templates/error.php"; exit; } function checkIfLoggedIn() : bool { if (!empty($_SESSION["SESSION_UID"])) { return true; } if (checkSSOLogin()) { return true; } if (!empty($_COOKIE["vdvRememberMe"])) { $rememberMe = new LoginRememberMe(); if ($rememberMe->attach($_COOKIE["vdvRememberMe"])) { return true; } } return false; } function checkSSOLogin() : bool { if (empty($_SESSION["sso_provider_id"]) || empty($_GET["code"])) { return false; } $OauthSSO = new \VDV\OAuth_SSO\Model\OauthSSO($_SESSION["sso_provider_id"]); $OauthSSO->authorizeSSOLogin(["code" => $_GET["code"], "state" => $_GET["state"], "session_state" => $_GET["session_state"]]); return true; } ?>
Did this file decode correctly?
Original Code
<?php
echo "\357\xbb\xbf"; use VDV\Core\Model\LoginRememberMe; use VDV\LoginPage\Model\LoginPageDb; $errorMessage = null; try { require_once "\x69\x6e\x63\x2e\163\145\x72\166\145\162\x50\x61\x74\150\56\160\x68\160"; require_once "\x63\x6f\x6d\160\x6f\156\x65\156\x74\x73\57\x61\x75\164\157\154\x6f\x61\x64\x2e\x70\x68\160"; require_once "\143\157\155\160\157\156\145\156\164\x73\57\x76\x64\166\57\154\x61\x6e\x67\x75\x61\x67\x65\x2f\x6d\x6f\144\x65\154\57\147\x65\164\137\154\x61\x6e\x67\x75\x61\147\x65\x2e\160\x68\x70"; require_once "\x63\x6f\x6d\x70\157\156\x65\x6e\x74\163\57\x76\x64\166\57\144\141\164\141\x62\x61\x73\x65\57\155\157\x64\145\x6c\57\x69\x6e\x69\x5f\166\x64\166\x5f\x70\162\x65\160\x61\162\x65\137\x71\165\145\162\x79\56\x70\x68\x70"; require_once "\x63\157\155\160\157\x6e\x65\156\x74\163\x2f\x76\144\x76\57\144\x61\164\x61\142\x61\x73\145\57\x6d\x6f\144\145\154\57\x69\156\x69\x2e\151\156\x63\56\160\x68\x70"; require_once "\x63\x6f\155\160\x6f\156\145\x6e\x74\x73\57\166\x64\x76\x2f\x64\141\x74\141\x62\141\163\145\57\x6d\x6f\144\145\154\x2f\151\x6e\x69\56\x64\142\56\157\x70\x65\156\56\x70\x68\x70"; require_once "\x63\x6f\x6d\x70\157\156\145\156\164\163\57\166\x64\x76\x2f\143\x6f\162\x65\x2f\166\x69\145\x77\x2f\154\157\x61\144\125\163\145\162\56\x70\x68\x70"; require_once "\143\x6f\x6d\160\157\x6e\145\156\x74\163\57\x76\144\166\x2f\x6c\x6f\147\57\155\157\144\145\x6c\57\x69\x6e\x63\x5f\154\x6f\x67\x5f\x73\141\166\x65\56\160\x68\160"; require_once "\143\157\x6d\x70\157\156\145\x6e\164\x73\57\x76\x64\x76\x2f\165\163\145\162\57\155\x6f\x64\x65\x6c\x2f\165\163\145\162\137\x67\x65\164\56\x70\x68\x70"; require_once "\x63\x6f\x6d\x70\157\x6e\x65\156\164\x73\57\x76\x64\x76\x2f\x73\x69\164\x65\57\155\x6f\x64\145\154\57\x73\x74\141\x74\x69\157\156\x5f\x67\145\164\x2e\x70\150\160"; require_once "\143\157\155\160\157\156\145\x6e\x74\x73\57\166\144\x76\x2f\165\163\145\x72\57\x6d\x6f\144\x65\154\x2f\x55\163\x65\x72\104\x62\56\x70\x68\x70"; require_once "\x63\157\x6d\x70\x6f\156\145\156\x74\x73\x2f\x76\144\x76\57\154\x61\x6e\147\x75\141\147\x65\57\155\x6f\x64\145\x6c\x2f\x4c\x61\x6e\x67\165\x61\147\145\104\142\x2e\160\x68\x70"; require_once "\143\157\155\x70\157\x6e\145\156\x74\163\57\x76\144\166\x2f\x75\163\x65\162\x2f\155\157\x64\x65\154\x2f\x75\163\145\x72\x5f\143\157\x6e\x66\151\x72\x6d\x5f\160\141\163\163\x77\157\162\x64\56\x70\x68\x70"; require_once "\143\157\155\x70\x6f\156\145\156\x74\x73\x2f\x76\144\166\57\x72\x65\141\154\137\164\151\x6d\145\x5f\144\151\163\160\x6c\x61\x79\x2f\x6d\x6f\144\145\x6c\x2f\162\x74\144\137\147\x65\164\56\x70\150\160"; require_once "\143\x6f\x6d\x70\x6f\156\145\156\164\x73\x2f\166\x64\x76\57\x64\x61\163\150\x62\x6f\x61\x72\x64\57\155\157\144\x65\154\57\144\x61\163\x68\142\157\141\162\x64\137\x67\x65\164\56\160\150\160"; require_once "\x63\157\155\160\x6f\156\x65\156\x74\163\x2f\166\144\166\x2f\x63\x6f\x72\145\57\166\x69\145\x77\x2f\154\157\x61\144\125\x73\x65\162\56\160\x68\160"; require_once "\x63\x6f\x6d\x70\157\x6e\145\156\x74\163\57\143\157\x6d\160\157\x6e\x65\x6e\x74\x5f\x62\162\x6f\x6b\145\x72\56\160\x68\160"; session_start(); if (checkIfLoggedIn()) { header("\x4c\157\x63\x61\x74\x69\157\156\x3a\40\x76\144\x76\x2e\160\x68\x70"); } } catch (\PDOException $e) { fatalError("\x55\156\141\x62\x6c\145\40\x74\x6f\x20\x63\x6f\x6e\x6e\x65\143\x74\x20\x74\157\x20\x64\x61\x74\x61\142\x61\x73\x65"); } catch (\VDV\OAuth_SSO\Model\OauthException $e) { $errorMessage = $e->getMessage(); } catch (\Exception $e) { fatalError("\x49\156\164\145\162\156\141\x6c\x20\123\x65\162\166\145\162\x20\x45\162\x72\x6f\x72"); } $loginPageDb = new LoginPageDb(); $loginPage = !empty($_GET["\x69\x64\x4f\166\145\x72\162\151\x64\x65"]) ? $loginPageDb->findByUuid($_GET["\151\144\x4f\166\x65\x72\162\151\x64\x65"]) : $loginPageDb->findByHostname($_SERVER["\110\124\124\120\137\x48\117\123\x54"]); if ($loginPage === null) { fatalError("\111\156\x74\x65\162\x6e\141\x6c\x20\x53\x65\x72\x76\x65\x72\40\x45\x72\162\x6f\162"); } require "\x63\x6f\155\x70\157\x6e\x65\156\164\x73\57\166\x64\x76\57\154\x6f\x67\151\x6e\120\141\x67\145\x2f\141\x73\163\x65\164\x73\x2f\164\145\x6d\160\154\x61\164\145\x73\57\154\157\x67\x69\x6e\56\x70\x68\160"; function fatalError(string $errorMessage) { require "\143\x6f\x6d\160\157\156\x65\156\x74\x73\57\x76\144\x76\57\154\157\147\x69\156\120\x61\x67\x65\x2f\141\163\x73\145\164\163\x2f\x74\x65\155\x70\x6c\x61\164\145\x73\x2f\x65\162\162\x6f\x72\x2e\160\x68\x70"; exit; } function checkIfLoggedIn() : bool { if (!empty($_SESSION["\x53\x45\123\x53\111\117\116\137\x55\111\x44"])) { return true; } if (checkSSOLogin()) { return true; } if (!empty($_COOKIE["\x76\144\x76\x52\145\155\145\155\142\x65\162\115\145"])) { $rememberMe = new LoginRememberMe(); if ($rememberMe->attach($_COOKIE["\x76\144\166\122\x65\x6d\145\155\142\x65\x72\115\x65"])) { return true; } } return false; } function checkSSOLogin() : bool { if (empty($_SESSION["\163\x73\x6f\137\x70\162\x6f\x76\151\x64\145\162\137\x69\144"]) || empty($_GET["\143\x6f\x64\x65"])) { return false; } $OauthSSO = new \VDV\OAuth_SSO\Model\OauthSSO($_SESSION["\163\x73\x6f\137\160\x72\157\x76\151\x64\x65\162\137\151\x64"]); $OauthSSO->authorizeSSOLogin(["\x63\x6f\144\145" => $_GET["\143\x6f\x64\145"], "\163\164\141\164\145" => $_GET["\x73\x74\x61\x74\x65"], "\x73\145\163\163\151\157\x6e\x5f\x73\164\141\x74\145" => $_GET["\x73\x65\163\163\151\157\156\x5f\163\x74\x61\164\145"]]); return true; }
Function Calls
None |
Stats
MD5 | c343d6785b040ac3c926785495e0e3ed |
Eval Count | 0 |
Decode Time | 58 ms |