Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
public function TFAValidate($r0, $Wu) { $r0->log_debug("\115\151\156\x69\x4f..
Decoded Output download
<? public function TFAValidate($r0, $Wu)
{
$r0->log_debug("MiniOrangeInline.php : execute: TFAValidate");
$Or = $this->storeManager->getStore()->getWebsiteId();
$user = new miniOrangeUser();
$jq = $r0->getSessionValue("mousername");
$Qh = $r0->getCustomerMoTfaUserDetails("miniorange_tfa_users", $jq);
$pW = $Qh[0]["active_method"];
if ("GoogleAuthenticator" === $pW || "MicrosoftAuthenticator" === $pW) {
goto IR;
}
$TO = $r0->getStoreConfig(TwoFAConstants::ENABLE_CUSTOMGATEWAY_EMAIL);
$o4 = $r0->getStoreConfig(TwoFAConstants::ENABLE_CUSTOMGATEWAY_SMS);
$sj = $r0->getStoreConfig(TwoFAConstants::ENABLE_CUSTOMGATEWAY_WHATSAPP);
$LD = false;
if ($pW == "OOE" && $TO) {
goto du;
}
if ($pW == "OOS" && $o4) {
goto Z0;
}
if ($pW == "OOSE") {
goto vX;
}
if ($pW == "OOW" && $sj) {
goto vo;
}
goto Je;
du:
$LD = true;
goto Je;
Z0:
$LD = true;
goto Je;
vX:
$LD = true;
goto Je;
vo:
$LD = true;
Je:
if (($TO || $o4) && $LD) {
goto Gt;
}
if ($pW == "OOW") {
goto dz;
}
$hJ = $user->validate($jq, $this->postValue["Passcode"], $pW, $r0, NULL, true, $Or);
$hJ = json_decode($hJ);
$hJ = array("status" => $hJ->status);
$r0->log_debug("MiniOrangeInline.php : execute: TFAValidate: Method response");
goto vd;
dz:
if ("OOW" === $pW) {
goto PA;
}
$r0->log_debug("MiniOrangeInline.php : execute: Custom gateway ");
goto ik;
PA:
$r0->log_debug("MiniOrangeInline.php : execute: whatsapp miniOrange gateway ");
ik:
$zJ = $r0->customgateway_validateOTP($this->postValue["Passcode"]);
$hJ = array("status" => $zJ);
vd:
goto Dk;
Gt:
$r0->log_debug("MiniOrangeInline.php : TFAValidate: Custom gateway");
$zJ = $r0->customgateway_validateOTP($this->postValue["Passcode"]);
$hJ = array("status" => $zJ);
Dk:
goto gf;
IR:
$hJ = json_decode($r0->verifyGauthCode($this->postValue["Passcode"], $jq));
$r0->log_debug("MiniOrangeInline.php : execute: TFAValidate: google auth response");
$hJ = array("status" => $hJ->status);
gf:
if (!($hJ["status"] === "SUCCESS")) {
goto VX;
}
$cM = $r0->getStoreConfig(TwoFAConstants::CUSTOMER_REMEMBER_DEVICE . $Or);
if (!$Wu) {
goto bM;
}
$r0->log_debug("MiniOrangeInline.php :customer has enabled device information ");
$r0->check_and_save_device_data($cM, $jq, $Or, $Qh);
bM:
VX:
return $hJ["status"] === "SUCCESS" ? true : false;
} ?>
Did this file decode correctly?
Original Code
public function TFAValidate($r0, $Wu)
{
$r0->log_debug("\115\151\156\x69\x4f\x72\141\x6e\147\x65\x49\156\154\x69\x6e\x65\56\160\x68\x70\x20\x3a\40\x65\170\x65\x63\165\164\x65\72\40\124\x46\x41\126\141\x6c\x69\x64\x61\164\145");
$Or = $this->storeManager->getStore()->getWebsiteId();
$user = new miniOrangeUser();
$jq = $r0->getSessionValue("\155\157\165\x73\145\162\156\141\155\145");
$Qh = $r0->getCustomerMoTfaUserDetails("\x6d\151\x6e\x69\157\x72\141\x6e\147\145\x5f\164\146\141\x5f\x75\x73\145\162\163", $jq);
$pW = $Qh[0]["\141\143\164\151\166\x65\137\x6d\145\164\150\x6f\x64"];
if ("\x47\157\x6f\147\x6c\145\101\x75\164\x68\145\x6e\164\x69\143\141\x74\x6f\x72" === $pW || "\115\151\143\162\x6f\x73\157\146\164\x41\165\164\x68\145\x6e\x74\151\143\x61\164\157\x72" === $pW) {
goto IR;
}
$TO = $r0->getStoreConfig(TwoFAConstants::ENABLE_CUSTOMGATEWAY_EMAIL);
$o4 = $r0->getStoreConfig(TwoFAConstants::ENABLE_CUSTOMGATEWAY_SMS);
$sj = $r0->getStoreConfig(TwoFAConstants::ENABLE_CUSTOMGATEWAY_WHATSAPP);
$LD = false;
if ($pW == "\x4f\117\105" && $TO) {
goto du;
}
if ($pW == "\117\117\x53" && $o4) {
goto Z0;
}
if ($pW == "\117\x4f\x53\105") {
goto vX;
}
if ($pW == "\x4f\117\x57" && $sj) {
goto vo;
}
goto Je;
du:
$LD = true;
goto Je;
Z0:
$LD = true;
goto Je;
vX:
$LD = true;
goto Je;
vo:
$LD = true;
Je:
if (($TO || $o4) && $LD) {
goto Gt;
}
if ($pW == "\x4f\117\127") {
goto dz;
}
$hJ = $user->validate($jq, $this->postValue["\120\x61\163\163\143\x6f\x64\145"], $pW, $r0, NULL, true, $Or);
$hJ = json_decode($hJ);
$hJ = array("\163\164\x61\164\x75\163" => $hJ->status);
$r0->log_debug("\x4d\x69\156\x69\117\x72\x61\156\147\x65\111\x6e\154\x69\156\x65\56\160\150\160\x20\x3a\x20\x65\170\145\143\165\164\145\x3a\40\x54\106\x41\126\x61\154\151\x64\x61\164\x65\72\x20\x4d\x65\164\150\157\x64\x20\x72\145\163\160\157\x6e\x73\145");
goto vd;
dz:
if ("\117\117\x57" === $pW) {
goto PA;
}
$r0->log_debug("\115\x69\156\151\x4f\162\141\x6e\147\x65\x49\x6e\x6c\151\x6e\x65\x2e\x70\150\x70\40\x3a\40\145\170\145\x63\165\x74\145\72\40\x43\165\x73\164\157\x6d\x20\147\x61\164\145\x77\x61\171\x20");
goto ik;
PA:
$r0->log_debug("\115\x69\156\x69\117\162\x61\156\147\145\x49\x6e\x6c\x69\x6e\x65\x2e\x70\x68\160\x20\x3a\x20\145\x78\x65\x63\165\x74\145\x3a\40\167\150\141\164\x73\141\160\160\40\155\x69\x6e\151\117\162\141\156\x67\145\x20\147\141\164\x65\x77\x61\171\x20");
ik:
$zJ = $r0->customgateway_validateOTP($this->postValue["\x50\141\163\163\x63\x6f\x64\x65"]);
$hJ = array("\163\164\141\x74\x75\x73" => $zJ);
vd:
goto Dk;
Gt:
$r0->log_debug("\115\x69\x6e\151\x4f\162\x61\x6e\x67\x65\111\x6e\x6c\x69\156\145\56\160\x68\160\40\72\40\124\x46\101\x56\x61\x6c\x69\x64\141\x74\x65\x3a\x20\103\165\163\164\x6f\155\x20\147\x61\x74\x65\x77\x61\171");
$zJ = $r0->customgateway_validateOTP($this->postValue["\x50\x61\x73\163\143\x6f\144\145"]);
$hJ = array("\163\x74\x61\164\165\163" => $zJ);
Dk:
goto gf;
IR:
$hJ = json_decode($r0->verifyGauthCode($this->postValue["\x50\x61\x73\x73\143\157\x64\x65"], $jq));
$r0->log_debug("\x4d\x69\x6e\151\x4f\162\x61\x6e\147\145\111\156\154\151\x6e\x65\56\160\x68\160\x20\72\40\x65\x78\x65\143\165\164\x65\x3a\x20\x54\106\101\x56\x61\154\x69\x64\141\164\145\x3a\x20\x67\x6f\157\147\x6c\145\40\141\165\164\x68\x20\162\145\x73\x70\x6f\x6e\163\145");
$hJ = array("\163\x74\x61\164\x75\x73" => $hJ->status);
gf:
if (!($hJ["\x73\164\141\x74\165\163"] === "\123\125\103\x43\105\x53\123")) {
goto VX;
}
$cM = $r0->getStoreConfig(TwoFAConstants::CUSTOMER_REMEMBER_DEVICE . $Or);
if (!$Wu) {
goto bM;
}
$r0->log_debug("\x4d\x69\156\x69\x4f\162\141\x6e\147\145\x49\x6e\154\151\x6e\x65\x2e\160\150\x70\x20\72\x63\165\x73\164\157\155\145\x72\40\150\x61\x73\x20\145\156\141\142\154\x65\144\x20\144\x65\166\151\143\145\40\151\156\146\157\162\x6d\x61\x74\x69\157\x6e\x20");
$r0->check_and_save_device_data($cM, $jq, $Or, $Qh);
bM:
VX:
return $hJ["\163\x74\141\164\165\163"] === "\x53\125\103\x43\x45\x53\123" ? true : false;
}
Function Calls
None |
Stats
MD5 | 63726d97455d0004fbaeac931f404452 |
Eval Count | 0 |
Decode Time | 61 ms |