Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
function mo_saml_authenticate() { $n5 = ''; if (empty($_REQUEST..
Decoded Output download
<? function mo_saml_authenticate()
{
$n5 = '';
if (empty($_REQUEST["redirect_to"])) {
goto vG;
}
$n5 = htmlspecialchars($_REQUEST["redirect_to"]);
vG:
if (!is_user_logged_in()) {
goto Au;
}
$this->mo_saml_login_redirect($n5);
Au:
if (!(get_option(Mo_Saml_Options_Enum_Sso_Login::AUTO_REDIRECT) == "true")) {
goto lR;
}
if (!Mo_Saml_License_Utility::is_plugin_license_expired(true)) {
goto T_;
}
return;
T_:
$dW = get_option(Mo_Saml_Options_Enum_Sso_Login::BACKDOOR_URL) ? trim(get_option(Mo_Saml_Options_Enum_Sso_Login::BACKDOOR_URL)) : "false";
if (isset($_GET["loggedout"]) && $_GET["loggedout"] == "true") {
goto tI;
}
if (get_option(Mo_Saml_Options_Enum_Sso_Login::ALLOW_WP_SIGNIN) == "true") {
goto q1;
}
goto hE;
tI:
header("Location: " . home_url());
exit;
goto hE;
q1:
if (!empty($_REQUEST["saml_sso"]) && $_REQUEST["saml_sso"] === $dW) {
goto FT;
}
if (!empty($_REQUEST["redirect_to"])) {
goto zo;
}
goto ex;
FT:
return;
goto ex;
zo:
$n5 = htmlspecialchars($_REQUEST["redirect_to"]);
if (!(strpos($n5, "wp-admin") !== false && strpos($n5, "saml_sso=" . $dW) !== false)) {
goto ew;
}
return;
ew:
ex:
hE:
try {
$this->mo_saml_redirect_for_authentication($n5);
} catch (Mo_SAML_DOM_Extension_Disabled_Exception $pl) {
Mo_Saml_Exception_Handler::mo_saml_throw_exception($pl);
} catch (Mo_SAML_CURL_Extension_Disabled_Exception $pl) {
Mo_Saml_Exception_Handler::mo_saml_throw_exception($pl);
} catch (Mo_SAML_IDP_Status_Inactive_Exception $pl) {
Mo_Saml_Exception_Handler::mo_saml_throw_exception($pl);
}
lR:
} ?>
Did this file decode correctly?
Original Code
function mo_saml_authenticate()
{
$n5 = '';
if (empty($_REQUEST["\x72\145\x64\151\x72\x65\x63\x74\137\164\157"])) {
goto vG;
}
$n5 = htmlspecialchars($_REQUEST["\162\x65\144\151\162\x65\x63\x74\137\164\x6f"]);
vG:
if (!is_user_logged_in()) {
goto Au;
}
$this->mo_saml_login_redirect($n5);
Au:
if (!(get_option(Mo_Saml_Options_Enum_Sso_Login::AUTO_REDIRECT) == "\164\162\x75\145")) {
goto lR;
}
if (!Mo_Saml_License_Utility::is_plugin_license_expired(true)) {
goto T_;
}
return;
T_:
$dW = get_option(Mo_Saml_Options_Enum_Sso_Login::BACKDOOR_URL) ? trim(get_option(Mo_Saml_Options_Enum_Sso_Login::BACKDOOR_URL)) : "\146\x61\x6c\x73\x65";
if (isset($_GET["\x6c\x6f\147\147\x65\144\157\165\164"]) && $_GET["\154\157\x67\147\x65\144\157\x75\164"] == "\x74\162\165\145") {
goto tI;
}
if (get_option(Mo_Saml_Options_Enum_Sso_Login::ALLOW_WP_SIGNIN) == "\x74\162\x75\145") {
goto q1;
}
goto hE;
tI:
header("\x4c\157\x63\141\164\x69\157\x6e\72\x20" . home_url());
exit;
goto hE;
q1:
if (!empty($_REQUEST["\x73\x61\x6d\154\137\163\163\x6f"]) && $_REQUEST["\x73\141\155\x6c\137\163\x73\x6f"] === $dW) {
goto FT;
}
if (!empty($_REQUEST["\x72\145\x64\x69\x72\x65\x63\x74\137\164\157"])) {
goto zo;
}
goto ex;
FT:
return;
goto ex;
zo:
$n5 = htmlspecialchars($_REQUEST["\x72\x65\144\x69\162\145\x63\164\137\x74\x6f"]);
if (!(strpos($n5, "\167\160\x2d\141\x64\x6d\x69\156") !== false && strpos($n5, "\x73\141\155\154\137\x73\x73\x6f\x3d" . $dW) !== false)) {
goto ew;
}
return;
ew:
ex:
hE:
try {
$this->mo_saml_redirect_for_authentication($n5);
} catch (Mo_SAML_DOM_Extension_Disabled_Exception $pl) {
Mo_Saml_Exception_Handler::mo_saml_throw_exception($pl);
} catch (Mo_SAML_CURL_Extension_Disabled_Exception $pl) {
Mo_Saml_Exception_Handler::mo_saml_throw_exception($pl);
} catch (Mo_SAML_IDP_Status_Inactive_Exception $pl) {
Mo_Saml_Exception_Handler::mo_saml_throw_exception($pl);
}
lR:
}
Function Calls
None |
Stats
MD5 | fb18a10d7d2b04ee5ad2ef151ad701df |
Eval Count | 0 |
Decode Time | 41 ms |