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 add_action("\x66\154\x75\163\x68\137\x63\141\x63\150\x65\x5f\145\170\164\x72\x6..

Decoded Output download

<?php 
 
 
add_action("flush_cache_extra_attributes_addon", "flush_cache_extra_attributes_addon", 10); 
function flush_cache_extra_attributes_addon() 
{ 
    if (!(mo_oauth_is_customer_registered_addon() && get_option("mo_oauth_opn_lk_extra_attr_addon"))) { 
        goto B_; 
    } 
    mo_oauth_update_status_extra_attr_addon(); 
    B_: 
} 
function mo_oauth_update_status_extra_attr_addon() 
{ 
    $B5 = get_option("mo_oauth_host_name") . "/moas/api/backupcode/updatestatus"; 
    $um = get_option("mo_oauth_admin_customer_key"); 
    $k0 = get_option("mo_oauth_admin_api_key"); 
    $wD = get_timestamp_extra_attr_addon(); 
    $hX = $um . $wD . $k0; 
    $os = hash("sha512", $hX); 
    $AT = "Customer-Key: " . $um; 
    $V0 = "Timestamp: " . number_format($wD, 0, '', ''); 
    $wH = "Authorization: " . $os; 
    $pW = get_option("mo_oauth_customer_token"); 
    $cR = MOAESEncryption::decrypt_data(get_option("mo_oauth_opn_lk_extra_attr_addon"), $pW); 
    $oV = array("code" => $cR, "customerKey" => $um, "additionalFields" => array("field1" => home_url())); 
    $TO = json_encode($oV); 
    $JD = array("Content-Type" => "application/json", "Customer-Key" => $um, "Timestamp" => $wD, "Authorization" => $os); 
    $ZL = array("method" => "POST", "body" => $TO, "timeout" => "5", "redirection" => "5", "httpversion" => "1.0", "blocking" => true, "headers" => $JD); 
    $Gh = mo_oauth_wp_remote_post($B5, $ZL); 
    return $Gh["body"]; 
} 
function get_timestamp_extra_attr_addon() 
{ 
    $B5 = get_option("mo_oauth_host_name") . "/moas/rest/mobile/get-timestamp"; 
    $Gh = mo_oauth_wp_remote_post($B5); 
    return $Gh["body"]; 
} 
function mo_oauth_wp_remote_post($B5, $ZL = array()) 
{ 
    $Gh = wp_remote_post($B5, $ZL); 
    if (!is_wp_error($Gh)) { 
        goto Mg; 
    } 
    $bJ = new Miniorange_OpenID_SSO(); 
    update_option("mo_oauth_message", "Unable to connect to the Internet. Please try again."); 
    $bJ->mo_oauth_success_message(); 
    goto Sm; 
    Mg: 
    return $Gh; 
    Sm: 
} 
 ?>

Did this file decode correctly?

Original Code

<?php


add_action("\x66\154\x75\163\x68\137\x63\141\x63\150\x65\x5f\145\170\164\x72\x61\137\x61\x74\x74\162\151\x62\165\164\x65\x73\137\x61\x64\144\x6f\x6e", "\x66\154\165\163\150\137\143\x61\x63\x68\145\x5f\x65\170\164\x72\141\137\x61\x74\x74\x72\151\x62\165\164\145\163\137\141\x64\144\157\x6e", 10);
function flush_cache_extra_attributes_addon()
{
    if (!(mo_oauth_is_customer_registered_addon() && get_option("\x6d\157\137\157\141\165\164\150\x5f\x6f\x70\156\x5f\x6c\153\137\x65\170\x74\162\x61\137\x61\164\164\x72\x5f\x61\144\144\157\156"))) {
        goto B_;
    }
    mo_oauth_update_status_extra_attr_addon();
    B_:
}
function mo_oauth_update_status_extra_attr_addon()
{
    $B5 = get_option("\x6d\157\137\157\x61\x75\x74\150\137\x68\x6f\x73\x74\137\x6e\x61\155\145") . "\x2f\155\x6f\141\x73\57\141\160\151\x2f\x62\141\143\x6b\x75\x70\143\157\x64\145\57\x75\160\144\141\x74\145\x73\x74\141\164\165\x73";
    $um = get_option("\x6d\x6f\137\x6f\x61\165\x74\x68\x5f\x61\x64\x6d\151\156\137\x63\x75\x73\164\x6f\x6d\x65\162\x5f\153\x65\171");
    $k0 = get_option("\x6d\x6f\x5f\157\141\x75\x74\x68\x5f\141\144\x6d\151\x6e\137\x61\160\151\137\153\x65\x79");
    $wD = get_timestamp_extra_attr_addon();
    $hX = $um . $wD . $k0;
    $os = hash("\x73\x68\141\65\x31\62", $hX);
    $AT = "\103\x75\163\164\x6f\x6d\145\162\x2d\113\145\171\72\x20" . $um;
    $V0 = "\124\x69\155\145\163\164\141\155\x70\x3a\x20" . number_format($wD, 0, '', '');
    $wH = "\101\165\x74\150\157\x72\151\172\x61\164\151\157\156\72\x20" . $os;
    $pW = get_option("\155\x6f\x5f\157\x61\x75\x74\x68\137\x63\x75\x73\164\x6f\155\145\x72\137\x74\x6f\153\145\156");
    $cR = MOAESEncryption::decrypt_data(get_option("\x6d\157\137\157\x61\x75\164\150\137\157\x70\156\137\x6c\x6b\x5f\145\170\164\x72\x61\137\141\164\164\x72\x5f\141\144\x64\x6f\156"), $pW);
    $oV = array("\143\157\x64\x65" => $cR, "\x63\165\x73\x74\157\x6d\145\x72\x4b\x65\x79" => $um, "\141\x64\144\151\x74\x69\157\x6e\x61\154\106\151\x65\154\x64\163" => array("\x66\x69\145\x6c\144\61" => home_url()));
    $TO = json_encode($oV);
    $JD = array("\x43\157\x6e\x74\145\156\164\x2d\124\171\x70\x65" => "\141\160\x70\154\x69\x63\x61\x74\151\x6f\156\57\152\x73\157\x6e", "\x43\x75\163\x74\x6f\x6d\x65\x72\x2d\113\145\171" => $um, "\x54\151\155\145\x73\x74\x61\155\x70" => $wD, "\x41\165\164\150\x6f\162\151\172\141\x74\151\x6f\x6e" => $os);
    $ZL = array("\155\145\x74\x68\157\144" => "\120\x4f\123\124", "\x62\x6f\144\171" => $TO, "\164\x69\x6d\x65\x6f\165\x74" => "\x35", "\162\x65\x64\x69\162\x65\143\x74\x69\x6f\x6e" => "\x35", "\x68\164\164\x70\166\145\x72\163\x69\x6f\x6e" => "\61\56\60", "\x62\x6c\157\x63\x6b\151\156\x67" => true, "\x68\145\141\x64\x65\162\163" => $JD);
    $Gh = mo_oauth_wp_remote_post($B5, $ZL);
    return $Gh["\x62\x6f\144\x79"];
}
function get_timestamp_extra_attr_addon()
{
    $B5 = get_option("\155\x6f\x5f\x6f\x61\165\x74\x68\x5f\150\x6f\x73\x74\137\x6e\141\x6d\145") . "\57\x6d\x6f\x61\163\x2f\x72\x65\163\164\x2f\155\157\142\x69\154\145\57\x67\x65\x74\x2d\x74\x69\155\145\x73\164\141\155\160";
    $Gh = mo_oauth_wp_remote_post($B5);
    return $Gh["\142\x6f\x64\x79"];
}
function mo_oauth_wp_remote_post($B5, $ZL = array())
{
    $Gh = wp_remote_post($B5, $ZL);
    if (!is_wp_error($Gh)) {
        goto Mg;
    }
    $bJ = new Miniorange_OpenID_SSO();
    update_option("\x6d\x6f\x5f\157\x61\165\x74\x68\x5f\x6d\x65\x73\163\x61\147\x65", "\x55\156\141\142\x6c\x65\x20\x74\157\40\x63\157\156\156\x65\x63\164\x20\164\x6f\40\x74\150\x65\40\111\x6e\x74\x65\162\x6e\x65\x74\x2e\40\x50\154\x65\141\x73\145\40\x74\162\x79\x20\x61\x67\x61\x69\x6e\x2e");
    $bJ->mo_oauth_success_message();
    goto Sm;
    Mg:
    return $Gh;
    Sm:
}

Function Calls

None

Variables

None

Stats

MD5 bc39a3ff3ee00b7998db4742f4a441dd
Eval Count 0
Decode Time 70 ms