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 if (defined("\x41\x42\123\120\101\x54\x48")) { goto kE; } exit; kE: de..

Decoded Output download

<?php 
 
 
if (defined("ABSPATH")) { 
    goto kE; 
} 
exit; 
kE: 
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($Z7, &$eR = array()) 
{ 
    foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($Z7, RecursiveDirectoryIterator::KEY_AS_PATHNAME), RecursiveIteratorIterator::CHILD_FIRST) as $eP => $HT) { 
        if (!($HT->isFile() && $HT->isReadable())) { 
            goto Nj; 
        } 
        $eR[$eP] = realpath($HT->getPathname()); 
        Nj: 
        kv: 
    } 
    m1: 
    return $eR; 
} 
function mo_oauth_get_sorted_files($Z7) 
{ 
    $HH = mo_oauth_get_dir_contents($Z7); 
    $cU = array(); 
    $Kq = array(); 
    foreach ($HH as $eP => $NQ) { 
        if (!(strpos($NQ, ".php") !== false)) { 
            goto kV; 
        } 
        if (strpos($NQ, "Interface") !== false) { 
            goto WY; 
        } 
        $Kq[$eP] = $NQ; 
        goto Gg; 
        WY: 
        $cU[$eP] = $NQ; 
        Gg: 
        kV: 
        e4: 
    } 
    tM: 
    return array("interfaces" => $cU, "classes" => $Kq); 
} 
function mo_oauth_include_file($Z7) 
{ 
    if (is_dir($Z7)) { 
        goto cA; 
    } 
    return; 
    cA: 
    $Z7 = mo_oauth_sane_dir_path($Z7); 
    $qr = realpath($Z7); 
    if (!(false !== $qr && !is_dir($Z7))) { 
        goto tK; 
    } 
    return; 
    tK: 
    $H7 = mo_oauth_get_sorted_files($Z7); 
    mo_oauth_require_all($H7["interfaces"]); 
    mo_oauth_require_all($H7["classes"]); 
} 
function mo_oauth_require_all($HH) 
{ 
    foreach ($HH as $eP => $NQ) { 
        require_once $NQ; 
        RE: 
    } 
    sF: 
} 
function mo_oauth_is_valid_file($vE) 
{ 
    return '' !== $vE && "." !== $vE && ".." !== $vE; 
} 
function mo_oauth_get_valid_html($F3 = array()) 
{ 
    $LU = array("strong" => array(), "em" => array(), "b" => array(), "i" => array(), "a" => array("href" => array(), "target" => array())); 
    if (empty($F3)) { 
        goto ya; 
    } 
    return array_merge($F3, $LU); 
    ya: 
    return $LU; 
} 
function mo_oauth_get_version_number() 
{ 
    $ZO = get_file_data(MOC_DIR . "/mo_oauth_settings.php", ["Version"], "plugin"); 
    $So = isset($ZO[0]) ? $ZO[0] : ''; 
    return $So; 
} 
function mo_oauth_sane_dir_path($Z7) 
{ 
    return str_replace("/", DIRECTORY_SEPARATOR, $Z7); 
} 
if (!function_exists("mo_oauth_is_rest")) { 
    function mo_oauth_is_rest() 
    { 
        $P1 = rest_get_url_prefix(); 
        if (!(defined("REST_REQUEST") && REST_REQUEST || isset($_GET["rest_route"]) && strpos(trim(sanitize_text_field(wp_unslash($_GET["rest_route"])), "\/"), $P1, 0) === 0)) { 
            goto NZ; 
        } 
        return true; 
        NZ: 
        global $Ww; 
        if (!($Ww === null)) { 
            goto OG; 
        } 
        $Ww = new WP_Rewrite(); 
        OG: 
        $OL = wp_parse_url(trailingslashit(rest_url())); 
        $tC = wp_parse_url(add_query_arg(array())); 
        return strpos($tC["path"], $OL["path"], 0) === 0; 
    } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php


if (defined("\x41\x42\123\120\101\x54\x48")) {
    goto kE;
}
exit;
kE:
define("\115\117\103\x5f\104\x49\122", plugin_dir_path(__FILE__));
define("\x4d\x4f\103\137\x55\122\x4c", plugin_dir_url(__FILE__));
define("\115\x4f\x5f\x55\111\x44", "\104\106\70\x56\x4b\x4a\x4f\65\106\x44\x48\132\101\x52\x42\x52\65\132\x44\x53\62\126\65\x4a\66\66\x55\62\x4e\104\122");
define("\x56\105\x52\123\x49\x4f\116", "\155\x6f\137\163\x74\x61\x6e\144\141\x72\144\x5f\x76\x65\162\x73\151\x6f\156");
mo_oauth_include_file(MOC_DIR . "\x2f\143\154\x61\163\163\x65\163\57\143\157\x6d\155\x6f\156");
mo_oauth_include_file(MOC_DIR . "\57\x63\154\x61\x73\163\145\163\57\106\x72\145\x65");
mo_oauth_include_file(MOC_DIR . "\57\143\154\141\163\x73\x65\x73\x2f\x53\164\141\x6e\x64\x61\x72\x64");
mo_oauth_include_file(MOC_DIR . "\57\143\x6c\141\163\163\x65\163\x2f\x50\162\145\155\151\165\x6d");
mo_oauth_include_file(MOC_DIR . "\x2f\x63\x6c\141\163\x73\145\163\x2f\105\x6e\x74\145\162\x70\x72\x69\163\145");
function mo_oauth_get_dir_contents($Z7, &$eR = array())
{
    foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($Z7, RecursiveDirectoryIterator::KEY_AS_PATHNAME), RecursiveIteratorIterator::CHILD_FIRST) as $eP => $HT) {
        if (!($HT->isFile() && $HT->isReadable())) {
            goto Nj;
        }
        $eR[$eP] = realpath($HT->getPathname());
        Nj:
        kv:
    }
    m1:
    return $eR;
}
function mo_oauth_get_sorted_files($Z7)
{
    $HH = mo_oauth_get_dir_contents($Z7);
    $cU = array();
    $Kq = array();
    foreach ($HH as $eP => $NQ) {
        if (!(strpos($NQ, "\56\160\x68\160") !== false)) {
            goto kV;
        }
        if (strpos($NQ, "\x49\156\164\x65\162\146\x61\x63\145") !== false) {
            goto WY;
        }
        $Kq[$eP] = $NQ;
        goto Gg;
        WY:
        $cU[$eP] = $NQ;
        Gg:
        kV:
        e4:
    }
    tM:
    return array("\x69\x6e\x74\x65\x72\x66\141\143\x65\163" => $cU, "\x63\x6c\141\x73\x73\x65\163" => $Kq);
}
function mo_oauth_include_file($Z7)
{
    if (is_dir($Z7)) {
        goto cA;
    }
    return;
    cA:
    $Z7 = mo_oauth_sane_dir_path($Z7);
    $qr = realpath($Z7);
    if (!(false !== $qr && !is_dir($Z7))) {
        goto tK;
    }
    return;
    tK:
    $H7 = mo_oauth_get_sorted_files($Z7);
    mo_oauth_require_all($H7["\x69\156\x74\x65\162\x66\141\143\145\x73"]);
    mo_oauth_require_all($H7["\x63\x6c\141\x73\x73\145\163"]);
}
function mo_oauth_require_all($HH)
{
    foreach ($HH as $eP => $NQ) {
        require_once $NQ;
        RE:
    }
    sF:
}
function mo_oauth_is_valid_file($vE)
{
    return '' !== $vE && "\56" !== $vE && "\56\56" !== $vE;
}
function mo_oauth_get_valid_html($F3 = array())
{
    $LU = array("\x73\x74\x72\x6f\156\147" => array(), "\145\x6d" => array(), "\x62" => array(), "\151" => array(), "\141" => array("\150\x72\x65\146" => array(), "\164\141\x72\x67\145\164" => array()));
    if (empty($F3)) {
        goto ya;
    }
    return array_merge($F3, $LU);
    ya:
    return $LU;
}
function mo_oauth_get_version_number()
{
    $ZO = get_file_data(MOC_DIR . "\57\x6d\157\137\x6f\141\x75\164\x68\137\163\145\164\x74\151\156\x67\x73\x2e\160\150\160", ["\126\x65\x72\x73\x69\157\x6e"], "\x70\x6c\x75\147\x69\156");
    $So = isset($ZO[0]) ? $ZO[0] : '';
    return $So;
}
function mo_oauth_sane_dir_path($Z7)
{
    return str_replace("\57", DIRECTORY_SEPARATOR, $Z7);
}
if (!function_exists("\155\157\137\157\141\165\164\x68\137\x69\163\137\162\145\163\x74")) {
    function mo_oauth_is_rest()
    {
        $P1 = rest_get_url_prefix();
        if (!(defined("\122\x45\123\124\x5f\x52\x45\x51\125\105\x53\124") && REST_REQUEST || isset($_GET["\162\145\163\x74\137\162\157\x75\x74\145"]) && strpos(trim(sanitize_text_field(wp_unslash($_GET["\x72\x65\163\164\137\x72\157\x75\x74\145"])), "\134\57"), $P1, 0) === 0)) {
            goto NZ;
        }
        return true;
        NZ:
        global $Ww;
        if (!($Ww === null)) {
            goto OG;
        }
        $Ww = new WP_Rewrite();
        OG:
        $OL = wp_parse_url(trailingslashit(rest_url()));
        $tC = wp_parse_url(add_query_arg(array()));
        return strpos($tC["\160\x61\164\x68"], $OL["\x70\x61\164\150"], 0) === 0;
    }
}

Function Calls

None

Variables

None

Stats

MD5 86b3c376ba1f6f5172f4730b6f223758
Eval Count 0
Decode Time 54 ms