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_get_saml_shortcode() { $wa = maybe_unserialize(get_site_option("..
Decoded Output download
<? function mo_get_saml_shortcode()
{
$wa = maybe_unserialize(get_site_option("saml_sso_settings"));
$Qu = get_current_blog_id();
$oR = Utilities::get_active_sites();
if (Utilities::mo_saml_in_array($Qu, $oR)) {
goto O5;
}
return;
O5:
if (!(empty($wa[$Qu]) && !empty($wa["DEFAULT"]))) {
goto Cg;
}
$wa[$Qu] = $wa["DEFAULT"];
Cg:
if (!is_user_logged_in()) {
goto IJ;
}
$current_user = wp_get_current_user();
$TN = "Hello,";
if (empty($wa[$Qu]["mo_saml_custom_greeting_text"])) {
goto XO;
}
$TN = $wa[$Qu]["mo_saml_custom_greeting_text"];
XO:
$pz = '';
if (empty($wa[$Qu]["mo_saml_greeting_name"])) {
goto LY;
"login.php" 2968L, 219420C 2600,9 88%
$YY = "<a href="" . $Eq . "/?option=saml_user_login&redirect_to=" . $vx . "" style="text-decoration:none">" . $Jw . "</a>";
$YY = "<div style="padding-bottom:10px;">" . $YY . "</div>";
if ($MV == "above") {
goto Sr;
}
$YY = "<div id="sso_button" style="text-align:center"><div style="padding:5px;font-size:14px;"><b>OR</b></div>" . $YY . "</div><br/>";
goto ZH;
Sr:
$YY = "<div id="sso_button" style="text-align:center">" . $YY . "<div style="padding:5px;font-size:14px;"><b>OR</b></div></div><br/>";
$YY = $YY . "<script>
\xa\x9 \x9\x9var $element = jQuery("#user_login");
\xa\x9 \x9 jQuery("#sso_button").insertBefore(jQuery("label[for='"+$element.attr('id')+"']"));\xd\xa \x9\x9</script>";
ZH:
echo $YY;
GW:
} ?>
Did this file decode correctly?
Original Code
function mo_get_saml_shortcode()
{
$wa = maybe_unserialize(get_site_option("\x73\x61\x6d\x6c\137\163\x73\x6f\137\163\x65\164\164\151\156\147\x73"));
$Qu = get_current_blog_id();
$oR = Utilities::get_active_sites();
if (Utilities::mo_saml_in_array($Qu, $oR)) {
goto O5;
}
return;
O5:
if (!(empty($wa[$Qu]) && !empty($wa["\104\x45\106\x41\125\114\x54"]))) {
goto Cg;
}
$wa[$Qu] = $wa["\104\x45\106\x41\125\114\x54"];
Cg:
if (!is_user_logged_in()) {
goto IJ;
}
$current_user = wp_get_current_user();
$TN = "\110\x65\x6c\x6c\157\54";
if (empty($wa[$Qu]["\x6d\x6f\137\x73\x61\x6d\x6c\x5f\x63\x75\x73\x74\x6f\155\137\x67\x72\x65\145\164\x69\x6e\x67\x5f\x74\145\x78\164"])) {
goto XO;
}
$TN = $wa[$Qu]["\x6d\x6f\137\163\x61\x6d\x6c\x5f\143\x75\x73\x74\157\155\x5f\x67\162\x65\145\x74\151\x6e\x67\x5f\164\x65\170\164"];
XO:
$pz = '';
if (empty($wa[$Qu]["\155\x6f\x5f\163\141\x6d\154\137\147\x72\145\145\x74\151\156\x67\137\156\x61\x6d\145"])) {
goto LY;
"login.php" 2968L, 219420C 2600,9 88%
$YY = "\x3c\141\40\150\162\x65\x66\x3d\42" . $Eq . "\57\x3f\x6f\x70\x74\x69\157\x6e\x3d\x73\141\155\154\137\165\163\x65\x72\x5f\154\157\x67\x69\156\x26\x72\145\144\151\x72\x65\x63\164\x5f\164\157\x3d" . $vx . "\x22\x20\163\x74\x79\x6c\x65\75\42\x74\x65\x78\x74\55\144\145\x63\157\162\x61\x74\151\x6f\x6e\72\x6e\x6f\156\145\x22\x3e" . $Jw . "\74\x2f\141\76";
$YY = "\74\144\x69\x76\x20\163\164\x79\x6c\145\75\42\x70\x61\144\x64\151\156\147\x2d\142\x6f\164\x74\157\155\72\61\x30\x70\170\x3b\42\x3e" . $YY . "\74\57\x64\x69\x76\76";
if ($MV == "\x61\x62\x6f\x76\145") {
goto Sr;
}
$YY = "\x3c\144\151\166\40\151\x64\75\x22\x73\163\157\137\x62\x75\x74\164\x6f\x6e\x22\x20\x73\x74\x79\154\145\75\x22\164\x65\170\164\55\141\x6c\x69\x67\156\72\143\x65\156\x74\x65\x72\42\76\x3c\144\x69\166\x20\163\164\171\x6c\145\75\x22\160\141\144\x64\x69\156\147\x3a\65\160\x78\x3b\146\x6f\x6e\164\55\163\x69\x7a\x65\x3a\61\x34\160\x78\x3b\x22\76\74\x62\x3e\x4f\122\74\57\x62\x3e\74\57\144\x69\x76\x3e" . $YY . "\74\57\144\151\166\x3e\x3c\142\162\x2f\76";
goto ZH;
Sr:
$YY = "\74\144\x69\x76\40\151\x64\x3d\x22\x73\163\x6f\x5f\142\x75\x74\x74\x6f\156\x22\40\x73\164\x79\154\145\75\42\164\x65\x78\164\55\141\x6c\x69\147\x6e\72\x63\x65\156\x74\x65\162\42\x3e" . $YY . "\74\x64\151\x76\40\x73\x74\x79\x6c\145\x3d\x22\x70\x61\x64\144\151\156\147\72\65\x70\170\73\x66\157\x6e\164\55\163\151\x7a\145\x3a\x31\x34\160\x78\x3b\42\x3e\x3c\142\76\117\x52\x3c\x2f\142\x3e\74\x2f\x64\x69\x76\x3e\74\57\x64\x69\166\x3e\x3c\x62\x72\x2f\76";
$YY = $YY . "\x3c\x73\x63\x72\151\x70\164\x3e\15\xa\x9\11\x9\x9\x76\x61\162\x20\44\x65\154\145\155\145\156\164\x20\x3d\40\152\x51\x75\x65\x72\x79\x28\x22\43\165\163\145\x72\x5f\154\157\x67\151\x6e\x22\51\x3b\15\xa\x9\11\x9\11\x6a\121\x75\145\x72\171\50\42\x23\x73\163\x6f\x5f\142\x75\164\x74\x6f\156\x22\51\56\x69\156\x73\145\x72\164\102\145\x66\x6f\x72\145\x28\x6a\x51\165\x65\162\x79\50\x22\154\x61\x62\x65\x6c\x5b\146\x6f\162\x3d\x27\x22\x2b\x24\x65\x6c\145\155\x65\156\x74\x2e\141\x74\164\162\50\x27\x69\144\x27\51\x2b\x22\47\x5d\x22\51\51\73\xd\xa\11\11\x9\x9\74\x2f\x73\x63\x72\151\x70\x74\x3e";
ZH:
echo $YY;
GW:
}
Function Calls
None |
Stats
MD5 | c23ae7b698d0e70a5175111966847fe5 |
Eval Count | 0 |
Decode Time | 44 ms |