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 global $ce, $WC, $aq; if (!isset($_POST["\157\x70\164\x69\157\156"])) { g..
Decoded Output download
<?php
global $ce, $WC, $aq;
if (!isset($_POST["option"])) {
goto c6;
}
$MU = trim($_POST["option"]);
switch ($MU) {
case "mo_wpns_register_customer":
_register_customer($_POST);
goto ur;
case "mo_wpns_verify_customer":
_verify_customer($_POST);
goto ur;
case "mo_wpns_cancel":
_revert_back_registration();
goto ur;
case "mo_wpns_reset_password":
_reset_password();
goto ur;
case "mo2f_goto_verifycustomer":
_goto_sign_in_page();
goto ur;
}
UG:
ur:
c6:
$user = wp_get_current_user();
$te = MoWpnsUtility::get_mo2f_multisite_compatible("mo_2factor_user_registration_status");
$Tp = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_customerKey");
$TX = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_email");
if ($te) {
goto Sp;
}
$te = "MO_2_FACTOR_VERIFY_CUSTOMER";
update_site_option("mo_2factor_user_registration_status", "MO_2_FACTOR_VERIFY_CUSTOMER");
Sp:
if ((MoWpnsUtility::get_mo2f_multisite_compatible("mo_wpns_registration_status") == "MO_OTP_DELIVERED_SUCCESS" || MoWpnsUtility::get_mo2f_multisite_compatible("mo_wpns_registration_status") == "MO_OTP_VALIDATION_FAILURE" || MoWpnsUtility::get_mo2f_multisite_compatible("mo_wpns_registration_status") == "MO_OTP_DELIVERED_FAILURE") && in_array($te, array("MO_2_FACTOR_OTP_DELIVERED_SUCCESS", "MO_2_FACTOR_OTP_DELIVERED_FAILURE"))) {
goto lN;
}
if ((get_site_option("mo_wpns_verify_customer") == "true" || $TX && !$Tp) && $te == "MO_2_FACTOR_VERIFY_CUSTOMER") {
goto Ww;
}
if (!$ce->icr()) {
goto Js;
}
if (get_site_option("mo_2factor_admin_registration_status") == "MO_2_FACTOR_CUSTOMER_VERIFY_LICENSE_KEY") {
goto W7;
}
$vj = $TX;
$Yt = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_customerKey");
$VQ = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_api_key");
$j_ = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_customer_token");
$mI = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_app_secret");
$w4 = MoWpnsUtility::get_mo2f_db_option("cmVtYWluaW5nT1RQ", "site_option");
$w4 = $w4 ? $w4 : 0;
$ld = get_site_option("cmVtYWluaW5nT1RQVHJhbnNhY3Rpb25z") ? get_site_option("cmVtYWluaW5nT1RQVHJhbnNhY3Rpb25z") : 0;
include $WC . "views" . DIRECTORY_SEPARATOR . "account" . DIRECTORY_SEPARATOR . "profile.php";
goto oY;
W7:
include $WC . "views" . DIRECTORY_SEPARATOR . "twofa" . DIRECTORY_SEPARATOR . "two_fa_user_profile.php";
mo2f_show_license_page();
oY:
goto D3;
lN:
$ur = MoWpnsUtility::get_mo2f_multisite_compatible("mo_wpns_admin_phone") ? MoWpnsUtility::get_mo2f_multisite_compatible("mo_wpns_admin_phone") : '';
include $WC . "views" . DIRECTORY_SEPARATOR . "account" . DIRECTORY_SEPARATOR . "verify.php";
goto D3;
Ww:
$X8 = $TX ? $TX : '';
include $WC . "views" . DIRECTORY_SEPARATOR . "account" . DIRECTORY_SEPARATOR . "login.php";
goto D3;
Js:
delete_site_option("password_mismatch");
update_site_option("mo_wpns_new_registration", "true");
update_site_option("mo_2factor_user_registration_status", "REGISTRATION_STARTED");
include $WC . "views" . DIRECTORY_SEPARATOR . "account" . DIRECTORY_SEPARATOR . "register.php";
D3:
function _register_customer($post)
{
global $ce, $aq;
$user = wp_get_current_user();
$vj = sanitize_email($post["email"]);
$v0 = $_SERVER["SERVER_NAME"];
$q9 = sanitize_text_field($post["password"]);
$bS = sanitize_text_field($post["confirmPassword"]);
if (!(strlen($q9) < 6 || strlen($bS) < 6)) {
goto U1;
}
do_action("wpns_show_message", MoWpnsMessages::mo2fa_wpns_showMessage("PASS_LENGTH"), "ERROR");
return;
U1:
if (!($q9 != $bS)) {
goto Sa;
}
do_action("wpns_show_message", MoWpnsMessages::mo2fa_wpns_showMessage("PASS_MISMATCH"), "ERROR");
return;
Sa:
if (!(MoWpnsUtility::check_empty_or_null($vj) || MoWpnsUtility::check_empty_or_null($q9) || MoWpnsUtility::check_empty_or_null($bS))) {
goto b2;
}
do_action("wpns_show_message", MoWpnsMessages::mo2fa_wpns_showMessage("REQUIRED_FIELDS"), "ERROR");
return;
b2:
update_site_option("mo2f_email", $vj);
update_site_option("mo_wpns_company", $v0);
update_site_option("mo_wpns_password", $q9);
$eO = new MocURL();
$CG = json_decode($eO->check_customer($vj), true);
$aq->insert_user($user->ID);
switch ($CG["status"]) {
case "CUSTOMER_NOT_FOUND":
$GF = json_decode($eO->create_customer($vj, $v0, $q9, $ca = '', $xn = '', $CZ = ''), true);
if (!(strcasecmp($GF["status"], "SUCCESS") == 0)) {
goto TX;
}
update_site_option(base64_encode("totalUsersCloud"), get_site_option(base64_encode("totalUsersCloud")) + 1);
update_site_option("mo2f_email", $vj);
save_success_customer_config($vj, $GF["id"], $GF["apiKey"], $GF["token"], $GF["appSecret"]);
_get_current_customer($vj, $q9);
TX:
goto qB;
default:
_get_current_customer($vj, $q9);
goto qB;
}
tW:
qB:
}
function _goto_sign_in_page()
{
global $aq;
$user = wp_get_current_user();
update_site_option("mo_wpns_verify_customer", "true");
}
function _revert_back_registration()
{
global $aq;
$user = wp_get_current_user();
delete_site_option("mo2f_email");
delete_site_option("mo_wpns_registration_status");
delete_site_option("mo_wpns_verify_customer");
update_site_option("mo_2factor_user_registration_status", '');
}
function _reset_password()
{
$eO = new MocURL();
$y9 = json_decode($eO->mo_wpns_forgot_password());
if (!($y9->status == "SUCCESS")) {
goto rW;
}
do_action("wpns_show_message", MoWpnsMessages::mo2fa_wpns_showMessage("RESET_PASS"), "SUCCESS");
rW:
}
function _verify_customer($post)
{
global $ce;
$vj = sanitize_email($post["email"]);
$q9 = sanitize_text_field($post["password"]);
if (!($ce->check_empty_or_null($vj) || $ce->check_empty_or_null($q9))) {
goto Kb;
}
do_action("wpns_show_message", MoWpnsMessages::mo2fa_wpns_showMessage("REQUIRED_FIELDS"), "ERROR");
return;
Kb:
_get_current_customer($vj, $q9);
}
function _get_current_customer($vj, $q9)
{
global $aq;
$user = wp_get_current_user();
$eO = new MocURL();
$CG = $eO->get_customer_key($vj, $q9);
$GF = json_decode($CG, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto jI;
}
update_site_option("mo_2factor_user_registration_status", "MO_2_FACTOR_VERIFY_CUSTOMER");
update_site_option("mo_wpns_verify_customer", "true");
delete_site_option("mo_wpns_new_registration");
do_action("wpns_show_message", MoWpnsMessages::mo2fa_wpns_showMessage("ACCOUNT_EXISTS"), "ERROR");
goto EW;
jI:
if (!isset($GF["phone"])) {
goto wW;
}
update_site_option("mo_wpns_admin_phone", $GF["phone"]);
wW:
update_site_option("mo2f_email", $vj);
save_success_customer_config($vj, $GF["id"], $GF["apiKey"], $GF["token"], $GF["appSecret"]);
do_action("wpns_show_message", MoWpnsMessages::mo2fa_wpns_showMessage("REG_SUCCESS"), "SUCCESS");
update_site_option(base64_encode("totalUsersCloud"), get_site_option(base64_encode("totalUsersCloud")) + 1);
$rQ = new Customer_Cloud_Setup();
$Tp = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_customerKey");
$Lv = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_api_key");
$CG = json_decode($rQ->get_customer_transactions($Tp, $Lv, "PREMIUM"), true);
if ($CG["status"] == "SUCCESS") {
goto po;
}
update_site_option("mo2f_license_type", "DEMO");
$CG = json_decode($rQ->get_customer_transactions($Tp, $Lv, "DEMO"), true);
goto cR;
po:
update_site_option("mo2f_license_type", "PREMIUM");
cR:
if (isset($CG["smsRemaining"])) {
goto Ie;
}
if ($CG["status"] == "SUCCESS") {
goto mq;
}
goto nL;
Ie:
update_site_option("cmVtYWluaW5nT1RQVHJhbnNhY3Rpb25z", $CG["smsRemaining"]);
goto nL;
mq:
update_site_option("cmVtYWluaW5nT1RQVHJhbnNhY3Rpb25z", 0);
nL:
if (!isset($CG["emailRemaining"])) {
goto RL;
}
if ($CG["emailRemaining"] > 30) {
goto ar;
}
if ($CG["emailRemaining"] == 10 and get_site_option("cmVtYWluaW5nT1RQ") > 30) {
goto DX;
}
goto he;
ar:
$q3 = $CG["emailRemaining"];
update_site_option("cmVtYWluaW5nT1RQ", $q3);
update_site_option("EmailTransactionCurrent", $CG["emailRemaining"]);
goto he;
DX:
update_site_option("cmVtYWluaW5nT1RQ", 30);
he:
RL:
EW:
}
function save_success_customer_config($vj, $IZ, $fY, $j_, $mI)
{
global $aq;
$user = wp_get_current_user();
update_site_option("mo2f_customerKey", $IZ);
update_site_option("mo2f_api_key", $fY);
update_site_option("mo2f_customer_token", $j_);
update_site_option("mo2f_app_secret", $mI);
update_site_option("mo_wpns_enable_log_requests", true);
update_site_option("mo2f_miniorange_admin", $user->ID);
if (MO2F_IS_ONPREM) {
goto Vn;
}
update_site_option("mo_2factor_admin_registration_status", "MO_2_FACTOR_CUSTOMER_REGISTERED_SUCCESS");
goto K6;
Vn:
update_site_option("mo_2factor_admin_registration_status", "MO_2_FACTOR_CUSTOMER_VERIFY_LICENSE_KEY");
K6:
$aq->update_user_details($user->ID, array("mo2f_user_email" => $vj, "user_registration_with_miniorange" => "SUCCESS"));
$qf = new Two_Factor_Setup();
$CY = json_decode($qf->mo2f_get_userinfo($vj), true);
$uV = "NONE";
if (!(json_last_error() == JSON_ERROR_NONE)) {
goto d2;
}
if (!($CY["status"] == "SUCCESS")) {
goto lV;
}
$uV = mo2f_update_and_sync_user_two_factor($user->ID, $CY);
lV:
d2:
$jn = '';
if ($uV == "EMAIL") {
goto ll;
}
if ($uV != "NONE") {
goto LZ;
}
goto hK;
ll:
$qf->mo2f_update_userinfo($vj, "NONE", null, '', true);
$jn = "NONE";
goto hK;
LZ:
$jn = MO2f_Utility::mo2f_decode_2_factor($uV, "servertowpdb");
if (MoWpnsUtility::get_mo2f_db_and_migrate("mo2f_is_NC", "get_option") == 0) {
goto AX;
}
if (!in_array($jn, array("Email Verification", "Authy Authenticator", "OTP over SMS"))) {
goto di;
}
$qf->mo2f_update_userinfo($vj, "NONE", null, '', true);
di:
goto Rr;
AX:
$XP = str_replace(" ", '', $jn);
Rr:
hK:
$Sf = Mo2fConstants::langTranslate("ACCOUNT_RETRIEVED_SUCCESSFULLY");
if (!($jn != "NONE" && MoWpnsUtility::get_mo2f_db_and_migrate("mo2f_is_NC", "get_option") == 0)) {
goto JP;
}
$Sf .= " <b>" . $jn . "</b> " . Mo2fConstants::langTranslate("DEFAULT_2ND_FACTOR") . ". ";
JP:
delete_user_meta($user->ID, "register_account");
$X0 = get_mo2f_multisite_compatible("mo2f_customer_selected_plan");
if (!empty($X0)) {
goto nA;
}
if ($uV == "NONE") {
goto LT;
}
goto ef;
nA:
delete_site_option("mo2f_customer_selected_plan");
if (MoWpnsUtility::get_mo2f_db_and_migrate("mo2f_planname", "site_option") == "addon_plan") {
goto uB;
}
echo " \x9\x9\x9<script>window.location.href="admin.php?page=mo_2fa_upgrade";</script>
\x9 ";
goto CP;
uB:
echo "<script>window.location.href="admin.php?page=mo_2fa_addons";</script>
\x9\x9\x9";
CP:
goto ef;
LT:
if (!get_user_meta($user->ID, "register_account_popup", true)) {
goto hl;
}
update_user_meta($user->ID, "configure_2FA", 1);
hl:
ef:
update_site_option("mo2f_message", $Sf);
delete_user_meta($user->ID, "register_account_popup");
delete_site_option("mo_wpns_verify_customer");
delete_site_option("mo_wpns_registration_status");
delete_site_option("mo_wpns_password");
}
?>
Did this file decode correctly?
Original Code
<?php
global $ce, $WC, $aq;
if (!isset($_POST["\157\x70\164\x69\157\156"])) {
goto c6;
}
$MU = trim($_POST["\x6f\x70\x74\151\157\156"]);
switch ($MU) {
case "\155\x6f\x5f\167\160\156\163\137\162\145\x67\x69\163\x74\145\162\137\143\165\163\164\x6f\x6d\145\162":
_register_customer($_POST);
goto ur;
case "\x6d\157\x5f\167\160\x6e\x73\137\x76\x65\162\151\146\x79\x5f\x63\x75\163\164\x6f\155\x65\x72":
_verify_customer($_POST);
goto ur;
case "\155\x6f\137\x77\x70\156\x73\x5f\143\141\x6e\143\x65\x6c":
_revert_back_registration();
goto ur;
case "\x6d\x6f\x5f\167\x70\x6e\x73\137\162\x65\x73\145\164\x5f\x70\x61\163\163\x77\x6f\x72\144":
_reset_password();
goto ur;
case "\x6d\x6f\x32\x66\x5f\x67\x6f\164\x6f\x5f\166\x65\x72\151\146\x79\x63\x75\x73\x74\157\155\145\x72":
_goto_sign_in_page();
goto ur;
}
UG:
ur:
c6:
$user = wp_get_current_user();
$te = MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\157\x5f\x32\x66\141\x63\164\x6f\162\x5f\x75\163\x65\162\137\162\145\x67\x69\x73\x74\162\141\x74\x69\157\x6e\137\163\164\141\164\x75\163");
$Tp = MoWpnsUtility::get_mo2f_multisite_compatible("\155\x6f\62\146\x5f\143\x75\x73\x74\x6f\155\x65\162\x4b\x65\171");
$TX = MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\x6f\x32\x66\x5f\x65\155\x61\151\x6c");
if ($te) {
goto Sp;
}
$te = "\115\117\x5f\62\x5f\x46\101\x43\124\x4f\x52\x5f\x56\105\122\x49\106\131\x5f\103\125\x53\x54\117\115\105\122";
update_site_option("\x6d\x6f\137\x32\146\141\x63\164\157\162\137\x75\x73\145\x72\137\162\145\x67\151\x73\164\x72\141\164\x69\x6f\x6e\137\163\164\x61\164\165\163", "\x4d\117\x5f\62\137\x46\101\x43\124\x4f\122\137\126\105\122\x49\x46\x59\x5f\x43\125\123\x54\x4f\x4d\105\x52");
Sp:
if ((MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\x6f\x5f\x77\160\x6e\x73\137\x72\x65\x67\x69\x73\x74\162\141\x74\x69\157\x6e\137\163\164\x61\164\165\x73") == "\115\x4f\x5f\117\x54\x50\x5f\x44\x45\114\x49\126\105\x52\x45\104\137\123\125\x43\x43\x45\x53\123" || MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\x6f\137\167\160\156\163\x5f\162\145\147\x69\163\x74\x72\x61\164\151\157\156\x5f\x73\164\x61\x74\x75\163") == "\x4d\x4f\x5f\x4f\x54\120\137\126\101\114\111\x44\101\x54\x49\117\116\x5f\x46\x41\111\x4c\125\x52\x45" || MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\157\137\x77\x70\x6e\163\x5f\x72\x65\x67\151\x73\164\x72\141\164\x69\x6f\156\137\163\x74\x61\x74\x75\163") == "\x4d\117\x5f\x4f\124\x50\x5f\x44\x45\x4c\x49\x56\105\122\105\x44\x5f\106\x41\111\114\x55\x52\x45") && in_array($te, array("\x4d\117\x5f\62\x5f\x46\101\103\124\117\x52\137\x4f\x54\x50\x5f\x44\x45\x4c\x49\126\105\122\105\x44\x5f\x53\x55\103\x43\105\123\x53", "\115\x4f\137\62\x5f\106\x41\x43\x54\x4f\x52\137\117\124\120\x5f\104\x45\x4c\111\x56\105\122\105\104\137\x46\101\x49\114\x55\x52\x45"))) {
goto lN;
}
if ((get_site_option("\x6d\x6f\137\x77\160\156\163\137\x76\145\162\x69\146\x79\137\x63\165\x73\164\x6f\155\x65\162") == "\164\x72\x75\145" || $TX && !$Tp) && $te == "\115\x4f\x5f\x32\137\x46\x41\x43\x54\x4f\x52\x5f\126\x45\122\x49\106\x59\137\x43\x55\x53\x54\x4f\115\x45\x52") {
goto Ww;
}
if (!$ce->icr()) {
goto Js;
}
if (get_site_option("\155\x6f\x5f\62\146\141\x63\x74\x6f\x72\137\x61\x64\x6d\x69\x6e\137\162\x65\x67\151\163\x74\x72\141\x74\151\157\x6e\x5f\x73\164\x61\x74\x75\x73") == "\x4d\x4f\x5f\62\x5f\x46\101\x43\124\117\122\x5f\103\x55\123\124\117\115\x45\x52\137\x56\x45\122\x49\106\131\x5f\x4c\x49\x43\105\116\x53\105\137\113\x45\131") {
goto W7;
}
$vj = $TX;
$Yt = MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\x6f\62\x66\x5f\143\165\163\164\x6f\x6d\x65\162\113\x65\x79");
$VQ = MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\x6f\62\146\x5f\x61\x70\x69\137\x6b\145\171");
$j_ = MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\157\x32\x66\x5f\x63\165\163\164\157\x6d\x65\x72\x5f\x74\157\153\145\x6e");
$mI = MoWpnsUtility::get_mo2f_multisite_compatible("\155\x6f\x32\x66\x5f\x61\x70\x70\137\163\145\x63\162\x65\x74");
$w4 = MoWpnsUtility::get_mo2f_db_option("\x63\x6d\x56\x74\131\127\154\x75\x61\127\x35\156\x54\x31\122\121", "\163\x69\164\145\x5f\157\x70\164\151\157\156");
$w4 = $w4 ? $w4 : 0;
$ld = get_site_option("\x63\155\126\x74\x59\127\x6c\x75\141\x57\x35\156\x54\x31\122\121\126\110\x4a\150\142\156\x4e\x68\x59\x33\122\160\x62\62\65\172") ? get_site_option("\x63\155\x56\x74\131\x57\154\x75\x61\x57\65\x6e\124\61\x52\121\x56\x48\112\150\x62\156\116\150\131\63\122\160\x62\62\x35\172") : 0;
include $WC . "\x76\x69\x65\x77\x73" . DIRECTORY_SEPARATOR . "\141\x63\143\157\165\x6e\164" . DIRECTORY_SEPARATOR . "\x70\x72\157\146\151\x6c\145\56\x70\150\x70";
goto oY;
W7:
include $WC . "\166\x69\x65\x77\163" . DIRECTORY_SEPARATOR . "\x74\x77\157\x66\x61" . DIRECTORY_SEPARATOR . "\164\167\157\x5f\146\x61\137\x75\x73\145\162\x5f\x70\x72\157\146\151\x6c\x65\x2e\160\150\x70";
mo2f_show_license_page();
oY:
goto D3;
lN:
$ur = MoWpnsUtility::get_mo2f_multisite_compatible("\155\157\x5f\167\160\156\163\137\141\x64\155\151\156\x5f\160\x68\157\156\145") ? MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\x6f\137\167\x70\156\x73\x5f\x61\x64\155\151\156\x5f\160\x68\x6f\156\x65") : '';
include $WC . "\x76\151\145\x77\x73" . DIRECTORY_SEPARATOR . "\x61\x63\143\x6f\165\156\164" . DIRECTORY_SEPARATOR . "\x76\x65\x72\151\x66\x79\56\x70\x68\x70";
goto D3;
Ww:
$X8 = $TX ? $TX : '';
include $WC . "\166\151\x65\167\163" . DIRECTORY_SEPARATOR . "\x61\x63\x63\157\x75\156\164" . DIRECTORY_SEPARATOR . "\x6c\157\147\x69\156\x2e\160\x68\160";
goto D3;
Js:
delete_site_option("\x70\x61\163\x73\x77\x6f\x72\144\x5f\x6d\151\x73\155\x61\x74\143\x68");
update_site_option("\155\x6f\x5f\x77\x70\156\x73\x5f\156\x65\x77\x5f\x72\x65\x67\151\163\x74\x72\x61\x74\151\x6f\x6e", "\x74\x72\165\x65");
update_site_option("\155\x6f\137\62\146\141\143\x74\x6f\162\x5f\165\163\145\x72\137\x72\145\147\151\x73\164\x72\141\164\151\157\x6e\137\163\x74\x61\164\x75\x73", "\122\x45\x47\111\123\x54\x52\101\x54\111\117\116\x5f\123\x54\101\122\x54\105\104");
include $WC . "\166\x69\145\x77\163" . DIRECTORY_SEPARATOR . "\x61\143\x63\157\x75\156\164" . DIRECTORY_SEPARATOR . "\x72\145\147\151\x73\164\x65\x72\56\x70\x68\160";
D3:
function _register_customer($post)
{
global $ce, $aq;
$user = wp_get_current_user();
$vj = sanitize_email($post["\145\155\x61\x69\154"]);
$v0 = $_SERVER["\x53\x45\122\x56\105\x52\x5f\x4e\x41\115\105"];
$q9 = sanitize_text_field($post["\x70\x61\x73\x73\x77\x6f\x72\144"]);
$bS = sanitize_text_field($post["\x63\x6f\156\x66\x69\162\x6d\x50\141\163\163\167\x6f\162\x64"]);
if (!(strlen($q9) < 6 || strlen($bS) < 6)) {
goto U1;
}
do_action("\167\x70\156\x73\137\x73\x68\157\x77\x5f\155\145\x73\x73\141\x67\x65", MoWpnsMessages::mo2fa_wpns_showMessage("\x50\x41\x53\x53\137\x4c\x45\x4e\x47\124\x48"), "\x45\x52\x52\117\122");
return;
U1:
if (!($q9 != $bS)) {
goto Sa;
}
do_action("\x77\160\x6e\163\x5f\163\150\157\167\137\x6d\x65\163\163\x61\147\x65", MoWpnsMessages::mo2fa_wpns_showMessage("\x50\101\123\x53\137\x4d\111\123\x4d\x41\x54\103\110"), "\105\x52\x52\117\x52");
return;
Sa:
if (!(MoWpnsUtility::check_empty_or_null($vj) || MoWpnsUtility::check_empty_or_null($q9) || MoWpnsUtility::check_empty_or_null($bS))) {
goto b2;
}
do_action("\167\160\156\163\137\x73\x68\157\x77\x5f\155\145\163\163\x61\147\x65", MoWpnsMessages::mo2fa_wpns_showMessage("\122\105\121\x55\111\122\x45\x44\137\106\111\105\114\104\123"), "\x45\x52\x52\x4f\122");
return;
b2:
update_site_option("\x6d\x6f\62\146\x5f\x65\x6d\141\151\x6c", $vj);
update_site_option("\x6d\157\137\167\x70\156\x73\x5f\143\x6f\155\x70\x61\x6e\171", $v0);
update_site_option("\x6d\x6f\x5f\x77\x70\x6e\163\137\x70\x61\x73\163\167\157\x72\144", $q9);
$eO = new MocURL();
$CG = json_decode($eO->check_customer($vj), true);
$aq->insert_user($user->ID);
switch ($CG["\x73\164\141\x74\165\x73"]) {
case "\103\x55\x53\x54\x4f\x4d\105\x52\137\x4e\x4f\124\x5f\x46\117\125\116\x44":
$GF = json_decode($eO->create_customer($vj, $v0, $q9, $ca = '', $xn = '', $CZ = ''), true);
if (!(strcasecmp($GF["\x73\164\141\x74\165\163"], "\x53\125\x43\103\105\x53\123") == 0)) {
goto TX;
}
update_site_option(base64_encode("\164\157\164\141\x6c\125\x73\x65\162\x73\103\x6c\157\165\144"), get_site_option(base64_encode("\x74\x6f\164\141\x6c\x55\163\x65\162\163\x43\154\157\x75\x64")) + 1);
update_site_option("\x6d\x6f\x32\x66\x5f\x65\155\x61\x69\154", $vj);
save_success_customer_config($vj, $GF["\151\x64"], $GF["\x61\x70\x69\x4b\145\171"], $GF["\164\157\x6b\145\x6e"], $GF["\x61\160\160\123\x65\143\162\x65\x74"]);
_get_current_customer($vj, $q9);
TX:
goto qB;
default:
_get_current_customer($vj, $q9);
goto qB;
}
tW:
qB:
}
function _goto_sign_in_page()
{
global $aq;
$user = wp_get_current_user();
update_site_option("\155\x6f\x5f\x77\160\x6e\163\x5f\166\145\x72\151\146\x79\137\143\165\163\164\x6f\155\145\162", "\x74\x72\165\145");
}
function _revert_back_registration()
{
global $aq;
$user = wp_get_current_user();
delete_site_option("\155\157\62\146\x5f\145\x6d\x61\151\x6c");
delete_site_option("\155\x6f\x5f\x77\160\x6e\x73\137\x72\x65\147\151\x73\x74\x72\141\164\151\x6f\156\137\163\x74\x61\x74\165\163");
delete_site_option("\155\x6f\x5f\167\x70\x6e\163\x5f\166\145\x72\x69\x66\x79\x5f\x63\165\163\x74\x6f\x6d\x65\162");
update_site_option("\155\x6f\137\x32\x66\x61\143\x74\157\x72\x5f\165\163\x65\x72\137\162\x65\x67\151\163\x74\162\x61\x74\x69\x6f\156\137\x73\x74\141\x74\165\x73", '');
}
function _reset_password()
{
$eO = new MocURL();
$y9 = json_decode($eO->mo_wpns_forgot_password());
if (!($y9->status == "\x53\x55\x43\103\x45\x53\123")) {
goto rW;
}
do_action("\x77\160\156\x73\x5f\x73\150\x6f\x77\137\x6d\145\163\163\x61\x67\x65", MoWpnsMessages::mo2fa_wpns_showMessage("\122\x45\x53\105\124\137\x50\x41\x53\x53"), "\x53\x55\x43\x43\105\123\123");
rW:
}
function _verify_customer($post)
{
global $ce;
$vj = sanitize_email($post["\x65\155\141\x69\154"]);
$q9 = sanitize_text_field($post["\x70\141\163\x73\167\157\x72\x64"]);
if (!($ce->check_empty_or_null($vj) || $ce->check_empty_or_null($q9))) {
goto Kb;
}
do_action("\x77\x70\x6e\x73\137\163\150\x6f\167\x5f\155\x65\163\163\x61\147\145", MoWpnsMessages::mo2fa_wpns_showMessage("\122\x45\x51\x55\111\x52\x45\104\137\x46\111\x45\114\x44\x53"), "\105\x52\122\x4f\x52");
return;
Kb:
_get_current_customer($vj, $q9);
}
function _get_current_customer($vj, $q9)
{
global $aq;
$user = wp_get_current_user();
$eO = new MocURL();
$CG = $eO->get_customer_key($vj, $q9);
$GF = json_decode($CG, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto jI;
}
update_site_option("\x6d\x6f\x5f\62\146\141\x63\164\x6f\x72\x5f\165\x73\x65\162\x5f\x72\x65\x67\x69\163\x74\x72\x61\164\x69\157\x6e\x5f\163\x74\x61\x74\x75\163", "\x4d\x4f\137\x32\x5f\x46\101\x43\x54\117\122\137\126\105\122\111\106\131\x5f\103\125\x53\124\x4f\x4d\x45\122");
update_site_option("\155\157\137\167\x70\156\x73\x5f\x76\145\x72\x69\146\171\137\143\165\163\x74\x6f\155\x65\x72", "\164\x72\165\145");
delete_site_option("\155\x6f\x5f\167\x70\x6e\163\137\x6e\145\167\x5f\x72\145\x67\151\163\164\x72\141\x74\x69\157\x6e");
do_action("\x77\160\x6e\163\137\163\150\157\167\x5f\155\145\x73\x73\x61\147\x65", MoWpnsMessages::mo2fa_wpns_showMessage("\101\103\103\117\x55\116\x54\137\x45\x58\111\123\x54\123"), "\x45\122\122\117\x52");
goto EW;
jI:
if (!isset($GF["\160\150\x6f\x6e\145"])) {
goto wW;
}
update_site_option("\x6d\157\137\x77\160\156\163\137\x61\x64\155\151\x6e\137\160\x68\x6f\156\145", $GF["\160\150\157\x6e\x65"]);
wW:
update_site_option("\155\157\62\146\137\x65\x6d\141\x69\x6c", $vj);
save_success_customer_config($vj, $GF["\x69\x64"], $GF["\141\x70\151\x4b\x65\171"], $GF["\164\157\153\145\156"], $GF["\x61\160\x70\123\x65\x63\x72\145\164"]);
do_action("\167\x70\x6e\163\x5f\163\x68\157\167\x5f\155\x65\x73\163\141\x67\x65", MoWpnsMessages::mo2fa_wpns_showMessage("\x52\105\107\x5f\123\x55\x43\103\x45\x53\x53"), "\x53\x55\x43\103\x45\123\123");
update_site_option(base64_encode("\164\157\x74\x61\x6c\125\x73\x65\162\163\103\154\x6f\165\144"), get_site_option(base64_encode("\x74\x6f\164\x61\154\x55\x73\145\162\163\x43\154\157\x75\144")) + 1);
$rQ = new Customer_Cloud_Setup();
$Tp = MoWpnsUtility::get_mo2f_multisite_compatible("\155\157\62\146\x5f\143\165\163\164\x6f\x6d\x65\x72\113\145\171");
$Lv = MoWpnsUtility::get_mo2f_multisite_compatible("\155\157\62\146\x5f\x61\x70\151\x5f\153\145\x79");
$CG = json_decode($rQ->get_customer_transactions($Tp, $Lv, "\120\122\x45\115\x49\x55\x4d"), true);
if ($CG["\x73\164\x61\x74\x75\163"] == "\123\125\103\103\x45\x53\x53") {
goto po;
}
update_site_option("\155\x6f\62\146\x5f\x6c\x69\x63\145\x6e\x73\145\x5f\164\171\x70\145", "\x44\x45\x4d\x4f");
$CG = json_decode($rQ->get_customer_transactions($Tp, $Lv, "\104\105\115\x4f"), true);
goto cR;
po:
update_site_option("\155\x6f\x32\x66\137\154\151\143\145\x6e\163\145\x5f\164\x79\160\x65", "\x50\122\105\115\x49\x55\115");
cR:
if (isset($CG["\x73\x6d\163\x52\x65\x6d\x61\x69\156\x69\x6e\x67"])) {
goto Ie;
}
if ($CG["\163\164\141\164\165\x73"] == "\x53\125\103\103\105\123\123") {
goto mq;
}
goto nL;
Ie:
update_site_option("\143\x6d\x56\164\131\x57\154\x75\141\127\x35\156\124\x31\122\121\x56\x48\x4a\150\142\156\116\x68\x59\x33\x52\160\x62\x32\65\172", $CG["\163\x6d\163\x52\x65\x6d\141\x69\156\151\x6e\147"]);
goto nL;
mq:
update_site_option("\143\155\x56\164\131\127\x6c\x75\141\x57\65\x6e\124\61\122\x51\126\x48\112\150\x62\x6e\x4e\150\x59\63\x52\x70\142\x32\x35\x7a", 0);
nL:
if (!isset($CG["\145\155\x61\x69\154\122\x65\x6d\141\151\x6e\151\x6e\147"])) {
goto RL;
}
if ($CG["\x65\155\141\x69\154\122\145\155\141\x69\x6e\x69\x6e\147"] > 30) {
goto ar;
}
if ($CG["\145\155\141\151\154\122\145\x6d\x61\151\x6e\x69\x6e\x67"] == 10 and get_site_option("\143\x6d\x56\x74\131\x57\154\165\141\x57\x35\156\x54\x31\x52\x51") > 30) {
goto DX;
}
goto he;
ar:
$q3 = $CG["\145\155\141\151\154\x52\145\155\x61\x69\156\151\156\x67"];
update_site_option("\x63\x6d\126\164\131\x57\x6c\x75\141\x57\65\x6e\x54\x31\122\x51", $q3);
update_site_option("\x45\155\x61\151\x6c\124\x72\x61\156\x73\x61\x63\164\151\157\x6e\x43\x75\x72\x72\145\156\164", $CG["\x65\155\x61\151\x6c\x52\145\x6d\141\151\x6e\151\156\147"]);
goto he;
DX:
update_site_option("\x63\x6d\x56\x74\131\x57\154\x75\x61\x57\x35\156\124\x31\x52\121", 30);
he:
RL:
EW:
}
function save_success_customer_config($vj, $IZ, $fY, $j_, $mI)
{
global $aq;
$user = wp_get_current_user();
update_site_option("\x6d\157\62\x66\137\143\165\x73\x74\157\x6d\145\x72\x4b\145\x79", $IZ);
update_site_option("\155\x6f\x32\146\x5f\141\160\151\x5f\x6b\x65\171", $fY);
update_site_option("\155\157\x32\146\137\143\165\x73\x74\157\155\145\162\x5f\x74\x6f\x6b\x65\156", $j_);
update_site_option("\155\157\x32\146\137\x61\160\160\x5f\163\x65\x63\x72\x65\x74", $mI);
update_site_option("\x6d\x6f\x5f\x77\160\156\163\137\x65\156\141\142\x6c\x65\137\154\157\x67\x5f\x72\145\161\165\145\x73\164\x73", true);
update_site_option("\155\157\x32\146\x5f\155\151\x6e\151\157\162\141\x6e\147\145\137\141\144\155\x69\156", $user->ID);
if (MO2F_IS_ONPREM) {
goto Vn;
}
update_site_option("\155\x6f\137\62\146\x61\143\164\x6f\x72\x5f\141\x64\x6d\151\156\x5f\162\x65\147\151\163\x74\x72\x61\x74\x69\x6f\156\137\x73\x74\141\164\165\163", "\115\117\x5f\x32\137\x46\101\x43\124\x4f\122\137\103\x55\123\124\117\x4d\x45\x52\x5f\x52\105\107\111\x53\x54\x45\122\x45\x44\x5f\123\125\x43\103\105\123\123");
goto K6;
Vn:
update_site_option("\155\157\137\62\x66\141\143\x74\157\162\x5f\x61\144\155\151\x6e\x5f\x72\x65\x67\x69\x73\164\x72\x61\x74\151\x6f\x6e\x5f\163\164\x61\164\165\x73", "\x4d\117\137\x32\137\106\x41\103\124\117\x52\137\103\x55\x53\124\x4f\x4d\x45\x52\x5f\x56\x45\122\x49\x46\131\137\114\x49\x43\x45\116\x53\105\x5f\x4b\105\131");
K6:
$aq->update_user_details($user->ID, array("\155\x6f\x32\146\137\x75\x73\x65\x72\x5f\145\155\141\x69\x6c" => $vj, "\165\x73\x65\x72\137\162\145\x67\x69\x73\164\162\141\x74\151\x6f\x6e\x5f\x77\151\164\x68\137\x6d\x69\156\151\157\x72\x61\x6e\x67\145" => "\x53\125\103\103\x45\x53\123"));
$qf = new Two_Factor_Setup();
$CY = json_decode($qf->mo2f_get_userinfo($vj), true);
$uV = "\116\117\116\x45";
if (!(json_last_error() == JSON_ERROR_NONE)) {
goto d2;
}
if (!($CY["\163\164\141\164\165\163"] == "\x53\x55\103\103\x45\x53\x53")) {
goto lV;
}
$uV = mo2f_update_and_sync_user_two_factor($user->ID, $CY);
lV:
d2:
$jn = '';
if ($uV == "\105\x4d\x41\111\x4c") {
goto ll;
}
if ($uV != "\x4e\117\x4e\105") {
goto LZ;
}
goto hK;
ll:
$qf->mo2f_update_userinfo($vj, "\116\117\x4e\105", null, '', true);
$jn = "\116\x4f\116\x45";
goto hK;
LZ:
$jn = MO2f_Utility::mo2f_decode_2_factor($uV, "\163\x65\162\166\145\162\164\x6f\167\x70\144\x62");
if (MoWpnsUtility::get_mo2f_db_and_migrate("\x6d\157\x32\x66\137\151\x73\137\116\103", "\x67\x65\x74\x5f\157\160\164\x69\157\156") == 0) {
goto AX;
}
if (!in_array($jn, array("\105\x6d\x61\151\x6c\x20\126\x65\162\151\x66\151\143\x61\164\x69\x6f\156", "\101\x75\164\x68\171\40\101\x75\x74\150\x65\156\164\151\x63\x61\x74\x6f\x72", "\117\x54\120\40\x6f\166\x65\162\40\123\x4d\123"))) {
goto di;
}
$qf->mo2f_update_userinfo($vj, "\x4e\x4f\116\x45", null, '', true);
di:
goto Rr;
AX:
$XP = str_replace("\x20", '', $jn);
Rr:
hK:
$Sf = Mo2fConstants::langTranslate("\x41\x43\x43\117\125\x4e\124\x5f\x52\x45\x54\122\x49\x45\126\x45\104\x5f\123\125\103\x43\x45\x53\x53\x46\x55\x4c\114\131");
if (!($jn != "\x4e\117\116\105" && MoWpnsUtility::get_mo2f_db_and_migrate("\x6d\x6f\62\x66\137\x69\x73\137\116\103", "\x67\145\164\x5f\x6f\160\x74\x69\x6f\x6e") == 0)) {
goto JP;
}
$Sf .= "\x20\74\142\x3e" . $jn . "\x3c\57\142\76\40" . Mo2fConstants::langTranslate("\104\105\106\101\125\114\x54\137\x32\x4e\104\137\x46\x41\x43\x54\x4f\x52") . "\56\x20";
JP:
delete_user_meta($user->ID, "\x72\x65\147\151\163\x74\x65\x72\137\141\x63\x63\157\165\x6e\164");
$X0 = get_mo2f_multisite_compatible("\x6d\x6f\x32\146\137\x63\165\x73\x74\x6f\155\x65\x72\137\x73\x65\154\145\143\x74\x65\144\137\x70\x6c\141\x6e");
if (!empty($X0)) {
goto nA;
}
if ($uV == "\116\x4f\x4e\105") {
goto LT;
}
goto ef;
nA:
delete_site_option("\x6d\x6f\62\146\137\143\165\163\x74\x6f\x6d\x65\x72\137\163\x65\x6c\x65\143\x74\x65\x64\137\160\x6c\x61\156");
if (MoWpnsUtility::get_mo2f_db_and_migrate("\x6d\x6f\62\x66\137\x70\154\141\156\x6e\x61\155\145", "\x73\x69\x74\145\137\x6f\x70\x74\151\157\156") == "\141\x64\x64\157\x6e\137\x70\x6c\x61\156") {
goto uB;
}
echo "\11\x9\x9\x9\x3c\x73\143\162\x69\x70\x74\76\167\x69\x6e\x64\157\167\x2e\154\x6f\x63\141\x74\x69\x6f\x6e\x2e\x68\162\x65\146\x3d\x22\141\144\155\x69\156\56\x70\150\x70\77\x70\x61\147\145\75\155\x6f\x5f\x32\x66\141\x5f\165\160\x67\x72\141\144\145\x22\x3b\x3c\57\x73\x63\162\x69\x70\x74\x3e\12\x9\11\11\11";
goto CP;
uB:
echo "\x3c\163\x63\x72\x69\160\x74\76\x77\x69\156\144\157\167\x2e\154\x6f\143\x61\164\151\157\x6e\56\150\162\x65\146\x3d\x22\x61\144\x6d\x69\x6e\x2e\x70\x68\160\x3f\x70\x61\147\x65\75\x6d\x6f\x5f\x32\146\x61\137\141\x64\144\x6f\156\163\42\73\x3c\x2f\x73\143\x72\x69\160\164\x3e\12\x9\x9\x9";
CP:
goto ef;
LT:
if (!get_user_meta($user->ID, "\x72\x65\147\x69\x73\x74\145\162\x5f\x61\143\143\x6f\165\156\164\137\x70\157\x70\165\x70", true)) {
goto hl;
}
update_user_meta($user->ID, "\x63\x6f\x6e\146\x69\x67\x75\162\x65\137\x32\x46\x41", 1);
hl:
ef:
update_site_option("\x6d\x6f\62\x66\x5f\155\145\x73\x73\141\147\145", $Sf);
delete_user_meta($user->ID, "\x72\145\147\x69\163\x74\145\162\x5f\141\x63\143\x6f\165\x6e\164\x5f\160\157\x70\x75\160");
delete_site_option("\155\157\137\167\x70\x6e\x73\x5f\x76\145\162\151\x66\x79\137\143\165\163\164\x6f\x6d\x65\162");
delete_site_option("\x6d\x6f\137\x77\x70\156\x73\x5f\162\x65\x67\151\x73\164\162\x61\164\x69\157\156\x5f\x73\x74\x61\164\x75\163");
delete_site_option("\155\157\x5f\167\160\156\163\137\160\x61\x73\163\167\x6f\162\144");
}
Function Calls
None |
Stats
MD5 | ea9cc7e654f70be48027239e7943d04f |
Eval Count | 0 |
Decode Time | 64 ms |