Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

if (defined("\x41\102\x53\120\101\x54\x48")) { goto QE; } exit; QE: define("\11..

Decoded Output download

<?   
if (defined("ABSPATH")) { 
    goto QE; 
} 
exit; 
QE: 
define("MOC_DIR", plugin_dir_path(__FILE__)); 
define("MOC_URL", plugin_dir_url(__FILE__)); 
define("MO_UID", "DF8VKJO5FDHZARBR5ZDS2V5J66U2NDR"); 
define("VERSION", "mo_standard_version"); 
mo_oauth_include_file(MOC_DIR . "/classes/common"); 
mo_oauth_include_file(MOC_DIR . "/classes/Free"); 
mo_oauth_include_file(MOC_DIR . "/classes/Standard"); 
mo_oauth_include_file(MOC_DIR . "/classes/Premium"); 
mo_oauth_include_file(MOC_DIR . "/classes/Enterprise"); 
function mo_oauth_get_dir_contents($mA, &$IM = array()) 
{ 
    foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($mA, RecursiveDirectoryIterator::KEY_AS_PATHNAME), RecursiveIteratorIterator::CHILD_FIRST) as $VG => $BZ) { 
        if (!($BZ->isFile() && $BZ->isReadable())) { 
            goto TQ; 
        } 
        $IM[$VG] = realpath($BZ->getPathname()); 
        TQ: 
        WI: 
    } 
    cb: 
    return $IM; 
} 
function mo_oauth_get_sorted_files($mA) 
{ 
    $wG = mo_oauth_get_dir_contents($mA); 
    $c8 = array(); 
    $xe = array(); 
    foreach ($wG as $VG => $rf) { 
        if (!(strpos($rf, ".php") !== false)) { 
            goto fh; 
        } 
        if (strpos($rf, "Interface") !== false) { 
            goto Os; 
        } 
        $xe[$VG] = $rf; 
        goto Sr; 
        Os: 
        $c8[$VG] = $rf; 
        Sr: 
        fh: 
        jl: 
    } 
    A3: 
    return array("interfaces" => $c8, "classes" => $xe); 
} 
function mo_oauth_include_file($mA) 
{ 
    if (is_dir($mA)) { 
        goto ub; 
    } 
    return; 
    ub: 
    $mA = mo_oauth_sane_dir_path($mA); 
    $cG = realpath($mA); 
    if (!(false !== $cG && !is_dir($mA))) { 
        goto m4; 
    } 
    return; 
    m4: 
    $o9 = mo_oauth_get_sorted_files($mA); 
    mo_oauth_require_all($o9["interfaces"]); 
    mo_oauth_require_all($o9["classes"]); 
} 
function mo_oauth_require_all($wG) 
{ 
    foreach ($wG as $VG => $rf) { 
        require_once $rf; 
        nX: 
    } 
    k_: 
} 
function mo_oauth_is_valid_file($jI) 
{ 
    return '' !== $jI && "." !== $jI && ".." !== $jI; 
} 
function mo_oauth_get_valid_html($N7 = array()) 
{ 
    $Ew = array("strong" => array(), "em" => array(), "b" => array(), "i" => array(), "a" => array("href" => array(), "target" => array())); 
    if (empty($N7)) { 
        goto oG; 
    } 
    return array_merge($N7, $Ew); 
    oG: 
    return $Ew; 
} 
function mo_oauth_get_version_number() 
{ 
    $c0 = get_file_data(MOC_DIR . "/mo_oauth_settings.php", ["Version"], "plugin"); 
    $N4 = isset($c0[0]) ? $c0[0] : ''; 
    return $N4; 
} 
function mo_oauth_sane_dir_path($mA) 
{ 
    return str_replace("/", DIRECTORY_SEPARATOR, $mA); 
} 
if (!function_exists("mo_oauth_is_rest")) { 
    function mo_oauth_is_rest() 
    { 
        $O5 = rest_get_url_prefix(); 
        if (!(defined("REST_REQUEST") && REST_REQUEST || isset($_GET["rest_route"]) && strpos(trim($_GET["rest_route"], "\/"), $O5, 0) === 0)) { 
            goto By; 
        } 
        return true; 
        By: 
        global $rH; 
        if (!($rH === null)) { 
            goto pc; 
        } 
        $rH = new WP_Rewrite(); 
        pc: 
        $Pz = wp_parse_url(trailingslashit(rest_url())); 
        $dJ = wp_parse_url(add_query_arg(array())); 
        return strpos($dJ["path"], $Pz["path"], 0) === 0; 
    } 
} 
 ?>

Did this file decode correctly?

Original Code


