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("\101\102\x53\x50\101\124\x48")) { goto aao; } die; aao: d..
Decoded Output download
<?php
if (defined("ABSPATH")) {
goto aao;
}
die;
aao:
define("MOC_DIR", plugin_dir_path(__FILE__));
define("MOC_URL", plugin_dir_url(__FILE__));
define("MO_UID", "DF8VKJO5FDHZARBR5ZDS2V5J66U2NDR");
define("VERSION", "mo_enterprise_version");
include_file(MOC_DIR . "/classes/common");
include_file(MOC_DIR . "/classes/Free");
include_file(MOC_DIR . "/classes/Standard");
include_file(MOC_DIR . "/classes/Premium");
include_file(MOC_DIR . "/classes/Enterprise");
function get_dir_contents($sw, &$Qo = array())
{
foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($sw, RecursiveDirectoryIterator::KEY_AS_PATHNAME), RecursiveIteratorIterator::CHILD_FIRST) as $xO => $Bh) {
if (!($Bh->isFile() && $Bh->isReadable())) {
goto WDj;
}
$Qo[$xO] = realpath($Bh->getPathname());
WDj:
TmL:
}
lPz:
return $Qo;
}
function get_sorted_files($sw)
{
$Wt = get_dir_contents($sw);
$yJ = array();
$qC = array();
foreach ($Wt as $xO => $qr) {
if (!(strpos($qr, ".php") !== false)) {
goto JIC;
}
if (strpos($qr, "Interface") !== false) {
goto Exn;
}
$qC[$xO] = $qr;
goto Mqt;
Exn:
$yJ[$xO] = $qr;
Mqt:
JIC:
W3T:
}
WYu:
return array("interfaces" => $yJ, "classes" => $qC);
}
function include_file($sw)
{
if (is_dir($sw)) {
goto f3S;
}
return;
f3S:
$sw = sane_dir_path($sw);
$T9 = realpath($sw);
if (!(false !== $T9 && !is_dir($sw))) {
goto zcK;
}
return;
zcK:
$P3 = get_sorted_files($sw);
require_all($P3["interfaces"]);
require_all($P3["classes"]);
}
function require_all($Wt)
{
foreach ($Wt as $xO => $qr) {
require_once $qr;
l8L:
}
ubt:
}
function is_valid_file($am)
{
return '' !== $am && "." !== $am && ".." !== $am;
}
function get_valid_html($RU = array())
{
$hm = array("strong" => array(), "em" => array(), "b" => array(), "i" => array(), "a" => array("href" => array(), "target" => array()));
if (empty($RU)) {
goto FFb;
}
return array_merge($RU, $hm);
FFb:
return $hm;
}
function get_version_number()
{
$oX = get_file_data(MOC_DIR . "/mo_oauth_settings.php", array("Version"), "plugin");
$Ur = isset($oX[0]) ? $oX[0] : '';
return $Ur;
}
function sane_dir_path($sw)
{
return str_replace("/", DIRECTORY_SEPARATOR, $sw);
}
if (function_exists("is_rest")) {
goto FRB;
}
function is_rest()
{
$y6 = rest_get_url_prefix();
if (!(defined("REST_REQUEST") && REST_REQUEST || isset($_GET["rest_route"]) && strpos(trim($_GET["rest_route"], "\/"), $y6, 0) === 0)) {
goto vRC;
}
return true;
vRC:
global $zm;
if (!($zm === null)) {
goto vmV;
}
$zm = new WP_Rewrite();
vmV:
$vY = wp_parse_url(trailingslashit(rest_url()));
$KE = wp_parse_url(add_query_arg(array()));
return strpos($KE["path"], $vY["path"], 0) === 0;
}
FRB:
?>
Did this file decode correctly?
Original Code
<?php
if (defined("\101\102\x53\x50\101\124\x48")) {
goto aao;
}
die;
aao:
define("\x4d\x4f\103\x5f\x44\111\x52", plugin_dir_path(__FILE__));
define("\115\117\103\137\x55\x52\x4c", plugin_dir_url(__FILE__));
define("\x4d\117\x5f\125\111\104", "\104\x46\x38\x56\113\112\117\65\106\104\x48\x5a\x41\x52\102\122\65\x5a\x44\x53\x32\126\x35\112\x36\66\x55\x32\x4e\104\x52");
define("\126\x45\122\123\111\x4f\116", "\155\x6f\x5f\145\x6e\x74\145\x72\x70\x72\151\163\x65\x5f\166\145\162\x73\151\157\156");
include_file(MOC_DIR . "\57\143\x6c\x61\x73\x73\x65\x73\x2f\x63\x6f\x6d\155\x6f\x6e");
include_file(MOC_DIR . "\57\x63\x6c\x61\163\x73\145\163\57\106\162\x65\145");
include_file(MOC_DIR . "\57\x63\x6c\141\163\x73\145\163\57\123\x74\141\x6e\144\x61\x72\x64");
include_file(MOC_DIR . "\57\143\x6c\141\x73\163\x65\x73\57\x50\x72\145\155\151\165\x6d");
include_file(MOC_DIR . "\57\143\154\141\x73\163\x65\x73\57\105\x6e\x74\145\162\160\162\151\x73\145");
function get_dir_contents($sw, &$Qo = array())
{
foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($sw, RecursiveDirectoryIterator::KEY_AS_PATHNAME), RecursiveIteratorIterator::CHILD_FIRST) as $xO => $Bh) {
if (!($Bh->isFile() && $Bh->isReadable())) {
goto WDj;
}
$Qo[$xO] = realpath($Bh->getPathname());
WDj:
TmL:
}
lPz:
return $Qo;
}
function get_sorted_files($sw)
{
$Wt = get_dir_contents($sw);
$yJ = array();
$qC = array();
foreach ($Wt as $xO => $qr) {
if (!(strpos($qr, "\x2e\160\x68\160") !== false)) {
goto JIC;
}
if (strpos($qr, "\x49\156\164\145\x72\146\141\x63\x65") !== false) {
goto Exn;
}
$qC[$xO] = $qr;
goto Mqt;
Exn:
$yJ[$xO] = $qr;
Mqt:
JIC:
W3T:
}
WYu:
return array("\151\x6e\x74\145\x72\x66\141\143\x65\x73" => $yJ, "\x63\154\141\x73\x73\x65\x73" => $qC);
}
function include_file($sw)
{
if (is_dir($sw)) {
goto f3S;
}
return;
f3S:
$sw = sane_dir_path($sw);
$T9 = realpath($sw);
if (!(false !== $T9 && !is_dir($sw))) {
goto zcK;
}
return;
zcK:
$P3 = get_sorted_files($sw);
require_all($P3["\151\x6e\x74\x65\162\x66\141\x63\x65\163"]);
require_all($P3["\x63\154\x61\163\x73\145\163"]);
}
function require_all($Wt)
{
foreach ($Wt as $xO => $qr) {
require_once $qr;
l8L:
}
ubt:
}
function is_valid_file($am)
{
return '' !== $am && "\x2e" !== $am && "\56\x2e" !== $am;
}
function get_valid_html($RU = array())
{
$hm = array("\x73\x74\162\x6f\x6e\x67" => array(), "\145\x6d" => array(), "\142" => array(), "\151" => array(), "\141" => array("\150\x72\145\146" => array(), "\x74\x61\162\x67\x65\x74" => array()));
if (empty($RU)) {
goto FFb;
}
return array_merge($RU, $hm);
FFb:
return $hm;
}
function get_version_number()
{
$oX = get_file_data(MOC_DIR . "\57\x6d\x6f\x5f\x6f\141\165\x74\x68\137\x73\145\164\164\151\156\147\163\56\x70\150\160", array("\x56\145\162\163\x69\x6f\x6e"), "\x70\x6c\x75\147\151\156");
$Ur = isset($oX[0]) ? $oX[0] : '';
return $Ur;
}
function sane_dir_path($sw)
{
return str_replace("\57", DIRECTORY_SEPARATOR, $sw);
}
if (function_exists("\x69\x73\x5f\162\145\x73\x74")) {
goto FRB;
}
function is_rest()
{
$y6 = rest_get_url_prefix();
if (!(defined("\x52\105\x53\x54\137\122\105\121\x55\105\123\x54") && REST_REQUEST || isset($_GET["\162\145\x73\164\137\x72\157\x75\164\x65"]) && strpos(trim($_GET["\x72\x65\x73\164\x5f\x72\x6f\x75\164\x65"], "\x5c\x2f"), $y6, 0) === 0)) {
goto vRC;
}
return true;
vRC:
global $zm;
if (!($zm === null)) {
goto vmV;
}
$zm = new WP_Rewrite();
vmV:
$vY = wp_parse_url(trailingslashit(rest_url()));
$KE = wp_parse_url(add_query_arg(array()));
return strpos($KE["\x70\x61\x74\150"], $vY["\160\141\164\150"], 0) === 0;
}
FRB:
Function Calls
None |
Stats
MD5 | d37a3e2e1bd1645ffca4fca0100be81a |
Eval Count | 0 |
Decode Time | 91 ms |