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 $cb = 1; global $aq; $vj = $aq->get_user_detail("\x6d\x6f\62\146\137\x75\x73\..

Decoded Output download

<?php 
 
 
$cb = 1; 
global $aq; 
$vj = $aq->get_user_detail("mo2f_user_email", get_current_user_id()); 
if (!($vj == '' or !isset($vj))) { 
    goto iw; 
} 
$vj = wp_get_current_user()->user_email; 
iw: 
if (isset($vj)) { 
    goto oV; 
} 
$cb = 0; 
goto wS; 
oV: 
$cb = 1; 
wS: 
$Xt = add_query_arg(array("page" => "mo_2fa_upgrade"), $_SERVER["REQUEST_URI"]); 
if (!(current_user_can("manage_options") && isset($_POST["option"]))) { 
    goto C3; 
} 
switch ($_POST["option"]) { 
    case "mo2f_enable_2FA_on_login_page_option": 
        wpns_handle_enable_2fa_login_prompt($_POST); 
        goto lY; 
} 
eO: 
lY: 
C3: 
require $WC . "views" . DIRECTORY_SEPARATOR . "twofa" . DIRECTORY_SEPARATOR . "setup_twofa.php"; 
function wpns_handle_enable_2fa_login_prompt($J5) 
{ 
    if (MoWpnsUtility::get_mo2f_db_and_migrate("mo2f_enable_2fa_prompt_on_login_page", "get_option") == 1) { 
        goto iD; 
    } 
    if (isset($J5["mo2f_enable_2fa_prompt_on_login_page"])) { 
        goto Bj; 
    } 
    do_action("wpns_show_message", MoWpnsMessages::mo2fa_wpns_showMessage("TWO_FA_ON_LOGIN_PROMPT_DISABLED"), "ERROR"); 
    goto n4; 
    Bj: 
    do_action("wpns_show_message", MoWpnsMessages::mo2fa_wpns_showMessage("TWO_FA_PROMPT_LOGIN_PAGE"), "ERROR"); 
    n4: 
    goto Tm; 
    iD: 
    if (!get_site_option("mo2f_login_option")) { 
        goto jO; 
    } 
    do_action("wpns_show_message", MoWpnsMessages::mo2fa_wpns_showMessage("TWO_FA_ON_LOGIN_PROMPT_ENABLED"), "SUCCESS"); 
    goto PQ; 
    jO: 
    update_site_option("mo2f_login_option", 1); 
    do_action("wpns_show_message", MoWpnsMessages::mo2fa_wpns_showMessage("TWO_FA_ON_LOGIN_PROMPT_ENABLED_PWDLESS"), "SUCCESS"); 
    PQ: 
    Tm: 
} 
 ?>

Did this file decode correctly?

Original Code

<?php


$cb = 1;
global $aq;
$vj = $aq->get_user_detail("\x6d\x6f\62\146\137\x75\x73\145\162\x5f\x65\x6d\x61\151\154", get_current_user_id());
if (!($vj == '' or !isset($vj))) {
    goto iw;
}
$vj = wp_get_current_user()->user_email;
iw:
if (isset($vj)) {
    goto oV;
}
$cb = 0;
goto wS;
oV:
$cb = 1;
wS:
$Xt = add_query_arg(array("\160\141\x67\145" => "\155\157\137\x32\146\x61\137\165\160\x67\x72\x61\144\145"), $_SERVER["\x52\105\x51\x55\105\123\124\137\x55\x52\111"]);
if (!(current_user_can("\155\x61\156\141\x67\145\137\157\160\164\x69\x6f\x6e\163") && isset($_POST["\x6f\x70\164\151\x6f\x6e"]))) {
    goto C3;
}
switch ($_POST["\157\x70\164\x69\157\x6e"]) {
    case "\x6d\157\62\146\x5f\x65\x6e\141\142\154\x65\x5f\62\x46\101\137\157\156\x5f\x6c\x6f\147\151\156\137\x70\x61\147\145\137\157\x70\x74\x69\157\x6e":
        wpns_handle_enable_2fa_login_prompt($_POST);
        goto lY;
}
eO:
lY:
C3:
require $WC . "\166\x69\145\x77\163" . DIRECTORY_SEPARATOR . "\x74\x77\x6f\146\x61" . DIRECTORY_SEPARATOR . "\163\x65\x74\165\160\x5f\164\x77\x6f\146\x61\56\x70\x68\160";
function wpns_handle_enable_2fa_login_prompt($J5)
{
    if (MoWpnsUtility::get_mo2f_db_and_migrate("\155\157\x32\146\x5f\x65\x6e\141\142\x6c\x65\x5f\x32\x66\141\137\160\162\157\x6d\160\x74\x5f\157\x6e\x5f\x6c\x6f\147\x69\156\137\160\x61\x67\x65", "\147\x65\x74\x5f\157\160\x74\151\x6f\x6e") == 1) {
        goto iD;
    }
    if (isset($J5["\155\157\x32\146\137\145\x6e\141\142\154\145\137\62\146\x61\x5f\x70\162\157\155\x70\x74\137\x6f\x6e\x5f\x6c\157\147\151\156\x5f\160\141\147\145"])) {
        goto Bj;
    }
    do_action("\x77\x70\156\x73\137\x73\150\x6f\167\137\x6d\x65\x73\163\141\x67\145", MoWpnsMessages::mo2fa_wpns_showMessage("\124\127\117\x5f\106\x41\137\x4f\x4e\x5f\114\117\x47\111\116\x5f\x50\x52\117\x4d\120\124\x5f\x44\111\x53\101\102\x4c\105\104"), "\x45\122\x52\x4f\x52");
    goto n4;
    Bj:
    do_action("\x77\x70\x6e\163\137\x73\x68\x6f\167\137\155\x65\x73\163\141\x67\x65", MoWpnsMessages::mo2fa_wpns_showMessage("\124\127\x4f\x5f\x46\101\x5f\x50\122\x4f\x4d\x50\x54\137\114\117\x47\111\x4e\x5f\120\x41\107\105"), "\105\122\x52\x4f\122");
    n4:
    goto Tm;
    iD:
    if (!get_site_option("\x6d\157\x32\146\137\x6c\x6f\147\151\x6e\137\x6f\x70\x74\151\157\x6e")) {
        goto jO;
    }
    do_action("\167\x70\x6e\163\137\x73\x68\x6f\167\x5f\x6d\x65\163\x73\141\x67\x65", MoWpnsMessages::mo2fa_wpns_showMessage("\124\127\117\137\x46\101\137\x4f\x4e\137\x4c\117\x47\x49\x4e\x5f\x50\122\x4f\115\x50\124\x5f\x45\x4e\101\102\x4c\105\104"), "\123\125\103\103\x45\123\123");
    goto PQ;
    jO:
    update_site_option("\x6d\x6f\62\x66\x5f\154\157\x67\151\156\x5f\x6f\160\164\151\x6f\156", 1);
    do_action("\x77\160\156\x73\137\163\x68\157\167\x5f\x6d\x65\163\x73\141\147\x65", MoWpnsMessages::mo2fa_wpns_showMessage("\124\127\117\137\106\101\x5f\117\x4e\137\x4c\x4f\x47\x49\116\x5f\120\122\x4f\x4d\x50\124\x5f\105\116\101\102\x4c\x45\x44\x5f\x50\127\104\x4c\x45\123\123"), "\x53\x55\103\103\x45\123\123");
    PQ:
    Tm:
}

Function Calls

None

Variables

None

Stats

MD5 31d5879a8cfea3ba82640f91896b2283
Eval Count 0
Decode Time 43 ms