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_checkMapping($jG, $Na, $fC) { try { $Qd = get_site_option(..

Decoded Output download

<?  function mo_saml_checkMapping($jG, $Na, $fC) 
{ 
    try { 
        $Qd = get_site_option("saml_am_email"); 
        $ky = get_site_option("saml_am_username"); 
        $Ou = get_site_option("saml_am_first_name"); 
        $hP = get_site_option("saml_am_last_name"); 
        $fS = get_site_option("saml_am_group_name"); 
        $H2 = array(); 
        $H2 = maybe_unserialize(get_site_option("saml_am_role_mapping")); 
        $bK = get_site_option("saml_am_account_matcher"); 
        $P2 = ''; 
        $rV = ''; 
         
        if (empty($jG)) { 
            goto y60; 
        } 
        if (!empty($Ou) && !empty($jG[$Ou])) { 
            goto azH; 
        } 
        $Ou = ''; 
        goto m7X; 
        azH: 
        $Ou = $jG[$Ou][0]; 
        m7X: 
        if (!empty($hP) && !empty($jG[$hP])) { 
            goto XpD; 
        } 
        $hP = ''; 
        goto SEk; 
        XpD: 
        $hP = $jG[$hP][0]; 
        SEk: 
        if (!empty($ky) && !empty($jG[$ky])) { 
            goto SZL; 
        } 
        $rV = $jG["NameID"][0]; 
        goto xEH; 
        SZL: 
        $rV = $jG[$ky][0]; 
        xEH: 
        if (!empty($Qd) && !empty($jG[$Qd])) { 
            goto uVO; 
        } 
        $P2 = $jG["NameID"][0]; 
        goto m4X; 
        uVO: 
        $P2 = $jG[$Qd][0]; 
        m4X: 
        if (!empty($fS) && !empty($jG[$fS])) { 
            goto fK2; 
        } 
        $fS = array(); 
        goto CXZ; 
        fK2: 
        $fS = $jG[$fS]; 
        CXZ: 
        if (!empty($bK)) { 
            goto fi0; 
        } 
        $bK = "email"; 
        fi0: 
        y60: 
        if ($Na == "testValidate") { 
            goto PSL; 
        } 
        if ($Na == "testNewCertificate") { 
            goto RTh; 
        } 
        mo_saml_login_user($P2, $Ou, $hP, $rV, $fS, $H2, $Na, $bK, $fC, $jG["NameID"][0], $jG); 
        goto H1M; 
        PSL: 
        update_site_option("mo_saml_test", "Test Successful"); 
        mo_saml_show_test_result($Ou, $hP, $P2, $fS, $jG, $Na); 
        goto H1M; 
        RTh: 
        update_site_option("mo_saml_test_new_cert", "Test successful"); 
        mo_saml_show_test_result($Ou, $hP, $P2, $fS, $jG, $Na); 
        H1M: 
    } catch (Exception $J_) { 
        echo sprintf("An error occurred while processing the SAML Response."); 
        exit; 
    } 
} ?>

Did this file decode correctly?

Original Code

function mo_saml_checkMapping($jG, $Na, $fC)
{
    try {
        $Qd = get_site_option("\163\141\155\x6c\x5f\141\x6d\137\x65\155\141\151\x6c");
        $ky = get_site_option("\x73\141\x6d\154\x5f\141\x6d\x5f\165\x73\145\162\156\141\x6d\145");
        $Ou = get_site_option("\163\x61\x6d\x6c\x5f\141\155\x5f\146\x69\162\x73\164\x5f\x6e\x61\155\145");
        $hP = get_site_option("\x73\141\x6d\154\x5f\141\155\137\x6c\x61\163\164\137\x6e\x61\155\x65");
        $fS = get_site_option("\163\141\155\x6c\137\x61\155\x5f\x67\x72\x6f\x75\160\x5f\x6e\x61\155\145");
        $H2 = array();
        $H2 = maybe_unserialize(get_site_option("\163\x61\155\x6c\x5f\x61\x6d\x5f\x72\157\x6c\x65\x5f\155\141\160\x70\x69\156\147"));
        $bK = get_site_option("\x73\141\155\154\x5f\141\x6d\137\x61\143\143\157\x75\156\164\x5f\155\141\164\143\x68\145\162");
        $P2 = '';
        $rV = '';
        
        if (empty($jG)) {
            goto y60;
        }
        if (!empty($Ou) && !empty($jG[$Ou])) {
            goto azH;
        }
        $Ou = '';
        goto m7X;
        azH:
        $Ou = $jG[$Ou][0];
        m7X:
        if (!empty($hP) && !empty($jG[$hP])) {
            goto XpD;
        }
        $hP = '';
        goto SEk;
        XpD:
        $hP = $jG[$hP][0];
        SEk:
        if (!empty($ky) && !empty($jG[$ky])) {
            goto SZL;
        }
        $rV = $jG["\x4e\x61\x6d\x65\x49\x44"][0];
        goto xEH;
        SZL:
        $rV = $jG[$ky][0];
        xEH:
        if (!empty($Qd) && !empty($jG[$Qd])) {
            goto uVO;
        }
        $P2 = $jG["\116\x61\x6d\x65\111\104"][0];
        goto m4X;
        uVO:
        $P2 = $jG[$Qd][0];
        m4X:
        if (!empty($fS) && !empty($jG[$fS])) {
            goto fK2;
        }
        $fS = array();
        goto CXZ;
        fK2:
        $fS = $jG[$fS];
        CXZ:
        if (!empty($bK)) {
            goto fi0;
        }
        $bK = "\x65\155\141\151\154";
        fi0:
        y60:
        if ($Na == "\164\145\163\x74\x56\141\154\151\x64\x61\x74\x65") {
            goto PSL;
        }
        if ($Na == "\164\x65\163\164\x4e\x65\167\x43\145\x72\x74\x69\146\x69\x63\141\164\x65") {
            goto RTh;
        }
        mo_saml_login_user($P2, $Ou, $hP, $rV, $fS, $H2, $Na, $bK, $fC, $jG["\116\x61\155\x65\x49\x44"][0], $jG);
        goto H1M;
        PSL:
        update_site_option("\x6d\x6f\x5f\163\141\155\x6c\x5f\164\x65\x73\x74", "\124\145\163\x74\x20\123\165\x63\143\145\163\163\146\x75\x6c");
        mo_saml_show_test_result($Ou, $hP, $P2, $fS, $jG, $Na);
        goto H1M;
        RTh:
        update_site_option("\155\x6f\137\163\141\155\154\137\164\x65\163\x74\x5f\156\x65\x77\x5f\143\x65\x72\x74", "\x54\145\x73\x74\40\x73\x75\x63\143\x65\x73\163\146\165\x6c");
        mo_saml_show_test_result($Ou, $hP, $P2, $fS, $jG, $Na);
        H1M:
    } catch (Exception $J_) {
        echo sprintf("\x41\x6e\x20\145\x72\162\x6f\162\x20\157\x63\143\x75\x72\162\145\144\x20\167\150\x69\154\x65\x20\x70\x72\x6f\143\145\163\x73\151\x6e\x67\x20\x74\x68\145\x20\x53\101\x4d\x4c\40\122\145\163\x70\x6f\x6e\x73\x65\x2e");
        exit;
    }
}

Function Calls

None

Variables

None

Stats

MD5 35337f7a445ca45d70e73bcd515c72bd
Eval Count 0
Decode Time 52 ms