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

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace Drupal\miniorange_saml; use DOMElement; use Symfony\Component\Htt..

Decoded Output download

<?php 
 
 
namespace Drupal\miniorange_saml; 
 
use DOMElement; 
use Symfony\Component\HttpFoundation\RedirectResponse; 
class MiniOrangeAuthnRequest 
{ 
    public function initiateLogin($oR, $EH, $Fs, $St, $qy, $S5, $W2) 
    { 
        $Lb = Utilities::createAuthnRequest($oR, $Fs, $qy, $EH, $S5, "false"); 
        $this->sendSamlRequestByBindingType($Lb, $S5, $St, $EH, $W2); 
    } 
    function sendSamlRequestByBindingType($cl, $S5, $Ld, $BV, $W2) 
    { 
        if (empty($S5) || $S5 == "HTTP-Redirect") { 
            goto yq; 
        } 
        if ($W2) { 
            goto Gw; 
        } 
        $n4 = base64_encode($cl); 
        Utilities::postSAMLRequest($BV, $n4, $Ld); 
        exit; 
        Gw: 
        $jW = MiniorangeSAMLConstants::MINIORANGE_PRIVATE_KEY; 
        $w5 = MiniorangeSAMLConstants::MINIORANGE_PUBLIC_CERTIFICATE; 
        $n4 = Utilities::signXML($cl, $w5, $jW, "NameIDPolicy"); 
        Utilities::postSAMLRequest($BV, $n4, $Ld); 
        goto Tr; 
        yq: 
        $cl = "SAMLRequest=" . $cl . "&RelayState=" . $Ld; 
        $TB = array("type" => "private"); 
        $fy = new XMLSecurityKey(XMLSecurityKey::RSA_SHA256, $TB); 
        $Pv = MiniorangeSAMLConstants::MINIORANGE_PRIVATE_KEY; 
        $fy->loadKey($Pv, FALSE); 
        $pu = new XMLSecurityDSig(); 
        $OI = $fy->signData($cl); 
        $OI = base64_encode($OI); 
        $Py = $BV; 
        if (strpos($BV, "?") !== false) { 
            goto K6; 
        } 
        $Py .= "?"; 
        goto e7; 
        K6: 
        $Py .= "&"; 
        e7: 
        if ($W2) { 
            goto NK; 
        } 
        $Py .= $cl; 
        goto l0; 
        NK: 
        $Py .= $cl . "&SigAlg=" . urlencode(XMLSecurityKey::RSA_SHA256) . "&Signature=" . urlencode($OI); 
        l0: 
        $v9 = new RedirectResponse($Py); 
        $v9->send(); 
        Tr: 
    } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php


namespace Drupal\miniorange_saml;

use DOMElement;
use Symfony\Component\HttpFoundation\RedirectResponse;
class MiniOrangeAuthnRequest
{
    public function initiateLogin($oR, $EH, $Fs, $St, $qy, $S5, $W2)
    {
        $Lb = Utilities::createAuthnRequest($oR, $Fs, $qy, $EH, $S5, "\x66\x61\154\x73\x65");
        $this->sendSamlRequestByBindingType($Lb, $S5, $St, $EH, $W2);
    }
    function sendSamlRequestByBindingType($cl, $S5, $Ld, $BV, $W2)
    {
        if (empty($S5) || $S5 == "\110\124\x54\x50\55\x52\x65\144\151\162\x65\143\x74") {
            goto yq;
        }
        if ($W2) {
            goto Gw;
        }
        $n4 = base64_encode($cl);
        Utilities::postSAMLRequest($BV, $n4, $Ld);
        exit;
        Gw:
        $jW = MiniorangeSAMLConstants::MINIORANGE_PRIVATE_KEY;
        $w5 = MiniorangeSAMLConstants::MINIORANGE_PUBLIC_CERTIFICATE;
        $n4 = Utilities::signXML($cl, $w5, $jW, "\x4e\141\155\145\x49\x44\x50\x6f\154\x69\x63\x79");
        Utilities::postSAMLRequest($BV, $n4, $Ld);
        goto Tr;
        yq:
        $cl = "\x53\101\x4d\x4c\122\145\161\x75\145\163\164\x3d" . $cl . "\x26\122\145\x6c\141\171\123\164\141\164\145\75" . $Ld;
        $TB = array("\x74\171\160\x65" => "\x70\162\x69\x76\x61\x74\x65");
        $fy = new XMLSecurityKey(XMLSecurityKey::RSA_SHA256, $TB);
        $Pv = MiniorangeSAMLConstants::MINIORANGE_PRIVATE_KEY;
        $fy->loadKey($Pv, FALSE);
        $pu = new XMLSecurityDSig();
        $OI = $fy->signData($cl);
        $OI = base64_encode($OI);
        $Py = $BV;
        if (strpos($BV, "\77") !== false) {
            goto K6;
        }
        $Py .= "\x3f";
        goto e7;
        K6:
        $Py .= "\46";
        e7:
        if ($W2) {
            goto NK;
        }
        $Py .= $cl;
        goto l0;
        NK:
        $Py .= $cl . "\46\123\151\147\101\154\x67\x3d" . urlencode(XMLSecurityKey::RSA_SHA256) . "\x26\x53\x69\x67\156\141\164\165\x72\145\x3d" . urlencode($OI);
        l0:
        $v9 = new RedirectResponse($Py);
        $v9->send();
        Tr:
    }
}

Function Calls

None

Variables

None

Stats

MD5 8c303227fabbba09222ed6da06cc4cdb
Eval Count 0
Decode Time 53 ms