if (defined("\x41\102\x53\120\101\x54\x48")) {
    goto QE;
}
exit;
QE:
define("\115\x4f\103\137\x44\111\122", plugin_dir_path(__FILE__));
define("\x4d\x4f\x43\137\125\122\x4c", plugin_dir_url(__FILE__));
define("\115\x4f\137\125\111\x44", "\x44\106\70\x56\113\x4a\x4f\x35\x46\104\110\x5a\101\122\x42\x52\x35\132\104\123\x32\x56\x35\x4a\x36\x36\125\62\x4e\104\x52");
define("\x56\x45\x52\x53\x49\117\116", "\155\157\137\x73\164\141\156\144\x61\x72\144\137\166\145\x72\x73\x69\157\x6e");
mo_oauth_include_file(MOC_DIR . "\x2f\143\x6c\x61\163\x73\145\x73\x2f\x63\x6f\x6d\x6d\157\x6e");
mo_oauth_include_file(MOC_DIR . "\57\143\x6c\x61\x73\163\145\x73\x2f\x46\x72\x65\x65");
mo_oauth_include_file(MOC_DIR . "\57\143\x6c\141\163\x73\x65\x73\57\123\x74\141\x6e\144\x61\x72\144");
mo_oauth_include_file(MOC_DIR . "\57\143\154\x61\163\x73\x65\x73\57\x50\x72\145\155\151\x75\x6d");
mo_oauth_include_file(MOC_DIR . "\57\x63\154\141\163\x73\x65\x73\x2f\105\x6e\164\145\x72\160\x72\151\x73\145");
function mo_oauth_get_dir_contents($mA, &$IM = array())
{
    foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($mA, RecursiveDirectoryIterator::KEY_AS_PATHNAME), RecursiveIteratorIterator::CHILD_FIRST) as $VG => $BZ) {
        if (!($BZ->isFile() && $BZ->isReadable())) {
            goto TQ;
        }
        $IM[$VG] = realpath($BZ->getPathname());
        TQ:
        WI:
    }
    cb:
    return $IM;
}
function mo_oauth_get_sorted_files($mA)
{
    $wG = mo_oauth_get_dir_contents($mA);
    $c8 = array();
    $xe = array();
    foreach ($wG as $VG => $rf) {
        if (!(strpos($rf, "\56\x70\x68\x70") !== false)) {
            goto fh;
        }
        if (strpos($rf, "\111\156\164\x65\x72\146\x61\x63\145") !== false) {
            goto Os;
        }
        $xe[$VG] = $rf;
        goto Sr;
        Os:
        $c8[$VG] = $rf;
        Sr:
        fh:
        jl:
    }
    A3:
    return array("\x69\x6e\x74\x65\162\x66\x61\143\x65\x73" => $c8, "\143\x6c\141\x73\x73\x65\x73" => $xe);
}
function mo_oauth_include_file($mA)
{
    if (is_dir($mA)) {
        goto ub;
    }
    return;
    ub:
    $mA = mo_oauth_sane_dir_path($mA);
    $cG = realpath($mA);
    if (!(false !== $cG && !is_dir($mA))) {
        goto m4;
    }
    return;
    m4:
    $o9 = mo_oauth_get_sorted_files($mA);
    mo_oauth_require_all($o9["\151\x6e\x74\x65\162\x66\x61\x63\145\163"]);
    mo_oauth_require_all($o9["\143\x6c\x61\x73\x73\x65\x73"]);
}
function mo_oauth_require_all($wG)
{
    foreach ($wG as $VG => $rf) {
        require_once $rf;
        nX:
    }
    k_:
}
function mo_oauth_is_valid_file($jI)
{
    return '' !== $jI && "\x2e" !== $jI && "\56\56" !== $jI;
}
function mo_oauth_get_valid_html($N7 = array())
{
    $Ew = array("\163\164\x72\157\x6e\x67" => array(), "\145\155" => array(), "\x62" => array(), "\151" => array(), "\141" => array("\x68\162\145\146" => array(), "\x74\x61\162\147\x65\x74" => array()));
    if (empty($N7)) {
        goto oG;
    }
    return array_merge($N7, $Ew);
    oG:
    return $Ew;
}
function mo_oauth_get_version_number()
{
    $c0 = get_file_data(MOC_DIR . "\57\x6d\157\137\157\141\165\164\150\137\163\145\164\x74\151\156\147\163\56\x70\150\160", ["\126\x65\162\x73\x69\x6f\x6e"], "\160\154\x75\147\x69\156");
    $N4 = isset($c0[0]) ? $c0[0] : '';
    return $N4;
}
function mo_oauth_sane_dir_path($mA)
{
    return str_replace("\x2f", DIRECTORY_SEPARATOR, $mA);
}
if (!function_exists("\155\157\x5f\x6f\x61\165\x74\x68\137\151\x73\137\162\x65\163\164")) {
    function mo_oauth_is_rest()
    {
        $O5 = rest_get_url_prefix();
        if (!(defined("\x52\105\123\124\137\122\105\121\125\105\123\124") && REST_REQUEST || isset($_GET["\x72\145\163\164\137\162\157\165\164\x65"]) && strpos(trim($_GET["\162\x65\163\164\137\x72\157\x75\x74\x65"], "\134\57"), $O5, 0) === 0)) {
            goto By;
        }
        return true;
        By:
        global $rH;
        if (!($rH === null)) {
            goto pc;
        }
        $rH = new WP_Rewrite();
        pc:
        $Pz = wp_parse_url(trailingslashit(rest_url()));
        $dJ = wp_parse_url(add_query_arg(array()));
        return strpos($dJ["\x70\x61\x74\x68"], $Pz["\160\x61\164\x68"], 0) === 0;
    }
}

Function Calls

None

Variables

None

Stats

MD5 81b3f7915f8638390ba03d8896c669bc
Eval Count 0
Decode Time 46 ms