Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

$M2 = Utilities::xpQuery($rn, "\56\57\163\x61\155\154\137\x61\x73\x73\x65\162\x74\x69\x6f\..

Decoded Output download

<?  $M2 = Utilities::xpQuery($rn, "./saml_assertion:AttributeStatement/saml_assertion:Attribute"); 
        foreach ($M2 as $Yt) { 
            if ($Yt->hasAttribute("Name")) { 
                goto CO; 
            } 
            throw new Exception("Missing name on <saml:Attribute> element."); 
            CO: 
            $Cx = $Yt->getAttribute("Name"); 
            if ($Yt->hasAttribute("NameFormat")) { 
                goto a_; 
            } 
            $lj = "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified"; 
            goto mt; 
            a_: 
            $lj = $Yt->getAttribute("NameFormat"); 
            mt: 
            if ($HQ) { 
                goto Dx; 
            } 
            if (!($this->nameFormat !== $lj)) { 
                goto l5; 
            } 
            $this->nameFormat = "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified"; 
            l5: 
            goto Oz; 
            Dx: 
            $this->nameFormat = $lj; 
            $HQ = FALSE; 
            Oz: 
            if (array_key_exists($Cx, $this->attributes)) { 
                goto fe; 
            } 
            $this->attributes[$Cx] = array(); 
            fe: 
            $Z9 = Utilities::xpQuery($Yt, "./saml_assertion:AttributeValue"); 
            foreach ($Z9 as $Vz) { 
                $this->attributes[$Cx][] = trim($Vz->textContent); 
                gk: 
            } 
            gz: 
            fK: 
        } 
        AV: ?>

Did this file decode correctly?

Original Code

$M2 = Utilities::xpQuery($rn, "\56\57\163\x61\155\154\137\x61\x73\x73\x65\162\x74\x69\x6f\156\72\x41\164\164\162\x69\x62\x75\164\145\x53\164\141\164\x65\x6d\145\x6e\x74\57\x73\x61\x6d\x6c\137\141\x73\163\x65\x72\164\151\x6f\x6e\72\x41\x74\164\x72\151\x62\x75\164\145");
        foreach ($M2 as $Yt) {
            if ($Yt->hasAttribute("\116\141\155\x65")) {
                goto CO;
            }
            throw new Exception("\x4d\151\x73\x73\x69\x6e\x67\40\156\141\x6d\x65\x20\157\x6e\40\x3c\x73\141\x6d\x6c\72\x41\164\x74\x72\x69\142\x75\164\145\x3e\x20\x65\x6c\145\x6d\145\156\x74\56");
            CO:
            $Cx = $Yt->getAttribute("\116\141\x6d\x65");
            if ($Yt->hasAttribute("\x4e\141\x6d\x65\x46\x6f\162\155\141\x74")) {
                goto a_;
            }
            $lj = "\x75\162\156\x3a\157\141\163\151\x73\72\x6e\141\x6d\145\163\72\164\x63\x3a\x53\x41\115\114\72\61\56\61\x3a\156\141\155\145\151\x64\55\146\157\162\155\x61\x74\72\x75\156\x73\x70\145\x63\x69\146\x69\x65\144";
            goto mt;
            a_:
            $lj = $Yt->getAttribute("\116\x61\155\x65\106\157\162\x6d\141\164");
            mt:
            if ($HQ) {
                goto Dx;
            }
            if (!($this->nameFormat !== $lj)) {
                goto l5;
            }
            $this->nameFormat = "\165\x72\156\72\157\141\163\151\163\x3a\156\x61\x6d\x65\x73\x3a\164\x63\72\123\x41\x4d\x4c\x3a\61\56\61\x3a\x6e\x61\155\145\x69\x64\55\x66\157\162\x6d\141\x74\x3a\165\156\163\160\145\143\151\146\151\145\144";
            l5:
            goto Oz;
            Dx:
            $this->nameFormat = $lj;
            $HQ = FALSE;
            Oz:
            if (array_key_exists($Cx, $this->attributes)) {
                goto fe;
            }
            $this->attributes[$Cx] = array();
            fe:
            $Z9 = Utilities::xpQuery($Yt, "\x2e\57\163\141\155\x6c\137\141\163\x73\145\x72\x74\151\157\156\x3a\x41\x74\x74\x72\151\142\165\x74\x65\x56\141\154\165\x65");
            foreach ($Z9 as $Vz) {
                $this->attributes[$Cx][] = trim($Vz->textContent);
                gk:
            }
            gz:
            fK:
        }
        AV:

Function Calls

None

Variables

None

Stats

MD5 9cd256f9d4b74e4ffd556dc3d0fda278
Eval Count 0
Decode Time 92 ms