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 if (!defined("\137\x4a\105\x58\x45\x43")) { goto UZ; } class plgauthenti..
Decoded Output download
<?php
if (!defined("_JEXEC")) {
goto UZ;
}
class plgauthenticationminiorangesaml extends JPlugin
{
function onUserAuthenticate($sF, $dB, &$lR)
{
if (!(isset($_COOKIE["mosamlauthadmin"]) && $_COOKIE["mosamlauthadmin"] != "-1")) {
goto Gz;
}
$Vk = Utilities::_genericGetDBValues("#__miniorange_saml_customer_details");
$qp = $Vk["enable_admin_login"];
if (!$qp) {
goto oa;
}
jimport("miniorangesamlplugin.utility.encryption");
$KV = $_COOKIE["mosamlauthadmin"];
$Ei = $Vk["customer_token"];
$fT = $Vk["api_key"];
$KV = AESEncryption::decrypt_data($KV, $Ei);
$QI = array();
$QI = explode(":", $KV);
$ao = $QI[0];
$T0 = $QI[1];
$PW = time();
if (!($T0 == $fT && $PW - $ao < 30)) {
goto l5;
}
setcookie("mosamlauthadmin", "-1", time() - 100, "/");
unset($_COOKIE["mosamlauthadmin"]);
$cK = JFactory::getDbo();
$hT = $cK->getQuery(true)->select("id, password")->from("#__users")->where("username=" . $cK->quote($sF["username"]));
$cK->setQuery($hT);
$P1 = $cK->loadObject();
if (!$P1) {
goto H1;
}
$user = JUser::getInstance($P1->id);
$lR->email = $user->email;
$lR->fullname = $user->name;
$lR->email = $user->email;
$lR->fullname = $user->name;
$lR->language = $user->getParam("admin_language");
$lR->language = $user->getParam("language");
$lR->status = JAuthentication::STATUS_SUCCESS;
$lR->error_message = '';
H1:
l5:
oa:
Gz:
}
}
UZ:
?>
Did this file decode correctly?
Original Code
<?php
if (!defined("\137\x4a\105\x58\x45\x43")) {
goto UZ;
}
class plgauthenticationminiorangesaml extends JPlugin
{
function onUserAuthenticate($sF, $dB, &$lR)
{
if (!(isset($_COOKIE["\x6d\x6f\x73\x61\x6d\x6c\141\165\x74\150\x61\144\x6d\151\x6e"]) && $_COOKIE["\155\157\x73\141\x6d\154\141\165\x74\150\x61\144\x6d\x69\156"] != "\55\x31")) {
goto Gz;
}
$Vk = Utilities::_genericGetDBValues("\x23\x5f\x5f\x6d\151\x6e\x69\x6f\162\x61\156\x67\x65\137\163\141\x6d\154\x5f\143\165\x73\164\157\x6d\x65\162\137\144\x65\164\141\x69\x6c\163");
$qp = $Vk["\145\156\141\142\x6c\145\137\141\144\155\x69\x6e\x5f\154\x6f\x67\x69\x6e"];
if (!$qp) {
goto oa;
}
jimport("\x6d\151\x6e\x69\157\x72\x61\x6e\x67\x65\x73\141\x6d\x6c\160\x6c\165\147\151\x6e\x2e\x75\164\x69\154\x69\164\171\56\145\x6e\x63\x72\171\160\x74\151\x6f\156");
$KV = $_COOKIE["\x6d\x6f\163\141\155\x6c\x61\x75\164\150\x61\x64\155\x69\x6e"];
$Ei = $Vk["\x63\165\163\x74\157\155\x65\x72\x5f\x74\157\x6b\145\156"];
$fT = $Vk["\141\160\151\x5f\x6b\x65\171"];
$KV = AESEncryption::decrypt_data($KV, $Ei);
$QI = array();
$QI = explode("\x3a", $KV);
$ao = $QI[0];
$T0 = $QI[1];
$PW = time();
if (!($T0 == $fT && $PW - $ao < 30)) {
goto l5;
}
setcookie("\155\157\163\141\155\154\x61\x75\x74\150\x61\x64\155\x69\156", "\55\61", time() - 100, "\57");
unset($_COOKIE["\x6d\x6f\163\141\x6d\x6c\x61\165\x74\x68\141\144\155\151\x6e"]);
$cK = JFactory::getDbo();
$hT = $cK->getQuery(true)->select("\151\144\x2c\x20\x70\x61\163\x73\167\x6f\162\x64")->from("\43\x5f\137\165\x73\145\x72\x73")->where("\165\x73\145\x72\x6e\141\155\145\75" . $cK->quote($sF["\x75\163\x65\x72\156\141\155\x65"]));
$cK->setQuery($hT);
$P1 = $cK->loadObject();
if (!$P1) {
goto H1;
}
$user = JUser::getInstance($P1->id);
$lR->email = $user->email;
$lR->fullname = $user->name;
$lR->email = $user->email;
$lR->fullname = $user->name;
$lR->language = $user->getParam("\x61\144\155\151\x6e\137\154\x61\156\x67\x75\141\147\x65");
$lR->language = $user->getParam("\x6c\x61\156\147\165\x61\x67\145");
$lR->status = JAuthentication::STATUS_SUCCESS;
$lR->error_message = '';
H1:
l5:
oa:
Gz:
}
}
UZ:
Function Calls
None |
Stats
MD5 | d507068ac56400fcc33cf28313be02de |
Eval Count | 0 |
Decode Time | 70 ms |