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\Controller; use Drupal\miniorange_saml\Mini..
Decoded Output download
<?php
namespace Drupal\miniorange_saml\Controller;
use Drupal\miniorange_saml\MiniorangeSAMLCustomer;
use Drupal\user\Entity\User;
use Drupal\Core\Form\FormBuilder;
use Drupal\Component\Utility\Xss;
use Drupal\Core\Ajax\AjaxResponse;
use Drupal\miniorange_saml\Utilities;
use Drupal\miniorange_saml\AESEncryption;
use Drupal\miniorange_saml\MiniOrangeAcs;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Ajax\OpenModalDialogCommand;
use Symfony\Component\HttpFoundation\Response;
use Drupal\miniorange_saml\MiniOrangeAuthnRequest;
use Drupal\miniorange_saml\MiniorangeSAMLConstants;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\DependencyInjection\ContainerInterface;
class miniorange_samlController extends ControllerBase
{
protected $formBuilder;
public function __construct(FormBuilder $oW)
{
$this->formBuilder = $oW;
}
public static function saml_login()
{
$jF = Utilities::getBaseUrl();
$GI = \Drupal::config("miniorange_saml.settings")->get("miniorange_saml_enable_login");
$St = \Drupal::config("miniorange_saml.settings")->get("miniorange_saml_default_relaystate");
if ($GI) {
goto LY;
}
\Drupal::messenger()->addMessage(t("Please enable <b>Login with SAML</b> to initiate the SSO."), "error");
return new RedirectResponse($jF);
goto VH;
LY:
\Drupal::service("page_cache_kill_switch")->trigger();
$fh = Utilities::getSpIssuer();
$Gl = \Drupal::config("miniorange_saml.settings")->get("miniorange_saml_request_signed");
$ow = \Drupal::config("miniorange_saml.settings")->get("miniorange_saml_http_binding");
$ia = \Drupal::config("miniorange_saml.settings")->get("current_link");
if (!empty($St)) {
goto n9;
}
$St = isset($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : $jF;
n9:
if (!empty($St)) {
goto qq;
}
$St = $ia;
\Drupal::configFactory()->getEditable("miniorange_saml.settings")->set("current_link", '')->save();
qq:
if (!isset($_GET["q"])) {
goto Ep;
}
$St = $St . "/" . $_GET["q"];
Ep:
$oR = $jF . "/samlassertion";
$EH = \Drupal::config("miniorange_saml.settings")->get("miniorange_saml_idp_login_url");
$qy = \Drupal::config("miniorange_saml.settings")->get("miniorange_saml_nameid_format");
$rN = new MiniOrangeAuthnRequest();
$rN->initiateLogin($oR, $EH, $fh, $St, $qy, $ow, $Gl);
return new Response();
VH:
}
public static function create(ContainerInterface $N1)
{
return new static($N1->get("form_builder"));
}
public function saml_response()
{
$kF = Utilities::getBaseUrl();
$oR = $kF . "/samlassertion";
$uM = \Drupal::config("miniorange_saml.settings")->get("miniorange_saml_idp_certificate");
$Fs = \Drupal::config("miniorange_saml.settings")->get("miniorange_saml_idp_issuer");
$Cz = Utilities::getSpIssuer();
$M1 = \Drupal::config("miniorange_saml.settings")->get("miniorange_saml_username_attribute");
if (isset($_GET["SAMLResponse"])) {
goto QF;
}
$DP = array();
$Jr = array();
$Jr = \Drupal::config("miniorange_saml.settings")->get("rolemap");
$Bm = new MiniOrangeAcs();
$G6 = \Drupal::config("miniorange_saml.settings")->get("minorange_saml_customer_admin_fraud_check");
$F8 = \Drupal::config("miniorange_saml.settings")->get("miniorange_saml_customer_admin_token");
$AR = \Drupal::config("miniorange_saml.settings")->get("miniorange_saml_customer_admin_email");
global $base_url;
global $C1;
$Sz = $_SERVER["DOCUMENT_ROOT"] . $C1;
$Dl = trim($base_url, "/");
if (preg_match("#^http(s)?://#", $Dl)) {
goto hS;
}
$Dl = "http://" . $Dl;
hS:
$Pu = parse_url($Dl);
$Bx = isset($Pu["path"]) ? $Pu["path"] : '';
$HT = preg_replace("/^www\./", '', $Pu["host"] . $Bx);
$xN = $Sz . $HT;
if (($xN == AESEncryption::decrypt_data($G6, $F8) || $xN == AESEncryption::decrypt_data($G6, $F8, "AES-128-ECB")) && $AR != null && $AR != '') {
goto FQ;
}
if ($AR != null && $AR != '') {
goto Di;
}
if (!($AR == null || $AR == '')) {
goto kL;
}
$q6 = "You are not logged in.";
$Kq = "Please login first to activate single sign on.";
$EK = "Make sure you have logged in/ Register in to module.";
Utilities::showErrorMessage($q6, $Kq, $EK);
kL:
goto RK;
Di:
if (isset($_POST["RelayState"]) && $_POST["RelayState"] == "testValidate") {
goto bD;
}
$q6 = "We could not sign you in.";
$Kq = "Please Contact your administrator.";
Utilities::showErrorMessage($q6, $Kq, "-");
goto KL;
bD:
$q6 = "License key you have entered has already been used.";
$Kq = "Please enter a key which has not been used before on any other instance or if you have exausted all your keys then buy more license from Licensing.";
Utilities::showErrorMessage($q6, $Kq, "-");
KL:
RK:
goto TJ;
FQ:
$v9 = $Bm->processSamlResponse($_POST, $oR, $uM, $Fs, $kF, $Cz, $M1, $DP, $Jr);
TJ:
$zx = user_load_by_name($v9["username"]);
$iX = \Drupal::config("miniorange_saml.settings")->get("miniorange_saml_default_role");
if (!($zx == NULL)) {
goto hV;
}
$nJ = \Drupal::config("miniorange_saml.settings")->get("miniorange_saml_disable_autocreate_users");
if ($nJ) {
goto Ln;
}
$aG = \Drupal::service("password_generator")->generate(8);
$aY = ["name" => $v9["username"], "mail" => $v9["email"], "pass" => $aG, "status" => 1];
$zx = User::create($aY);
$zx->save();
$hr = \Drupal::entityTypeManager()->getStorage("user_role")->loadMultiple();
$bD = array();
foreach ($hr as $fy => $Wo) {
$bD[$fy] = strtolower($Wo->label());
G8:
}
UX:
foreach ($bD as $Sq => $r2) {
if (!($r2 == strtolower($iX))) {
goto D8;
}
$ae = $Sq;
D8:
jq:
}
ci:
if (!(isset($ae) && $ae != "authenticated")) {
goto GB;
}
$zx->addRole($ae);
$zx->save();
GB:
goto sE;
Ln:
$q6 = "Account does not exist with your username.";
$Kq = "Please Contact your administrator.";
$EK = "Auto creation of user is not allowed if user does not exist.";
Utilities::showErrorMessage($q6, $Kq, $EK);
sE:
hV:
if (user_is_blocked($v9["username"]) == FALSE) {
goto PO;
}
$q6 = "User Blocked By Administrator.";
$Kq = "Please Contact your administrator.";
$EK = "This user account is not allowed to login.";
Utilities::showErrorMessage($q6, $Kq, $EK);
goto Xm;
PO:
if (!(array_key_exists("relay_state", $v9) && !empty($v9["relay_state"]))) {
goto I7;
}
$sE = $v9["relay_state"];
I7:
if (!(empty($sE) || $sE == "/")) {
goto OL;
}
$sE = $kF;
OL:
$_SESSION["sessionIndex"] = $v9["sessionIndex"];
$_SESSION["NameID"] = $v9["NameID"];
$_SESSION["mo_saml"]["logged_in_with_idp"] = TRUE;
\Drupal::moduleHandler()->invokeAll("invoke_miniorange_2fa_before_login", [$zx]);
user_login_finalize($zx);
$v9 = new RedirectResponse($sE);
$Xl = \Drupal::request();
$Xl->getSession()->save();
$v9->prepare($Xl);
\Drupal::service("kernel")->terminate($Xl, $v9);
$v9->send();
exit;
return new Response();
Xm:
goto Nc;
QF:
$Xl = \Drupal::request();
$Xl->getSession()->clear();
$v9 = new RedirectResponse($kF);
$v9->send();
return new Response();
Nc:
return new Response();
}
function test_configuration()
{
$kF = Utilities::getBaseUrl();
$Ld = "testValidate";
$BV = \Drupal::config("miniorange_saml.settings")->get("miniorange_saml_idp_login_url");
$EA = $kF . "/samlassertion";
$Fs = Utilities::getSpIssuer();
$Gl = \Drupal::config("miniorange_saml.settings")->get("miniorange_saml_request_signed");
$ow = \Drupal::config("miniorange_saml.settings")->get("miniorange_saml_http_binding");
$qy = \Drupal::config("miniorange_saml.settings")->get("miniorange_saml_nameid_format");
$cl = Utilities::createAuthnRequest($EA, $Fs, $qy, $BV, $ow, "false");
$rN = new MiniOrangeAuthnRequest();
$rN->sendSamlRequestByBindingType($cl, $ow, $Ld, $BV, $Gl);
return new Response();
}
function saml_request()
{
$jF = Utilities::getBaseUrl();
$BV = \Drupal::config("miniorange_saml.settings")->get("miniorange_saml_idp_login_url");
$qy = \Drupal::config("miniorange_saml.settings")->get("miniorange_saml_nameid_format");
$oR = $jF . "/showSAMLRequest";
$CG = Utilities::createSAMLRequest($oR, Utilities::getSpIssuer(), $BV, $qy);
$Ld = "displaySAMLRequest";
Utilities::Print_SAML_Request($CG, $Ld);
return new Response();
}
function saml_response_generator()
{
$jF = Utilities::getBaseUrl();
$Fs = Utilities::getSpIssuer();
$Ld = "showSamlResponse";
$EA = $jF . "/samlassertion";
$BV = \Drupal::config("miniorange_saml.settings")->get("miniorange_saml_idp_login_url");
$qy = \Drupal::config("miniorange_saml.settings")->get("miniorange_saml_nameid_format");
$ow = \Drupal::config("miniorange_saml.settings")->get("miniorange_saml_http_binding");
$cl = Utilities::createAuthnRequest($EA, $Fs, $qy, $BV, $ow, "false");
$Py = $BV;
if (strpos($BV, "?") !== false) {
goto zG;
}
$Py .= "?";
goto Sy;
zG:
$Py .= "&";
Sy:
if ($ow == "HTTP-Redirect") {
goto xK;
}
Utilities::postSAMLRequest($BV, base64_encode($cl), $Ld);
goto e2;
xK:
$Py .= "SAMLRequest=" . $cl . "&RelayState=" . urlencode($Ld);
$v9 = new RedirectResponse($Py);
$v9->send();
e2:
return new Response();
}
public function openModalForm()
{
$v9 = new AjaxResponse();
$kO = $this->formBuilder->getForm("\Drupal\miniorange_saml\Form\MiniorangeSAMLRemoveLicense");
$v9->addCommand(new OpenModalDialogCommand("Remove License Key", $kO, ["width" => "800"]));
return $v9;
}
public static function moLicenseFetch($bQ = "fetchLicenseManually")
{
global $base_url;
$AR = \Drupal::config("miniorange_saml.settings")->get("miniorange_saml_customer_admin_email");
$Zq = new MiniorangeSAMLCustomer($AR, NULL, NULL, NULL);
$wj = $Zq->ccl() !== NULL ? $Zq->ccl() : [];
if (!empty($wj)) {
goto UC;
}
if ($bQ == "fetchLicenseManually") {
goto ay;
}
\Drupal::logger("miniorange_saml")->error("Something went wrong while fetching license update in " . __FUNCTION__ . " (line " . __LINE__ . " of " . __FILE__ . ")");
return;
goto Vr;
ay:
\Drupal::messenger()->addError(t("Something went wrong while fetching license update"));
$v9 = new RedirectResponse($base_url . "/admin/config/people/miniorange_saml/customer_setup");
return $v9->send();
Vr:
UC:
Utilities::mo_save_expiry_details($wj);
$Gz = \Drupal::config("miniorange_saml.settings")->get("miniorange_maintenance_expiry");
$KW = Utilities::getIsLicenseExpired($Gz);
if (!($KW["LicenseAlreadyExpired"] == true)) {
goto Ij;
}
\Drupal::logger("miniorange_saml")->error("Your miniOrange SAML SP module maintenance has expired. This has prevented you from receiving any module updates containing bug fixes, new features, and even compatibility changes. Please contact us on <a href ="[email protected]">[email protected]</a> to renew your maintenance.");
Ij:
if (!($bQ == "fetchLicenseManually")) {
goto ly;
}
\Drupal::messenger()->addStatus(t("Successfully fetched the license details"));
$v9 = new RedirectResponse($base_url . "/admin/config/people/miniorange_saml/customer_setup");
return $v9->send();
ly:
}
function saml_metadata()
{
$kF = Utilities::getBaseUrl();
$nb = Utilities::getSpIssuer();
$oR = $kF . "/samlassertion";
$lD = MiniorangeSAMLConstants::MINIORANGE_PUBLIC_CERTIFICATE;
$Ii = preg_replace("/[\xd\xa]+/", '', $lD);
$Ii = str_replace("-----BEGIN CERTIFICATE-----", '', $Ii);
$Ii = str_replace("-----END CERTIFICATE-----", '', $Ii);
$Ii = str_replace(" ", '', $Ii);
$kD = Utilities::getMetadataValidationTime();
if (isset($_REQUEST["downloadCertificate"]) && $_REQUEST["downloadCertificate"] && boolval($_REQUEST["downloadCertificate"])) {
goto np;
}
if (isset($_REQUEST["download"]) && $_REQUEST["download"] && boolval($_REQUEST["download"])) {
goto cP;
}
$ij = "Content-Type: text/xml";
goto V7;
np:
$ij = "Content-Disposition: attachment; filename="sp-certificate.crt"";
header($ij);
echo xss::filter($lD);
exit;
goto V7;
cP:
$ij = "Content-Disposition: attachment; filename="Metadata.xml"";
V7:
header($ij);
echo "<?xml version="1.0"?>\xd
<md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" validUntil="" . $kD . "" cacheDuration="PT" . MiniorangeSAMLConstants::TIME_CACHED . "S" entityID="" . xss::filter($nb) . "">
\xa <md:SPSSODescriptor AuthnRequestsSigned="true" WantAssertionsSigned="true" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">\xd
<md:KeyDescriptor use="signing">
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:X509Data>
<ds:X509Certificate>" . xss::filter($Ii) . "</ds:X509Certificate>\xd
</ds:X509Data>\xd\xa </ds:KeyInfo>\xd
</md:KeyDescriptor>
\xa <md:KeyDescriptor use="encryption">
\xa <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:X509Data>
\xa <ds:X509Certificate>" . xss::filter($Ii) . "</ds:X509Certificate>\xd
</ds:X509Data>
\xa </ds:KeyInfo>
</md:KeyDescriptor>
\xa <md:NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress</md:NameIDFormat>
\xa <md:NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:unspecified</md:NameIDFormat>
<md:NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:transient</md:NameIDFormat>\xd\xa <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="" . xss::filter($oR) . "" index="1"/>
</md:SPSSODescriptor>\xd
<md:Organization>\xd\xa <md:OrganizationName xml:lang="en-US">miniOrange</md:OrganizationName>\xd\xa <md:OrganizationDisplayName xml:lang="en-US">miniOrange</md:OrganizationDisplayName>
\xa <md:OrganizationURL xml:lang="en-US">https://miniorange.com</md:OrganizationURL>
\xa </md:Organization>\xd
<md:ContactPerson contactType="technical">
\xa <md:GivenName>miniOrange</md:GivenName>\xd
<md:EmailAddress>[email protected]</md:EmailAddress>
\xa </md:ContactPerson>
\xa <md:ContactPerson contactType="support">\xd\xa <md:GivenName>miniOrange</md:GivenName>\xd
<md:EmailAddress>[email protected]</md:EmailAddress>
\xa </md:ContactPerson>
\xa </md:EntityDescriptor>";
exit;
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Drupal\miniorange_saml\Controller;
use Drupal\miniorange_saml\MiniorangeSAMLCustomer;
use Drupal\user\Entity\User;
use Drupal\Core\Form\FormBuilder;
use Drupal\Component\Utility\Xss;
use Drupal\Core\Ajax\AjaxResponse;
use Drupal\miniorange_saml\Utilities;
use Drupal\miniorange_saml\AESEncryption;
use Drupal\miniorange_saml\MiniOrangeAcs;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Ajax\OpenModalDialogCommand;
use Symfony\Component\HttpFoundation\Response;
use Drupal\miniorange_saml\MiniOrangeAuthnRequest;
use Drupal\miniorange_saml\MiniorangeSAMLConstants;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\DependencyInjection\ContainerInterface;
class miniorange_samlController extends ControllerBase
{
protected $formBuilder;
public function __construct(FormBuilder $oW)
{
$this->formBuilder = $oW;
}
public static function saml_login()
{
$jF = Utilities::getBaseUrl();
$GI = \Drupal::config("\x6d\151\156\x69\157\x72\x61\156\x67\x65\x5f\x73\141\155\154\56\x73\x65\164\x74\151\156\147\x73")->get("\x6d\151\x6e\151\157\162\x61\156\147\x65\137\163\141\155\x6c\x5f\145\156\141\142\154\145\x5f\x6c\157\x67\x69\x6e");
$St = \Drupal::config("\x6d\151\x6e\x69\157\162\141\156\x67\x65\x5f\x73\x61\x6d\x6c\56\163\x65\x74\164\x69\x6e\147\x73")->get("\x6d\x69\x6e\151\x6f\x72\x61\x6e\147\x65\x5f\x73\141\155\154\137\144\145\146\x61\165\154\164\137\162\x65\x6c\141\x79\163\x74\141\164\145");
if ($GI) {
goto LY;
}
\Drupal::messenger()->addMessage(t("\120\x6c\x65\141\163\x65\40\145\156\141\142\154\x65\x20\74\x62\76\x4c\x6f\147\x69\156\x20\x77\x69\x74\150\40\x53\101\x4d\x4c\74\x2f\142\x3e\x20\x74\157\40\151\156\x69\164\x69\x61\164\x65\40\x74\x68\145\x20\123\x53\117\x2e"), "\145\162\162\x6f\x72");
return new RedirectResponse($jF);
goto VH;
LY:
\Drupal::service("\x70\141\147\x65\x5f\x63\x61\143\x68\145\137\x6b\151\x6c\154\137\163\167\x69\x74\143\x68")->trigger();
$fh = Utilities::getSpIssuer();
$Gl = \Drupal::config("\x6d\151\x6e\151\157\162\141\x6e\147\145\137\163\141\155\x6c\x2e\163\145\x74\164\x69\156\x67\163")->get("\x6d\151\156\x69\157\x72\141\156\147\145\x5f\x73\x61\155\154\x5f\162\145\x71\165\145\x73\x74\137\163\151\x67\x6e\145\144");
$ow = \Drupal::config("\155\151\156\x69\157\x72\x61\156\x67\145\137\x73\141\x6d\x6c\x2e\163\145\x74\x74\x69\156\147\x73")->get("\155\x69\x6e\151\x6f\162\141\x6e\147\x65\137\x73\x61\155\154\x5f\150\164\164\x70\137\142\151\156\144\151\x6e\147");
$ia = \Drupal::config("\x6d\x69\156\151\x6f\162\x61\156\147\x65\137\163\141\155\154\56\x73\145\164\x74\151\156\x67\x73")->get("\x63\165\162\x72\145\x6e\x74\137\154\x69\x6e\153");
if (!empty($St)) {
goto n9;
}
$St = isset($_SERVER["\x48\x54\x54\120\x5f\x52\x45\x46\x45\x52\x45\122"]) ? $_SERVER["\x48\124\x54\120\137\122\105\106\105\x52\105\x52"] : $jF;
n9:
if (!empty($St)) {
goto qq;
}
$St = $ia;
\Drupal::configFactory()->getEditable("\155\151\156\151\x6f\x72\x61\156\x67\145\x5f\163\141\x6d\154\56\x73\145\x74\164\x69\156\147\x73")->set("\143\165\162\162\145\156\x74\x5f\x6c\151\156\x6b", '')->save();
qq:
if (!isset($_GET["\161"])) {
goto Ep;
}
$St = $St . "\x2f" . $_GET["\161"];
Ep:
$oR = $jF . "\57\163\x61\x6d\154\141\x73\x73\145\x72\164\151\x6f\156";
$EH = \Drupal::config("\155\x69\156\x69\x6f\162\141\156\147\x65\x5f\x73\141\155\x6c\56\163\x65\x74\x74\x69\x6e\x67\163")->get("\155\x69\156\x69\x6f\x72\x61\x6e\147\145\x5f\163\141\x6d\154\x5f\x69\144\x70\x5f\154\157\x67\151\x6e\137\x75\x72\x6c");
$qy = \Drupal::config("\x6d\x69\156\x69\x6f\162\x61\156\147\145\x5f\x73\x61\155\154\x2e\x73\x65\164\x74\151\x6e\147\163")->get("\155\151\x6e\151\x6f\162\x61\156\147\x65\137\x73\141\x6d\154\x5f\x6e\141\x6d\x65\x69\x64\137\146\x6f\x72\x6d\141\164");
$rN = new MiniOrangeAuthnRequest();
$rN->initiateLogin($oR, $EH, $fh, $St, $qy, $ow, $Gl);
return new Response();
VH:
}
public static function create(ContainerInterface $N1)
{
return new static($N1->get("\146\157\162\155\x5f\142\165\x69\154\x64\145\x72"));
}
public function saml_response()
{
$kF = Utilities::getBaseUrl();
$oR = $kF . "\x2f\163\141\x6d\154\141\x73\x73\145\162\x74\151\157\156";
$uM = \Drupal::config("\155\151\x6e\x69\157\162\x61\x6e\x67\145\137\x73\x61\x6d\x6c\x2e\x73\x65\x74\x74\151\156\x67\163")->get("\x6d\151\x6e\151\x6f\x72\x61\156\x67\145\137\x73\x61\x6d\154\137\151\144\x70\x5f\x63\x65\x72\164\x69\146\151\143\x61\x74\145");
$Fs = \Drupal::config("\x6d\151\x6e\x69\157\x72\141\156\147\x65\x5f\163\x61\x6d\x6c\56\x73\145\x74\x74\x69\156\147\163")->get("\155\151\156\x69\x6f\162\x61\x6e\147\x65\x5f\163\141\155\154\x5f\151\x64\160\137\151\x73\163\x75\x65\x72");
$Cz = Utilities::getSpIssuer();
$M1 = \Drupal::config("\155\151\156\x69\157\x72\141\156\147\145\x5f\x73\141\155\154\56\x73\x65\x74\x74\x69\156\x67\x73")->get("\x6d\x69\x6e\151\157\x72\x61\156\147\145\x5f\x73\x61\155\x6c\137\x75\163\145\162\x6e\x61\155\145\137\x61\164\x74\162\x69\x62\x75\x74\x65");
if (isset($_GET["\x53\101\x4d\114\122\x65\x73\160\x6f\156\x73\145"])) {
goto QF;
}
$DP = array();
$Jr = array();
$Jr = \Drupal::config("\155\151\x6e\151\157\162\x61\156\x67\145\x5f\x73\x61\x6d\x6c\x2e\163\x65\164\x74\x69\156\x67\163")->get("\162\x6f\x6c\x65\x6d\x61\x70");
$Bm = new MiniOrangeAcs();
$G6 = \Drupal::config("\155\x69\156\151\157\x72\141\156\147\x65\x5f\163\141\x6d\154\x2e\x73\145\x74\x74\151\156\x67\163")->get("\x6d\x69\156\x6f\x72\141\156\147\x65\x5f\163\x61\155\154\x5f\143\x75\x73\164\x6f\x6d\x65\x72\x5f\141\144\x6d\151\156\137\x66\162\141\165\x64\137\x63\x68\x65\x63\x6b");
$F8 = \Drupal::config("\x6d\x69\x6e\151\157\162\x61\x6e\147\x65\x5f\x73\x61\x6d\x6c\56\163\145\164\x74\151\156\147\163")->get("\155\x69\x6e\x69\157\x72\x61\x6e\x67\145\x5f\163\141\x6d\x6c\137\143\165\x73\x74\157\x6d\x65\x72\137\x61\144\x6d\151\156\137\164\x6f\153\x65\x6e");
$AR = \Drupal::config("\155\x69\x6e\x69\157\x72\141\156\147\x65\x5f\163\x61\x6d\x6c\56\x73\x65\x74\x74\151\156\x67\x73")->get("\155\151\x6e\151\157\162\x61\156\x67\145\137\x73\x61\x6d\154\x5f\x63\165\x73\x74\x6f\155\145\x72\x5f\141\144\155\151\x6e\x5f\145\x6d\141\x69\154");
global $base_url;
global $C1;
$Sz = $_SERVER["\104\117\103\x55\x4d\105\x4e\x54\137\x52\117\117\x54"] . $C1;
$Dl = trim($base_url, "\x2f");
if (preg_match("\43\x5e\x68\x74\x74\160\50\x73\51\x3f\x3a\x2f\57\x23", $Dl)) {
goto hS;
}
$Dl = "\x68\164\x74\x70\72\x2f\x2f" . $Dl;
hS:
$Pu = parse_url($Dl);
$Bx = isset($Pu["\x70\141\x74\150"]) ? $Pu["\160\141\164\x68"] : '';
$HT = preg_replace("\57\x5e\x77\167\167\x5c\x2e\57", '', $Pu["\150\x6f\x73\164"] . $Bx);
$xN = $Sz . $HT;
if (($xN == AESEncryption::decrypt_data($G6, $F8) || $xN == AESEncryption::decrypt_data($G6, $F8, "\101\x45\x53\x2d\x31\62\x38\55\x45\103\x42")) && $AR != null && $AR != '') {
goto FQ;
}
if ($AR != null && $AR != '') {
goto Di;
}
if (!($AR == null || $AR == '')) {
goto kL;
}
$q6 = "\131\x6f\x75\x20\141\162\x65\40\x6e\157\164\x20\x6c\x6f\x67\x67\145\144\x20\151\156\x2e";
$Kq = "\x50\x6c\x65\x61\163\145\40\154\157\147\151\156\x20\x66\151\162\x73\x74\x20\164\157\x20\x61\143\164\151\x76\x61\x74\145\x20\x73\151\156\147\154\x65\x20\163\151\x67\156\x20\157\156\x2e";
$EK = "\115\141\153\x65\40\163\x75\162\145\x20\x79\157\x75\40\150\141\x76\x65\40\154\x6f\147\147\x65\x64\40\151\156\57\40\122\145\147\x69\163\164\x65\x72\x20\x69\156\x20\x74\157\40\155\157\144\165\154\x65\56";
Utilities::showErrorMessage($q6, $Kq, $EK);
kL:
goto RK;
Di:
if (isset($_POST["\122\x65\154\141\171\123\164\141\x74\145"]) && $_POST["\122\145\154\141\x79\123\x74\x61\164\x65"] == "\x74\x65\x73\x74\126\141\154\x69\144\141\164\145") {
goto bD;
}
$q6 = "\x57\x65\40\143\x6f\165\154\x64\40\156\x6f\x74\x20\163\x69\147\x6e\x20\x79\157\x75\40\x69\156\56";
$Kq = "\120\154\145\141\163\145\40\103\157\x6e\x74\x61\x63\x74\x20\171\x6f\165\162\40\x61\x64\x6d\x69\156\151\x73\x74\162\141\x74\x6f\162\x2e";
Utilities::showErrorMessage($q6, $Kq, "\55");
goto KL;
bD:
$q6 = "\114\151\143\x65\x6e\x73\145\x20\x6b\x65\x79\x20\171\157\165\40\x68\x61\x76\145\40\145\156\164\x65\162\x65\144\x20\x68\x61\163\x20\141\154\x72\x65\141\144\x79\40\x62\145\x65\x6e\x20\165\163\x65\x64\x2e";
$Kq = "\120\x6c\145\141\x73\x65\x20\145\x6e\164\x65\162\40\141\x20\x6b\x65\x79\x20\167\x68\151\x63\x68\40\150\x61\x73\x20\156\x6f\164\x20\142\145\x65\x6e\40\165\x73\x65\144\x20\x62\x65\146\157\162\145\x20\157\x6e\x20\x61\156\x79\x20\x6f\164\150\x65\x72\x20\151\156\163\x74\x61\x6e\143\145\40\157\x72\x20\x69\x66\x20\171\157\x75\x20\x68\141\166\145\x20\x65\x78\x61\165\x73\x74\x65\x64\40\x61\154\154\40\171\157\165\162\x20\x6b\145\171\163\40\x74\x68\145\x6e\40\142\x75\171\40\155\157\x72\x65\40\154\151\143\145\x6e\163\145\x20\146\x72\x6f\155\40\x4c\x69\143\145\156\x73\151\156\147\56";
Utilities::showErrorMessage($q6, $Kq, "\x2d");
KL:
RK:
goto TJ;
FQ:
$v9 = $Bm->processSamlResponse($_POST, $oR, $uM, $Fs, $kF, $Cz, $M1, $DP, $Jr);
TJ:
$zx = user_load_by_name($v9["\165\x73\x65\162\x6e\141\155\145"]);
$iX = \Drupal::config("\155\151\x6e\151\157\162\x61\156\x67\x65\x5f\x73\141\155\x6c\56\x73\x65\164\x74\x69\x6e\x67\x73")->get("\155\x69\156\151\157\x72\141\156\x67\x65\137\x73\x61\x6d\x6c\137\x64\x65\x66\141\x75\154\164\137\162\157\x6c\x65");
if (!($zx == NULL)) {
goto hV;
}
$nJ = \Drupal::config("\155\151\x6e\151\x6f\x72\x61\156\x67\145\137\x73\x61\x6d\x6c\56\163\145\x74\164\x69\x6e\147\163")->get("\x6d\x69\156\151\157\162\141\156\147\145\137\163\x61\155\x6c\137\144\151\x73\141\x62\x6c\145\x5f\141\165\164\157\x63\162\x65\x61\164\145\x5f\x75\163\x65\162\163");
if ($nJ) {
goto Ln;
}
$aG = \Drupal::service("\x70\141\163\x73\x77\x6f\162\144\137\x67\x65\156\x65\162\x61\x74\157\x72")->generate(8);
$aY = ["\156\x61\155\x65" => $v9["\x75\x73\145\x72\x6e\x61\x6d\145"], "\x6d\x61\x69\x6c" => $v9["\x65\x6d\141\151\x6c"], "\x70\x61\163\163" => $aG, "\163\164\141\164\x75\x73" => 1];
$zx = User::create($aY);
$zx->save();
$hr = \Drupal::entityTypeManager()->getStorage("\x75\x73\145\162\137\x72\x6f\154\x65")->loadMultiple();
$bD = array();
foreach ($hr as $fy => $Wo) {
$bD[$fy] = strtolower($Wo->label());
G8:
}
UX:
foreach ($bD as $Sq => $r2) {
if (!($r2 == strtolower($iX))) {
goto D8;
}
$ae = $Sq;
D8:
jq:
}
ci:
if (!(isset($ae) && $ae != "\x61\x75\164\150\145\156\x74\151\143\141\164\x65\144")) {
goto GB;
}
$zx->addRole($ae);
$zx->save();
GB:
goto sE;
Ln:
$q6 = "\x41\143\x63\x6f\x75\156\x74\40\x64\x6f\145\163\x20\x6e\x6f\164\40\x65\170\x69\x73\x74\x20\x77\151\164\150\40\x79\x6f\165\162\40\x75\x73\x65\x72\156\x61\x6d\145\56";
$Kq = "\120\154\145\141\163\x65\40\103\157\156\x74\x61\x63\x74\40\x79\157\x75\x72\x20\141\x64\x6d\151\x6e\151\x73\164\x72\x61\164\157\162\x2e";
$EK = "\101\x75\164\x6f\40\x63\x72\145\141\x74\151\157\x6e\x20\157\146\40\x75\163\145\162\40\x69\163\40\156\x6f\x74\x20\141\x6c\x6c\157\167\145\x64\40\151\x66\x20\165\x73\x65\162\40\x64\x6f\145\x73\40\x6e\157\164\40\x65\170\151\x73\164\x2e";
Utilities::showErrorMessage($q6, $Kq, $EK);
sE:
hV:
if (user_is_blocked($v9["\165\163\x65\162\x6e\141\155\x65"]) == FALSE) {
goto PO;
}
$q6 = "\125\163\145\162\40\102\154\157\143\153\145\144\x20\102\171\x20\x41\x64\x6d\151\156\x69\x73\164\162\x61\x74\x6f\x72\x2e";
$Kq = "\x50\154\x65\x61\x73\x65\40\x43\157\x6e\164\x61\143\164\40\x79\x6f\x75\x72\40\x61\144\155\151\x6e\151\x73\164\162\x61\x74\x6f\162\x2e";
$EK = "\x54\x68\151\163\x20\165\163\x65\x72\40\x61\x63\143\x6f\165\x6e\164\40\x69\163\x20\x6e\157\164\40\141\154\154\x6f\167\145\x64\x20\x74\x6f\40\x6c\x6f\x67\151\x6e\x2e";
Utilities::showErrorMessage($q6, $Kq, $EK);
goto Xm;
PO:
if (!(array_key_exists("\x72\145\154\x61\171\x5f\163\x74\141\164\145", $v9) && !empty($v9["\162\x65\x6c\141\171\x5f\x73\164\x61\x74\x65"]))) {
goto I7;
}
$sE = $v9["\162\145\154\x61\x79\x5f\x73\164\141\x74\x65"];
I7:
if (!(empty($sE) || $sE == "\57")) {
goto OL;
}
$sE = $kF;
OL:
$_SESSION["\x73\145\x73\x73\151\157\156\x49\156\x64\145\170"] = $v9["\163\x65\x73\163\x69\x6f\x6e\111\156\144\x65\170"];
$_SESSION["\x4e\x61\155\145\x49\x44"] = $v9["\116\141\155\x65\111\x44"];
$_SESSION["\155\157\x5f\163\x61\x6d\154"]["\154\x6f\x67\x67\x65\144\137\151\156\137\x77\x69\164\x68\137\x69\144\x70"] = TRUE;
\Drupal::moduleHandler()->invokeAll("\151\x6e\166\x6f\153\x65\x5f\155\151\x6e\x69\x6f\x72\141\x6e\147\x65\x5f\62\146\141\137\x62\145\146\157\x72\x65\137\x6c\x6f\147\151\x6e", [$zx]);
user_login_finalize($zx);
$v9 = new RedirectResponse($sE);
$Xl = \Drupal::request();
$Xl->getSession()->save();
$v9->prepare($Xl);
\Drupal::service("\x6b\145\162\156\145\x6c")->terminate($Xl, $v9);
$v9->send();
exit;
return new Response();
Xm:
goto Nc;
QF:
$Xl = \Drupal::request();
$Xl->getSession()->clear();
$v9 = new RedirectResponse($kF);
$v9->send();
return new Response();
Nc:
return new Response();
}
function test_configuration()
{
$kF = Utilities::getBaseUrl();
$Ld = "\x74\145\163\x74\126\141\154\x69\144\x61\x74\x65";
$BV = \Drupal::config("\155\x69\156\x69\x6f\162\x61\156\x67\145\x5f\x73\141\155\x6c\56\x73\x65\164\164\x69\156\147\x73")->get("\x6d\x69\156\x69\157\162\x61\156\147\145\137\x73\x61\x6d\x6c\x5f\151\x64\x70\137\x6c\157\x67\x69\156\x5f\165\162\154");
$EA = $kF . "\x2f\163\x61\155\154\x61\163\x73\145\162\164\151\157\156";
$Fs = Utilities::getSpIssuer();
$Gl = \Drupal::config("\x6d\151\x6e\151\157\x72\x61\x6e\x67\x65\x5f\x73\x61\155\154\x2e\x73\x65\164\164\x69\156\147\163")->get("\x6d\151\156\151\157\x72\141\156\147\145\x5f\163\x61\155\154\137\x72\145\x71\x75\x65\163\x74\137\x73\x69\147\156\x65\144");
$ow = \Drupal::config("\155\151\156\151\x6f\162\x61\x6e\x67\x65\x5f\163\141\155\154\x2e\163\x65\x74\x74\x69\156\x67\x73")->get("\155\151\156\151\157\162\141\x6e\x67\145\137\x73\x61\x6d\154\x5f\x68\x74\164\160\137\142\x69\x6e\144\x69\x6e\x67");
$qy = \Drupal::config("\155\151\156\151\157\162\141\x6e\147\x65\137\163\141\155\x6c\x2e\x73\x65\x74\x74\x69\156\x67\163")->get("\x6d\x69\x6e\x69\157\162\141\x6e\x67\145\x5f\163\x61\x6d\154\x5f\156\x61\155\145\151\x64\137\146\x6f\x72\x6d\141\x74");
$cl = Utilities::createAuthnRequest($EA, $Fs, $qy, $BV, $ow, "\x66\141\154\x73\x65");
$rN = new MiniOrangeAuthnRequest();
$rN->sendSamlRequestByBindingType($cl, $ow, $Ld, $BV, $Gl);
return new Response();
}
function saml_request()
{
$jF = Utilities::getBaseUrl();
$BV = \Drupal::config("\x6d\151\x6e\151\157\x72\141\156\147\x65\137\163\x61\x6d\x6c\56\x73\145\x74\x74\x69\156\x67\163")->get("\x6d\x69\x6e\151\157\x72\x61\156\147\x65\137\163\x61\155\154\x5f\151\x64\x70\137\154\x6f\x67\151\x6e\x5f\165\x72\x6c");
$qy = \Drupal::config("\x6d\151\x6e\x69\157\x72\141\x6e\147\145\x5f\x73\x61\x6d\x6c\x2e\163\145\x74\x74\151\156\x67\163")->get("\x6d\151\156\151\x6f\162\141\156\x67\145\137\163\141\155\154\x5f\x6e\x61\155\145\151\x64\x5f\146\x6f\162\155\x61\x74");
$oR = $jF . "\57\163\x68\x6f\167\123\x41\115\x4c\x52\145\x71\165\145\163\x74";
$CG = Utilities::createSAMLRequest($oR, Utilities::getSpIssuer(), $BV, $qy);
$Ld = "\x64\x69\x73\160\x6c\141\171\123\101\x4d\114\x52\145\161\165\x65\163\x74";
Utilities::Print_SAML_Request($CG, $Ld);
return new Response();
}
function saml_response_generator()
{
$jF = Utilities::getBaseUrl();
$Fs = Utilities::getSpIssuer();
$Ld = "\x73\x68\x6f\167\x53\141\x6d\154\x52\x65\x73\160\157\156\x73\145";
$EA = $jF . "\57\x73\x61\155\154\x61\x73\163\145\162\x74\x69\x6f\156";
$BV = \Drupal::config("\155\151\x6e\x69\157\162\x61\156\x67\x65\137\x73\x61\155\x6c\56\x73\x65\x74\x74\x69\x6e\x67\x73")->get("\155\x69\156\x69\x6f\x72\141\x6e\147\145\x5f\163\x61\x6d\x6c\137\x69\x64\x70\x5f\154\x6f\x67\x69\156\137\165\162\x6c");
$qy = \Drupal::config("\155\151\x6e\151\x6f\x72\x61\156\x67\x65\x5f\x73\x61\x6d\x6c\56\x73\145\164\164\151\x6e\147\163")->get("\x6d\151\x6e\x69\x6f\x72\x61\156\147\145\x5f\163\141\x6d\x6c\x5f\x6e\x61\155\145\x69\x64\x5f\146\x6f\162\155\x61\x74");
$ow = \Drupal::config("\155\x69\156\151\157\162\141\156\x67\145\137\163\141\x6d\154\x2e\x73\x65\x74\x74\151\x6e\147\x73")->get("\x6d\151\156\x69\157\162\141\156\x67\x65\x5f\x73\141\155\x6c\x5f\150\164\164\x70\137\x62\x69\x6e\x64\x69\x6e\147");
$cl = Utilities::createAuthnRequest($EA, $Fs, $qy, $BV, $ow, "\146\x61\154\163\x65");
$Py = $BV;
if (strpos($BV, "\77") !== false) {
goto zG;
}
$Py .= "\x3f";
goto Sy;
zG:
$Py .= "\x26";
Sy:
if ($ow == "\x48\124\x54\120\55\x52\145\x64\151\162\x65\x63\x74") {
goto xK;
}
Utilities::postSAMLRequest($BV, base64_encode($cl), $Ld);
goto e2;
xK:
$Py .= "\123\101\115\114\x52\145\x71\165\x65\x73\x74\x3d" . $cl . "\46\122\145\154\141\x79\x53\x74\141\x74\x65\x3d" . urlencode($Ld);
$v9 = new RedirectResponse($Py);
$v9->send();
e2:
return new Response();
}
public function openModalForm()
{
$v9 = new AjaxResponse();
$kO = $this->formBuilder->getForm("\134\x44\162\x75\160\141\x6c\134\155\x69\156\151\x6f\162\x61\156\x67\x65\137\x73\141\155\x6c\x5c\106\x6f\x72\x6d\x5c\x4d\x69\156\x69\157\162\141\x6e\x67\x65\123\101\115\114\x52\145\155\157\166\x65\x4c\x69\143\x65\x6e\163\145");
$v9->addCommand(new OpenModalDialogCommand("\122\145\x6d\x6f\x76\x65\x20\x4c\151\143\145\156\x73\x65\x20\x4b\x65\x79", $kO, ["\167\151\x64\164\150" => "\x38\60\60"]));
return $v9;
}
public static function moLicenseFetch($bQ = "\x66\x65\x74\143\x68\114\151\x63\145\156\x73\145\x4d\x61\x6e\165\x61\154\x6c\171")
{
global $base_url;
$AR = \Drupal::config("\155\151\x6e\x69\x6f\162\x61\x6e\x67\x65\x5f\x73\141\x6d\x6c\56\x73\145\x74\164\151\156\147\163")->get("\x6d\151\156\151\x6f\162\x61\156\x67\x65\137\x73\x61\x6d\x6c\x5f\143\165\163\164\157\155\145\162\x5f\141\144\155\x69\x6e\137\145\155\141\x69\x6c");
$Zq = new MiniorangeSAMLCustomer($AR, NULL, NULL, NULL);
$wj = $Zq->ccl() !== NULL ? $Zq->ccl() : [];
if (!empty($wj)) {
goto UC;
}
if ($bQ == "\146\x65\x74\x63\150\x4c\151\143\145\x6e\163\x65\115\141\156\165\x61\x6c\x6c\x79") {
goto ay;
}
\Drupal::logger("\155\151\x6e\x69\x6f\162\141\x6e\x67\x65\137\x73\141\155\154")->error("\123\x6f\x6d\x65\164\x68\x69\x6e\147\x20\x77\x65\x6e\x74\x20\x77\x72\x6f\156\x67\x20\167\x68\x69\154\145\x20\146\x65\x74\143\x68\x69\x6e\x67\40\154\151\x63\145\156\163\x65\40\x75\160\144\x61\164\x65\x20\x69\x6e\40" . __FUNCTION__ . "\x20\x28\154\x69\x6e\145\x20" . __LINE__ . "\40\x6f\x66\40" . __FILE__ . "\x29");
return;
goto Vr;
ay:
\Drupal::messenger()->addError(t("\x53\x6f\155\145\x74\x68\151\156\147\x20\x77\145\156\164\x20\x77\x72\157\156\147\x20\x77\x68\151\154\x65\40\146\145\x74\143\x68\x69\x6e\147\40\154\x69\143\x65\156\x73\x65\x20\x75\160\x64\141\164\x65"));
$v9 = new RedirectResponse($base_url . "\57\x61\x64\x6d\151\156\x2f\143\x6f\156\x66\151\147\x2f\x70\145\x6f\160\154\x65\57\x6d\x69\156\151\x6f\x72\141\x6e\147\145\x5f\163\x61\x6d\x6c\x2f\143\x75\x73\164\x6f\x6d\x65\x72\x5f\x73\145\164\165\x70");
return $v9->send();
Vr:
UC:
Utilities::mo_save_expiry_details($wj);
$Gz = \Drupal::config("\155\x69\x6e\151\x6f\162\x61\x6e\147\145\137\x73\141\x6d\x6c\x2e\163\145\164\164\151\x6e\x67\163")->get("\155\x69\x6e\x69\x6f\162\x61\156\147\x65\137\155\141\x69\x6e\x74\x65\156\x61\x6e\x63\x65\x5f\x65\170\x70\151\162\171");
$KW = Utilities::getIsLicenseExpired($Gz);
if (!($KW["\x4c\151\x63\x65\156\x73\x65\101\154\162\145\141\x64\x79\x45\x78\x70\151\162\145\144"] == true)) {
goto Ij;
}
\Drupal::logger("\x6d\x69\x6e\151\157\x72\x61\x6e\x67\x65\137\x73\141\x6d\154")->error("\x59\x6f\165\x72\40\155\151\156\x69\117\162\141\x6e\147\x65\40\x53\x41\115\114\x20\x53\x50\40\155\x6f\144\x75\154\x65\x20\x6d\141\x69\x6e\x74\145\x6e\x61\x6e\143\145\40\150\141\x73\40\x65\170\x70\x69\x72\x65\144\x2e\x20\124\x68\151\163\x20\150\x61\x73\x20\160\162\145\166\x65\156\164\x65\144\40\x79\157\165\x20\146\162\x6f\155\40\162\145\143\x65\x69\x76\x69\156\x67\40\141\156\x79\40\x6d\x6f\144\x75\154\145\x20\x75\x70\144\x61\164\x65\x73\40\143\157\156\x74\x61\x69\156\151\x6e\x67\x20\142\165\x67\40\146\151\170\145\x73\54\x20\x6e\145\167\x20\x66\x65\x61\164\165\162\145\163\x2c\40\x61\x6e\x64\x20\x65\x76\x65\x6e\x20\x63\157\155\160\141\x74\151\x62\151\x6c\x69\164\x79\x20\143\150\x61\x6e\x67\145\x73\x2e\x20\x50\154\145\x61\x73\x65\40\x63\x6f\x6e\164\141\x63\x74\x20\165\x73\x20\x6f\x6e\40\x3c\x61\x20\x68\162\x65\146\40\x3d\x22\144\162\x75\160\x61\x6c\x73\165\160\x70\x6f\162\x74\x40\x78\145\x63\165\162\x69\146\171\x2e\143\x6f\155\x22\76\x64\x72\x75\x70\141\154\x73\x75\x70\160\157\x72\164\100\x78\145\143\x75\162\x69\x66\x79\56\143\x6f\x6d\74\x2f\141\76\x20\x74\x6f\x20\x72\145\156\x65\x77\40\x79\157\x75\x72\x20\155\141\151\156\x74\145\x6e\x61\156\x63\x65\56");
Ij:
if (!($bQ == "\x66\x65\164\143\150\x4c\151\143\145\x6e\x73\x65\115\141\x6e\x75\x61\154\154\171")) {
goto ly;
}
\Drupal::messenger()->addStatus(t("\x53\x75\143\143\x65\163\x73\146\x75\x6c\x6c\x79\40\146\145\164\143\x68\145\x64\x20\x74\150\x65\40\154\x69\143\145\x6e\x73\x65\40\x64\145\164\x61\151\x6c\x73"));
$v9 = new RedirectResponse($base_url . "\x2f\x61\x64\x6d\151\x6e\x2f\x63\157\156\146\x69\x67\x2f\160\x65\157\160\x6c\145\57\155\151\x6e\x69\x6f\162\141\x6e\x67\145\137\163\141\x6d\154\57\143\165\163\x74\157\155\145\162\137\x73\x65\x74\x75\x70");
return $v9->send();
ly:
}
function saml_metadata()
{
$kF = Utilities::getBaseUrl();
$nb = Utilities::getSpIssuer();
$oR = $kF . "\x2f\163\x61\x6d\154\x61\x73\x73\x65\162\164\x69\157\x6e";
$lD = MiniorangeSAMLConstants::MINIORANGE_PUBLIC_CERTIFICATE;
$Ii = preg_replace("\57\x5b\xd\xa\x5d\53\57", '', $lD);
$Ii = str_replace("\x2d\55\55\x2d\x2d\x42\x45\107\111\116\x20\x43\105\122\124\x49\x46\x49\x43\x41\x54\105\x2d\x2d\x2d\x2d\x2d", '', $Ii);
$Ii = str_replace("\55\x2d\x2d\55\55\105\116\104\x20\x43\x45\122\124\x49\106\x49\103\x41\x54\x45\55\55\x2d\x2d\x2d", '', $Ii);
$Ii = str_replace("\x20", '', $Ii);
$kD = Utilities::getMetadataValidationTime();
if (isset($_REQUEST["\x64\157\x77\156\x6c\x6f\141\144\x43\145\x72\164\x69\x66\151\143\141\x74\x65"]) && $_REQUEST["\144\157\x77\x6e\x6c\157\x61\x64\103\x65\162\164\151\x66\x69\x63\141\164\145"] && boolval($_REQUEST["\x64\x6f\x77\156\x6c\x6f\141\144\x43\145\x72\164\151\146\151\x63\141\x74\x65"])) {
goto np;
}
if (isset($_REQUEST["\x64\x6f\x77\156\154\157\141\x64"]) && $_REQUEST["\144\x6f\167\156\x6c\157\x61\x64"] && boolval($_REQUEST["\x64\x6f\167\156\x6c\x6f\x61\x64"])) {
goto cP;
}
$ij = "\x43\157\x6e\164\145\x6e\164\55\124\171\x70\x65\72\x20\x74\145\x78\x74\57\170\155\x6c";
goto V7;
np:
$ij = "\103\157\x6e\x74\x65\x6e\x74\55\x44\x69\x73\160\x6f\x73\151\164\x69\x6f\156\72\x20\x61\x74\164\141\143\150\155\x65\x6e\x74\x3b\x20\146\151\x6c\145\156\141\155\x65\x3d\x22\163\160\55\x63\145\x72\x74\151\x66\151\x63\x61\164\x65\56\x63\x72\x74\42";
header($ij);
echo xss::filter($lD);
exit;
goto V7;
cP:
$ij = "\x43\x6f\x6e\164\x65\156\x74\x2d\104\151\163\160\157\x73\x69\164\x69\157\156\x3a\40\x61\164\164\141\x63\150\155\145\156\x74\73\x20\x66\151\x6c\x65\156\141\155\x65\75\x22\115\145\164\141\144\x61\x74\141\56\x78\x6d\154\42";
V7:
header($ij);
echo "\x3c\x3f\170\x6d\154\40\166\x65\162\163\x69\157\x6e\75\x22\61\x2e\x30\42\x3f\x3e\xd\12\x20\40\40\x20\40\x20\40\x20\x3c\x6d\144\x3a\105\156\x74\x69\x74\171\104\145\163\x63\x72\x69\x70\164\x6f\x72\x20\x78\155\154\x6e\163\72\155\x64\x3d\42\165\x72\156\x3a\157\x61\x73\x69\x73\72\x6e\x61\x6d\145\x73\x3a\x74\x63\72\x53\x41\115\x4c\x3a\x32\56\x30\x3a\x6d\145\164\141\x64\x61\164\141\x22\40\166\x61\154\151\x64\125\156\x74\x69\154\x3d\42" . $kD . "\42\40\x63\141\x63\x68\x65\x44\x75\162\x61\164\x69\157\x6e\x3d\x22\x50\124" . MiniorangeSAMLConstants::TIME_CACHED . "\x53\x22\40\x65\x6e\164\151\x74\x79\x49\x44\75\42" . xss::filter($nb) . "\42\76\15\xa\40\x20\40\x20\x20\x20\40\40\x20\x20\x3c\155\x64\72\123\x50\123\123\117\x44\x65\x73\x63\162\151\160\164\x6f\x72\x20\101\165\164\x68\x6e\122\145\161\x75\x65\163\164\163\123\151\147\156\145\144\x3d\42\x74\x72\165\145\42\40\127\x61\x6e\164\x41\x73\163\x65\x72\164\x69\x6f\156\163\x53\x69\147\156\145\x64\x3d\x22\x74\162\x75\x65\x22\x20\160\162\157\x74\x6f\143\x6f\154\123\x75\x70\x70\157\x72\164\105\x6e\x75\x6d\145\162\x61\x74\151\x6f\156\75\42\165\162\156\x3a\x6f\x61\163\151\x73\x3a\x6e\x61\x6d\x65\x73\x3a\x74\x63\x3a\x53\x41\x4d\114\72\x32\x2e\x30\72\160\x72\x6f\164\157\143\x6f\154\42\76\xd\12\x20\40\x20\x20\40\40\40\40\40\x20\x20\x20\x3c\x6d\144\72\113\x65\x79\x44\145\163\143\x72\151\x70\164\157\x72\x20\165\x73\x65\x3d\x22\x73\x69\147\156\x69\x6e\x67\x22\x3e\15\12\x20\x20\x20\x20\x20\x20\40\x20\40\x20\40\x20\40\x20\74\144\163\x3a\113\x65\171\111\156\x66\157\40\x78\x6d\x6c\156\163\x3a\144\x73\x3d\42\x68\x74\x74\x70\x3a\x2f\57\x77\x77\167\x2e\167\x33\56\x6f\x72\x67\57\x32\x30\60\x30\x2f\x30\71\57\x78\x6d\x6c\144\x73\x69\147\x23\x22\x3e\15\12\x20\x20\x20\40\40\x20\40\x20\40\40\x20\40\x20\40\x20\x20\74\144\x73\x3a\x58\x35\x30\71\x44\141\164\141\76\15\12\x20\x20\40\40\x20\x20\x20\x20\x20\x20\40\40\40\40\40\40\40\40\74\144\163\72\130\65\x30\71\x43\x65\162\164\151\x66\x69\143\x61\164\145\76" . xss::filter($Ii) . "\74\x2f\144\163\x3a\x58\x35\x30\71\x43\145\x72\x74\151\146\x69\143\x61\x74\x65\x3e\xd\12\x20\x20\40\40\40\x20\40\40\x20\x20\40\40\x20\x20\x20\40\x3c\x2f\x64\x73\72\130\65\x30\x39\x44\141\x74\x61\76\xd\xa\40\x20\x20\40\40\x20\x20\40\x20\40\x20\x20\x20\40\74\57\x64\163\72\x4b\x65\x79\111\x6e\146\x6f\x3e\xd\12\x20\40\40\x20\40\40\40\x20\x20\40\40\x20\74\57\155\144\x3a\113\x65\171\x44\x65\163\143\x72\151\160\164\x6f\162\x3e\15\xa\x20\40\x20\40\x20\40\x20\x20\40\x20\x20\x20\x3c\x6d\x64\72\113\145\x79\104\x65\x73\x63\x72\151\160\164\x6f\x72\40\165\163\145\x3d\x22\x65\x6e\x63\x72\x79\160\164\151\157\156\42\76\15\xa\x20\x20\x20\x20\x20\40\40\40\x20\40\40\40\40\x20\x3c\144\x73\72\x4b\x65\171\x49\x6e\x66\x6f\40\x78\x6d\154\156\x73\x3a\144\x73\x3d\x22\150\164\x74\x70\72\x2f\57\x77\x77\x77\x2e\x77\63\56\x6f\162\147\57\62\60\60\x30\57\60\71\57\170\x6d\154\144\x73\151\147\x23\42\76\15\12\x20\40\x20\40\x20\40\x20\x20\40\x20\40\40\x20\40\x20\40\x3c\x64\x73\x3a\x58\x35\x30\71\104\141\x74\141\76\15\xa\40\40\40\x20\40\x20\x20\x20\40\40\40\x20\40\x20\x20\40\40\x20\74\x64\163\x3a\130\65\60\71\103\x65\x72\164\151\x66\x69\x63\141\x74\x65\76" . xss::filter($Ii) . "\74\x2f\x64\163\72\x58\x35\60\71\103\145\162\x74\x69\x66\x69\x63\141\164\145\76\xd\12\x20\40\40\x20\40\x20\40\x20\40\x20\40\x20\x20\x20\x20\x20\74\57\x64\163\x3a\130\65\x30\x39\x44\x61\164\x61\x3e\15\xa\40\x20\x20\40\40\x20\40\x20\x20\40\x20\x20\40\40\74\57\x64\163\x3a\113\145\x79\x49\156\146\x6f\76\15\12\40\x20\x20\x20\x20\x20\40\x20\x20\40\40\x20\x3c\x2f\x6d\144\72\113\145\171\104\x65\163\143\162\x69\x70\164\x6f\x72\76\15\xa\x20\40\40\40\x20\40\40\x20\40\40\x20\x20\74\155\144\x3a\116\141\155\145\111\104\106\x6f\x72\x6d\141\164\76\165\162\x6e\72\157\141\163\x69\x73\x3a\x6e\x61\155\145\x73\x3a\164\143\72\123\101\x4d\x4c\72\x31\x2e\61\72\156\141\155\x65\x69\144\x2d\146\157\162\155\x61\164\72\x65\155\141\x69\x6c\x41\144\x64\x72\145\x73\x73\74\57\155\x64\72\x4e\141\155\x65\x49\104\106\x6f\x72\x6d\141\164\76\15\xa\x20\x20\x20\40\40\x20\40\40\40\x20\40\40\74\155\144\72\x4e\141\155\x65\111\104\x46\x6f\x72\x6d\x61\164\x3e\165\x72\x6e\72\157\x61\x73\151\x73\x3a\156\x61\155\x65\163\72\164\143\72\x53\x41\x4d\x4c\x3a\62\x2e\x30\x3a\156\x61\x6d\145\x69\x64\x2d\x66\x6f\162\x6d\141\x74\x3a\x75\x6e\x73\160\145\143\x69\146\151\x65\x64\74\57\x6d\x64\72\x4e\x61\155\x65\x49\104\x46\157\x72\x6d\x61\164\x3e\15\12\40\x20\x20\40\40\40\40\40\40\x20\40\x20\x3c\x6d\x64\x3a\116\x61\x6d\145\111\x44\x46\x6f\162\x6d\141\x74\76\x75\162\156\72\157\141\163\151\x73\x3a\156\x61\155\145\163\x3a\x74\143\x3a\123\101\115\x4c\72\62\56\x30\72\x6e\141\155\x65\x69\x64\55\x66\157\162\x6d\x61\x74\72\164\162\x61\156\163\x69\145\x6e\164\x3c\x2f\155\144\72\x4e\141\155\x65\111\x44\106\157\x72\155\141\164\x3e\xd\xa\x20\x20\x20\x20\x20\x20\x20\40\x20\40\40\40\74\155\144\72\x41\x73\163\145\x72\x74\151\157\156\x43\157\x6e\163\165\x6d\x65\x72\x53\145\x72\166\x69\x63\145\x20\102\151\x6e\144\x69\156\x67\x3d\42\165\162\156\x3a\x6f\141\x73\x69\163\72\156\x61\155\145\x73\72\164\x63\72\x53\101\115\114\x3a\x32\x2e\x30\x3a\x62\x69\x6e\144\x69\156\x67\x73\72\x48\x54\124\x50\55\120\117\123\x54\42\x20\x4c\157\143\141\164\151\157\x6e\75\42" . xss::filter($oR) . "\42\x20\x69\156\x64\x65\170\x3d\x22\x31\42\x2f\x3e\15\12\40\40\40\40\40\40\40\x20\40\x20\74\x2f\155\144\x3a\x53\120\x53\123\117\104\145\163\x63\162\x69\x70\x74\157\x72\x3e\xd\12\40\x20\40\x20\x20\x20\40\x20\40\40\74\155\144\72\117\162\147\141\x6e\x69\172\141\164\x69\x6f\156\76\xd\xa\x20\40\x20\x20\40\x20\40\40\40\40\x20\40\74\x6d\x64\x3a\x4f\x72\x67\141\x6e\151\172\x61\164\x69\x6f\156\116\x61\155\145\40\170\155\x6c\x3a\154\x61\x6e\147\75\42\145\156\55\x55\123\x22\76\155\151\156\x69\x4f\x72\141\156\147\145\74\x2f\x6d\x64\x3a\117\162\x67\x61\156\151\x7a\x61\164\151\x6f\x6e\116\141\155\145\76\xd\xa\x20\x20\x20\x20\40\x20\40\x20\40\40\x20\40\x3c\x6d\x64\x3a\x4f\x72\147\141\156\151\x7a\141\164\x69\157\156\104\x69\163\x70\154\141\x79\116\x61\x6d\145\x20\x78\x6d\x6c\72\154\141\x6e\x67\75\x22\145\x6e\x2d\125\x53\42\76\x6d\x69\x6e\151\117\x72\x61\156\x67\x65\74\x2f\155\144\x3a\x4f\162\147\141\x6e\151\172\141\x74\x69\157\x6e\x44\151\x73\160\154\141\171\x4e\x61\x6d\x65\x3e\15\xa\x20\x20\x20\40\40\40\x20\x20\x20\x20\40\40\x3c\x6d\x64\x3a\x4f\x72\x67\141\156\x69\172\141\x74\151\x6f\156\x55\122\114\x20\x78\x6d\x6c\72\154\x61\156\147\x3d\42\x65\156\55\125\123\42\76\150\x74\164\x70\x73\72\x2f\57\155\x69\156\151\157\x72\x61\x6e\x67\145\56\143\x6f\155\x3c\x2f\x6d\144\72\x4f\x72\x67\x61\156\x69\x7a\x61\x74\151\157\x6e\125\122\114\76\15\xa\x20\x20\40\40\40\40\x20\40\x20\40\x3c\x2f\155\144\72\117\x72\x67\x61\156\x69\x7a\141\164\x69\157\156\76\xd\12\40\x20\x20\40\x20\40\x20\40\x20\40\74\155\144\x3a\x43\x6f\156\x74\x61\x63\x74\x50\145\x72\163\157\156\40\143\157\156\164\141\143\164\124\171\160\145\75\42\x74\x65\x63\x68\x6e\x69\x63\x61\x6c\x22\76\15\xa\40\40\x20\40\40\40\x20\x20\40\x20\40\x20\74\155\x64\x3a\107\151\166\x65\156\x4e\141\x6d\x65\76\x6d\151\x6e\151\x4f\162\141\x6e\147\x65\74\x2f\x6d\x64\x3a\x47\151\x76\x65\156\116\x61\155\145\76\xd\12\x20\x20\40\40\40\x20\x20\40\x20\40\x20\40\74\x6d\144\x3a\105\x6d\141\x69\x6c\101\144\144\162\x65\x73\163\x3e\151\156\146\x6f\100\170\x65\143\165\x72\151\x66\x79\x2e\x63\157\155\x3c\57\x6d\144\72\x45\x6d\x61\x69\154\x41\x64\x64\x72\x65\163\163\x3e\15\xa\40\x20\40\x20\40\40\x20\40\40\x20\x3c\57\155\x64\x3a\x43\x6f\156\x74\x61\143\x74\x50\x65\x72\x73\x6f\x6e\76\15\xa\x20\x20\x20\40\x20\40\x20\40\x20\x20\x3c\155\144\x3a\103\x6f\x6e\164\x61\143\164\x50\x65\x72\163\157\156\x20\143\x6f\x6e\164\141\143\164\x54\x79\x70\x65\75\42\x73\x75\x70\x70\157\x72\x74\42\x3e\xd\xa\40\40\40\x20\x20\40\x20\x20\x20\40\x20\40\x3c\x6d\144\72\x47\x69\x76\145\x6e\x4e\x61\x6d\145\76\155\151\x6e\151\x4f\162\141\x6e\147\x65\x3c\57\155\x64\72\107\x69\166\x65\x6e\x4e\x61\155\x65\x3e\xd\12\x20\40\40\40\40\40\40\40\40\40\40\40\x3c\155\x64\x3a\105\155\141\151\154\x41\144\144\162\145\x73\x73\76\151\x6e\x66\x6f\100\x78\x65\x63\x75\x72\151\146\171\x2e\x63\157\155\x3c\57\x6d\144\x3a\x45\155\x61\x69\154\x41\144\x64\x72\x65\x73\163\76\15\xa\x20\40\x20\40\x20\x20\x20\x20\40\40\x3c\57\155\144\72\x43\x6f\x6e\164\141\x63\x74\120\145\162\163\x6f\156\76\15\xa\40\x20\40\40\x20\x20\x20\40\x3c\x2f\x6d\x64\72\x45\x6e\164\x69\164\x79\x44\x65\163\143\x72\x69\160\164\157\162\76";
exit;
}
}
Function Calls
| None |
Stats
| MD5 | 20bcc2681abf3c74ca1cf3a2057efeeb |
| Eval Count | 0 |
| Decode Time | 80 ms |