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_show_test_result($Ou, $hP, $P2, $fS, $jG, $Na) { echo "\74\144\15..

Decoded Output download

<?   
function mo_saml_show_test_result($Ou, $hP, $P2, $fS, $jG, $Na) 
{ 
    echo "<div style="font-family:Calibri;padding:0 3%;">"; 
    if (!empty($P2)) { 
        goto K_1; 
    } 
    echo "<div style="color: #a94442;background-color: #f2dede;padding: 15px;margin-bottom: 20px;text-align:center;border:1px solid #E6B3B2;font-size:18pt;">TEST FAILED</div>
        <div style="color: #a94442;font-size:14pt; margin-bottom:20px;">WARNING: Some Attributes Did Not Match.</div>
        <div style="display:block;text-align:center;margin-bottom:4%;"><img style="width:15%;"src="" . plugin_dir_url(__FILE__) . "images/wrong.png"></div>"; 
    goto B3q; 
    K_1: 
    update_site_option("mo_saml_test_config_attrs", $jG); 
    echo "<div style="color: #3c763d;
\xa        background-color: #dff0d8; padding:2%;margin-bottom:20px;text-align:center; border:1px solid #AEDB9A; font-size:18pt;">TEST SUCCESSFUL</div>
\xa        <div style="display:block;text-align:center;margin-bottom:4%;"><img style="width:15%;"src="" . plugin_dir_url(__FILE__) . "images/green_check.png"></div>"; 
    B3q: 
    $QM = $Na == "testNewCertificate" ? "display:none" : ''; 
    $iW = get_site_option("saml_am_account_matcher") ? get_site_option("saml_am_account_matcher") : "email"; 
    if (!($iW == "email" && !filter_var($jG["NameID"][0], FILTER_VALIDATE_EMAIL))) { 
        goto wDh; 
    } 
    echo "<p><font color="#FF0000" style="font-size:14pt">(Warning: The NameID value is not a valid Email ID)</font></p>"; 
    wDh: 
    echo "<span style="font-size:14pt;"><b>Hello</b>, " . $P2 . "</span><br/><p style="font-weight:bold;font-size:14pt;margin-left:1%;">ATTRIBUTES RECEIVED:</p>
\xa    <table style="border-collapse:collapse;border-spacing:0; display:table;width:100%; font-size:14pt;background-color:#EDEDED;">
        <tr style="text-align:center;"><td style="font-weight:bold;border:2px solid #949090;padding:2%;">ATTRIBUTE NAME</td><td style="font-weight:bold;padding:2%;border:2px solid #949090; word-wrap:break-word;">ATTRIBUTE VALUE</td></tr>"; 
    if (!empty($jG)) { 
        goto xlC; 
    } 
    echo "No Attributes Received."; 
    goto VEn; 
    xlC: 
    foreach ($jG as $tK => $Cd) { 
        echo "<tr><td style='font-weight:bold;border:2px solid #949090;padding:2%;'>" . $tK . "</td><td style='padding:2%;border:2px solid #949090; word-wrap:break-word;'>" . implode("<hr/>", $Cd) . "</td></tr>"; 
        iSO: 
    } 
    Tox: 
    VEn: 
    echo "</table></div>"; 
    echo "<div style="margin:3%;display:block;text-align:center;">\xd\xa            <input style="padding:1%;width:250px;background: #0091CD none repeat scroll 0% 0%;
            cursor: pointer;font-size:15px;border-width: 1px;border-style: solid;border-radius: 3px;white-space:\xd\xa            nowrap;box-sizing: border-box;border-color: #0073AA;box-shadow: 0px 1px 0px rgba(120, 200, 230, 0.6) inset;color: #FFF;" . $QM . ""\xd
                type="button" value="Configure Attribute/Role Mapping" onClick="close_and_redirect();"> &nbsp; \xd\xa                
\xa            <input style="padding:1%;width:100px;background: #0091CD none repeat scroll 0% 0%;cursor: pointer;font-size:15px;border-width: 1px;border-style: solid;border-radius: 3px;white-space: nowrap;box-sizing: border-box;border-color: #0073AA;box-shadow: 0px 1px 0px rgba(120, 200, 230, 0.6) inset;color: #FFF;"type="button" value="Done" onClick="self.close();"></div>
                                <script>\xd\xa\xd\xa            function close_and_redirect(){
\xa                window.opener.redirect_to_attribute_mapping();
\xa                self.close();
            }\xd\xa            \xd\xa            function refreshParent() {
\xa                window.opener.location.reload();\xd
            }
            </script>"; 
    exit; 
} ?>

Did this file decode correctly?

Original Code


function mo_saml_show_test_result($Ou, $hP, $P2, $fS, $jG, $Na)
{
    echo "\74\144\151\x76\x20\163\164\x79\x6c\145\x3d\42\x66\x6f\x6e\164\x2d\146\x61\155\151\x6c\x79\72\x43\x61\x6c\x69\142\162\151\73\160\141\144\x64\151\x6e\x67\x3a\x30\40\x33\45\73\42\x3e";
    if (!empty($P2)) {
        goto K_1;
    }
    echo "\74\x64\x69\166\40\163\x74\171\154\x65\x3d\x22\143\157\154\157\162\x3a\x20\43\x61\71\x34\64\x34\x32\x3b\142\x61\143\x6b\x67\162\157\x75\x6e\x64\x2d\x63\157\154\x6f\x72\72\40\x23\146\62\x64\145\144\x65\73\x70\x61\144\x64\x69\x6e\147\x3a\40\61\65\x70\x78\73\x6d\141\x72\x67\x69\156\x2d\x62\x6f\164\x74\x6f\x6d\72\40\x32\60\160\170\73\164\x65\x78\164\55\141\154\151\147\156\72\x63\x65\x6e\x74\x65\x72\x3b\142\157\x72\x64\x65\162\72\61\160\x78\x20\x73\157\x6c\x69\144\40\43\x45\x36\102\x33\x42\62\73\x66\157\156\164\x2d\163\x69\172\145\x3a\x31\70\160\x74\73\x22\x3e\124\x45\x53\124\40\x46\101\111\x4c\105\104\74\57\x64\x69\166\x3e\15\12\40\x20\40\x20\x20\x20\40\40\x3c\x64\151\166\x20\x73\164\x79\154\145\x3d\42\x63\x6f\x6c\x6f\162\72\40\x23\x61\x39\64\x34\x34\x32\73\146\157\x6e\164\x2d\163\x69\172\x65\x3a\x31\x34\160\164\x3b\40\155\x61\162\147\x69\x6e\x2d\142\157\x74\164\157\155\x3a\62\x30\160\x78\x3b\42\76\127\x41\122\x4e\x49\x4e\x47\72\40\x53\x6f\155\145\x20\101\x74\x74\162\x69\x62\165\164\145\x73\40\x44\151\x64\x20\x4e\x6f\164\40\x4d\141\164\143\x68\x2e\74\57\x64\151\166\x3e\15\12\x20\40\x20\x20\x20\40\40\40\74\x64\x69\x76\x20\x73\x74\x79\154\145\x3d\x22\x64\x69\163\160\x6c\141\171\72\x62\154\x6f\143\153\x3b\x74\x65\x78\x74\x2d\141\x6c\x69\147\x6e\72\143\x65\156\x74\x65\162\73\x6d\x61\x72\x67\x69\x6e\55\142\x6f\x74\x74\x6f\155\72\64\45\x3b\42\x3e\x3c\151\155\147\40\x73\x74\171\x6c\145\75\42\167\151\144\164\150\72\61\x35\45\73\x22\163\x72\143\75\42" . plugin_dir_url(__FILE__) . "\x69\155\x61\x67\x65\163\x2f\167\162\157\x6e\x67\56\x70\156\147\x22\x3e\x3c\x2f\x64\x69\166\x3e";
    goto B3q;
    K_1:
    update_site_option("\x6d\157\x5f\x73\x61\x6d\x6c\x5f\164\x65\163\164\137\x63\x6f\x6e\146\151\x67\x5f\x61\x74\x74\x72\x73", $jG);
    echo "\x3c\x64\x69\166\x20\x73\x74\171\154\145\75\42\x63\157\154\157\x72\72\x20\x23\x33\143\x37\x36\63\x64\73\15\xa\40\40\40\40\40\40\40\40\142\141\x63\x6b\x67\x72\157\165\156\x64\55\143\x6f\x6c\157\x72\x3a\x20\43\x64\146\x66\60\144\x38\73\40\x70\x61\144\x64\151\156\x67\x3a\x32\x25\73\155\141\162\x67\x69\156\x2d\x62\x6f\x74\164\157\x6d\x3a\62\x30\160\170\73\164\x65\170\x74\x2d\x61\154\151\147\156\x3a\143\x65\x6e\164\145\162\x3b\x20\142\x6f\x72\x64\x65\x72\x3a\61\160\x78\x20\x73\157\154\151\144\40\43\x41\x45\x44\x42\x39\101\73\40\146\157\156\164\55\163\151\172\145\x3a\61\70\x70\x74\73\42\76\124\x45\x53\124\x20\123\x55\103\103\105\123\123\106\125\114\x3c\57\144\151\x76\76\15\xa\40\x20\40\40\x20\40\x20\40\x3c\x64\x69\166\x20\163\164\x79\x6c\x65\75\x22\x64\151\163\x70\154\x61\x79\72\142\154\157\143\153\73\x74\145\170\x74\55\141\x6c\x69\x67\x6e\72\x63\145\x6e\164\x65\162\73\x6d\x61\x72\x67\x69\156\x2d\x62\157\x74\164\157\155\72\x34\x25\73\x22\76\74\151\x6d\x67\x20\163\x74\171\154\x65\x3d\x22\x77\x69\x64\x74\x68\x3a\x31\65\45\73\42\163\x72\x63\x3d\x22" . plugin_dir_url(__FILE__) . "\x69\x6d\x61\x67\145\163\57\147\x72\145\x65\x6e\137\143\x68\145\x63\x6b\56\x70\x6e\x67\x22\76\x3c\x2f\x64\x69\x76\76";
    B3q:
    $QM = $Na == "\164\145\x73\164\x4e\x65\x77\x43\145\x72\x74\151\146\151\143\141\x74\145" ? "\144\x69\x73\160\x6c\x61\x79\x3a\156\x6f\x6e\x65" : '';
    $iW = get_site_option("\163\x61\x6d\154\137\141\155\137\x61\x63\143\x6f\165\156\164\x5f\155\x61\x74\x63\150\145\162") ? get_site_option("\163\x61\155\x6c\x5f\x61\x6d\x5f\x61\143\143\x6f\165\156\x74\137\x6d\x61\x74\143\x68\x65\x72") : "\145\155\x61\151\x6c";
    if (!($iW == "\x65\155\141\x69\154" && !filter_var($jG["\116\x61\x6d\145\x49\x44"][0], FILTER_VALIDATE_EMAIL))) {
        goto wDh;
    }
    echo "\74\160\x3e\x3c\146\157\x6e\x74\40\x63\x6f\154\x6f\162\75\42\43\106\x46\60\60\60\x30\42\40\x73\x74\171\x6c\145\75\42\146\x6f\x6e\x74\x2d\x73\151\172\145\72\61\x34\x70\x74\42\x3e\x28\127\x61\x72\x6e\x69\x6e\x67\72\x20\124\150\145\x20\116\141\155\145\111\104\40\x76\x61\x6c\165\145\x20\x69\163\40\156\157\164\40\141\40\x76\x61\154\x69\x64\x20\105\155\141\x69\x6c\40\x49\x44\51\x3c\x2f\x66\x6f\x6e\x74\x3e\x3c\57\x70\76";
    wDh:
    echo "\x3c\163\x70\141\156\40\x73\x74\x79\x6c\x65\x3d\x22\x66\x6f\156\164\55\x73\151\172\145\72\61\64\x70\164\73\42\x3e\x3c\x62\76\110\145\154\x6c\157\x3c\57\142\x3e\54\40" . $P2 . "\x3c\x2f\163\160\141\156\76\x3c\142\162\57\x3e\x3c\x70\40\163\164\171\x6c\x65\75\42\x66\157\x6e\x74\x2d\x77\145\151\147\x68\x74\x3a\x62\x6f\x6c\144\x3b\146\157\x6e\164\55\163\151\172\145\72\x31\64\160\x74\x3b\x6d\x61\162\x67\151\x6e\x2d\x6c\145\x66\164\x3a\61\x25\x3b\x22\76\101\x54\124\x52\x49\x42\125\124\x45\123\x20\x52\x45\103\105\111\126\x45\104\x3a\x3c\x2f\x70\76\15\xa\40\x20\40\x20\74\x74\x61\142\x6c\x65\x20\x73\x74\x79\x6c\145\x3d\42\x62\x6f\162\x64\145\162\x2d\143\157\x6c\x6c\141\160\163\145\x3a\x63\157\x6c\x6c\x61\160\x73\145\73\142\x6f\x72\x64\x65\162\x2d\x73\160\x61\143\x69\x6e\x67\72\x30\x3b\40\x64\x69\x73\160\154\141\171\72\164\x61\142\154\x65\73\167\x69\x64\x74\x68\x3a\x31\60\x30\x25\x3b\x20\x66\157\156\x74\x2d\163\151\x7a\145\72\61\x34\x70\x74\73\142\141\x63\x6b\147\162\157\x75\156\x64\55\143\157\x6c\x6f\x72\x3a\43\105\104\105\104\105\104\73\42\x3e\15\12\40\40\40\40\40\40\x20\x20\x3c\164\162\40\163\x74\x79\154\x65\75\42\x74\x65\x78\x74\x2d\x61\154\151\147\x6e\x3a\143\x65\156\x74\145\x72\73\42\x3e\74\164\144\x20\x73\x74\171\x6c\x65\x3d\x22\146\x6f\156\164\55\x77\145\151\147\x68\164\72\142\157\x6c\144\73\142\157\162\144\145\x72\72\x32\160\x78\40\x73\157\154\151\144\40\x23\x39\x34\71\x30\71\60\73\160\141\144\x64\x69\156\x67\72\62\45\x3b\42\76\101\x54\124\122\x49\102\x55\124\x45\40\x4e\101\115\105\74\x2f\x74\144\x3e\74\x74\144\40\x73\x74\171\154\145\x3d\42\x66\157\156\x74\55\167\x65\151\x67\150\164\72\142\x6f\x6c\144\x3b\160\x61\x64\144\x69\x6e\147\72\62\45\73\142\x6f\x72\x64\145\162\x3a\x32\x70\170\40\x73\157\x6c\151\x64\x20\x23\x39\x34\x39\x30\x39\x30\x3b\x20\167\157\162\144\x2d\x77\162\x61\160\72\142\x72\145\141\153\x2d\x77\x6f\162\x64\73\x22\x3e\x41\124\124\122\x49\x42\x55\124\105\x20\x56\101\x4c\x55\105\x3c\57\164\x64\76\x3c\x2f\x74\x72\76";
    if (!empty($jG)) {
        goto xlC;
    }
    echo "\116\x6f\40\101\164\x74\162\151\x62\x75\x74\145\x73\x20\x52\x65\x63\145\151\x76\145\x64\56";
    goto VEn;
    xlC:
    foreach ($jG as $tK => $Cd) {
        echo "\74\x74\x72\x3e\74\164\x64\40\163\164\171\x6c\145\x3d\47\146\157\x6e\164\55\x77\145\151\x67\x68\x74\72\142\x6f\154\x64\73\x62\x6f\x72\144\145\x72\72\62\x70\170\x20\163\x6f\x6c\151\144\x20\x23\71\x34\x39\60\71\60\x3b\160\141\x64\x64\151\156\147\72\x32\45\x3b\47\76" . $tK . "\x3c\57\164\144\x3e\74\x74\144\x20\x73\x74\x79\154\x65\x3d\x27\160\x61\x64\144\x69\x6e\x67\x3a\62\45\73\x62\x6f\x72\x64\145\x72\72\x32\160\170\x20\163\x6f\x6c\151\x64\40\43\x39\x34\x39\60\x39\60\73\x20\x77\x6f\162\144\x2d\167\x72\141\x70\x3a\142\x72\x65\141\153\55\167\x6f\162\x64\x3b\x27\76" . implode("\x3c\150\162\57\76", $Cd) . "\x3c\x2f\164\144\x3e\x3c\57\x74\x72\x3e";
        iSO:
    }
    Tox:
    VEn:
    echo "\74\57\x74\141\142\x6c\145\76\x3c\57\144\151\x76\x3e";
    echo "\x3c\x64\x69\x76\x20\163\164\x79\154\x65\75\42\x6d\x61\x72\x67\x69\x6e\x3a\63\x25\73\x64\151\163\x70\154\141\171\72\142\154\157\x63\x6b\73\164\x65\x78\164\55\x61\x6c\x69\147\156\72\x63\145\x6e\x74\x65\162\73\42\76\xd\xa\x20\x20\x20\x20\40\x20\x20\40\x20\40\40\40\x3c\151\156\x70\x75\x74\x20\x73\x74\171\x6c\x65\x3d\x22\x70\x61\144\144\151\156\x67\72\61\45\x3b\x77\x69\x64\x74\150\72\x32\65\60\x70\x78\73\x62\x61\143\153\147\162\157\165\x6e\144\x3a\x20\x23\x30\x30\x39\61\103\104\40\156\157\156\x65\40\162\145\x70\145\141\164\40\x73\143\162\157\x6c\154\40\60\x25\40\60\x25\73\15\12\x20\x20\x20\x20\x20\40\40\x20\x20\40\40\40\143\x75\x72\x73\x6f\x72\x3a\x20\160\x6f\x69\156\x74\x65\162\x3b\146\157\156\x74\55\x73\151\172\145\x3a\61\x35\160\170\73\142\x6f\x72\144\x65\162\55\167\151\x64\x74\x68\72\x20\x31\x70\x78\x3b\x62\x6f\162\x64\145\x72\55\163\164\171\x6c\145\x3a\x20\163\x6f\154\x69\x64\x3b\x62\x6f\x72\144\x65\162\55\x72\141\144\x69\165\163\72\40\63\160\170\x3b\167\x68\151\x74\145\55\163\x70\141\x63\x65\x3a\xd\xa\40\x20\40\x20\x20\40\x20\40\40\x20\40\40\x6e\157\x77\162\x61\x70\x3b\142\157\170\x2d\163\x69\x7a\x69\x6e\147\x3a\x20\x62\x6f\x72\x64\145\x72\55\142\x6f\170\x3b\x62\x6f\x72\144\145\162\55\x63\157\x6c\157\x72\x3a\x20\x23\x30\60\67\x33\x41\x41\x3b\142\157\x78\55\163\x68\x61\x64\157\167\x3a\40\60\160\x78\x20\x31\x70\170\40\60\160\170\x20\162\x67\142\x61\x28\x31\62\60\x2c\x20\x32\x30\x30\x2c\x20\62\63\60\x2c\x20\x30\x2e\x36\x29\40\151\x6e\163\145\x74\x3b\143\x6f\x6c\157\162\72\x20\x23\x46\106\106\73" . $QM . "\42\xd\12\40\40\x20\40\x20\40\40\x20\x20\40\x20\40\40\40\40\40\164\x79\160\x65\x3d\x22\x62\x75\164\164\157\156\x22\x20\166\x61\x6c\x75\x65\x3d\42\103\157\x6e\x66\x69\147\x75\162\145\x20\x41\164\164\162\x69\142\x75\x74\145\x2f\x52\x6f\154\145\40\x4d\x61\x70\x70\x69\156\147\x22\x20\157\x6e\x43\x6c\151\x63\153\x3d\x22\143\154\157\x73\x65\137\141\x6e\144\x5f\x72\145\144\x69\x72\145\143\164\50\51\73\42\76\x20\x26\x6e\142\x73\x70\73\40\xd\xa\40\40\x20\40\x20\40\x20\40\x20\40\x20\40\x20\x20\x20\x20\15\xa\40\x20\40\x20\x20\40\40\40\x20\40\x20\x20\x3c\x69\156\160\165\164\x20\163\x74\171\x6c\x65\x3d\42\x70\141\x64\144\151\x6e\147\x3a\x31\45\73\x77\151\x64\164\150\72\61\60\60\x70\x78\73\142\x61\143\x6b\x67\x72\157\165\x6e\x64\72\x20\43\x30\60\71\x31\103\x44\x20\156\157\x6e\x65\x20\162\145\x70\145\x61\x74\40\163\143\162\x6f\x6c\154\x20\60\45\40\60\x25\x3b\143\x75\x72\163\x6f\162\72\x20\160\157\151\x6e\x74\145\x72\73\x66\x6f\156\x74\55\x73\151\x7a\x65\72\x31\65\160\170\x3b\x62\x6f\162\x64\x65\x72\x2d\167\151\144\x74\150\72\40\61\160\170\73\x62\x6f\162\144\145\x72\55\163\164\x79\154\145\x3a\40\x73\x6f\x6c\151\x64\73\142\157\x72\144\x65\x72\55\162\x61\144\151\165\x73\x3a\40\x33\160\x78\x3b\167\x68\x69\164\x65\x2d\x73\160\x61\x63\x65\x3a\40\x6e\x6f\x77\162\x61\160\x3b\142\157\170\x2d\x73\151\x7a\x69\156\x67\72\40\142\157\162\144\145\162\55\x62\x6f\170\73\x62\x6f\162\x64\x65\162\55\143\x6f\x6c\157\x72\x3a\40\43\x30\x30\x37\x33\x41\101\73\142\x6f\x78\55\163\x68\141\x64\157\x77\72\x20\x30\x70\170\x20\x31\x70\x78\x20\x30\160\170\x20\x72\x67\142\x61\50\x31\x32\60\54\x20\62\x30\x30\54\x20\62\x33\x30\x2c\40\60\56\x36\51\x20\x69\156\163\145\x74\x3b\x63\157\154\157\162\72\x20\43\106\106\106\73\42\164\x79\160\x65\x3d\x22\x62\x75\164\164\157\156\x22\40\166\141\x6c\x75\x65\75\42\x44\157\x6e\145\x22\x20\x6f\x6e\x43\x6c\151\x63\153\x3d\x22\163\145\154\x66\56\143\154\157\x73\145\x28\x29\73\x22\x3e\74\x2f\144\x69\x76\76\15\12\x20\40\x20\x20\40\40\40\x20\40\x20\x20\40\40\40\40\x20\x20\x20\40\40\40\40\x20\40\40\40\x20\40\x20\x20\40\40\x3c\163\143\x72\151\160\x74\76\xd\xa\xd\xa\x20\x20\40\40\x20\40\x20\40\x20\x20\40\x20\146\165\x6e\143\164\x69\157\x6e\x20\x63\x6c\157\163\145\x5f\x61\156\144\x5f\x72\145\144\x69\x72\x65\x63\x74\x28\x29\x7b\15\xa\x20\40\x20\x20\40\x20\40\x20\x20\x20\x20\x20\x20\x20\x20\x20\x77\x69\156\x64\157\x77\x2e\x6f\x70\x65\x6e\145\162\x2e\162\x65\x64\151\x72\x65\143\x74\x5f\164\x6f\x5f\x61\164\x74\x72\151\142\165\x74\145\137\155\x61\x70\x70\151\156\x67\50\51\73\15\xa\40\40\x20\40\x20\40\x20\x20\40\40\x20\40\40\x20\x20\40\163\145\154\146\56\x63\154\157\163\145\x28\x29\x3b\15\12\x20\x20\40\x20\40\40\40\40\x20\40\x20\x20\175\xd\xa\40\x20\x20\40\x20\x20\x20\40\x20\40\x20\x20\xd\xa\40\x20\x20\x20\x20\40\40\x20\x20\40\x20\40\146\x75\156\x63\x74\151\x6f\156\40\162\145\146\162\145\163\x68\x50\x61\x72\145\x6e\164\50\x29\40\x7b\15\xa\x20\x20\x20\40\40\x20\x20\40\x20\40\40\40\40\40\x20\x20\167\x69\156\144\157\167\x2e\157\160\x65\x6e\145\x72\56\x6c\157\x63\x61\x74\x69\157\x6e\x2e\x72\x65\154\157\141\x64\50\x29\73\xd\12\40\x20\40\40\40\x20\40\40\40\x20\40\40\175\15\12\x20\x20\x20\x20\40\40\40\40\x20\x20\x20\x20\74\x2f\x73\143\162\151\x70\164\76";
    exit;
}

Function Calls

None

Variables

None

Stats

MD5 c6fbc7e477dd6e582ff6613ffdf3ddaa
Eval Count 0
Decode Time 38 ms