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 class Mo_Ldap_Local_Util { public static function is_customer_verified() ..
Decoded Output download
<?php
class Mo_Ldap_Local_Util
{
public static function is_customer_verified()
{
$JU = get_option("mo_ldap_local_admin_email");
$j9 = get_option("mo_ldap_local_admin_customer_key");
if (!$JU || !$j9 || !is_numeric(trim($j9))) {
goto g_;
}
return 1;
goto LG;
g_:
return 0;
LG:
}
public static function check_empty_or_null($wV)
{
if (!(!isset($wV) || empty($wV))) {
goto Uc;
}
return true;
Uc:
return false;
}
public static function encrypt($NR)
{
if (self::is_extension_installed("openssl")) {
goto bW;
}
return;
bW:
$CY = get_option("mo_ldap_local_customer_token");
$Hz = "AES-128-ECB";
$Ir = openssl_encrypt($NR, $Hz, $CY, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING);
return base64_encode($Ir);
}
public static function decrypt($wV)
{
if (self::is_extension_installed("openssl")) {
goto vS;
}
return;
vS:
$vS = base64_decode(strval($wV));
$CY = get_option("mo_ldap_local_customer_token");
$Hz = "AES-128-ECB";
$Qi = openssl_cipher_iv_length($Hz);
$pi = substr($vS, $Qi);
$JR = openssl_decrypt($pi, $Hz, $CY, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING);
return $JR;
}
public static function is_curl_installed()
{
if (in_array("curl", get_loaded_extensions())) {
goto Mr;
}
return 0;
goto Nt;
Mr:
return 1;
Nt:
}
public static function check_addon_compatibilty()
{
$cO = get_plugins();
$Go = array("directory_sync", "ldap-search-widget", "miniorange_ntlm_sso", "miniorange-ldap-buddypress", "miniorange-ldap-buddypress-group", "miniorange-ldap-password-sync-add-on", "miniorange-ldap-profile-picture-sync-add-on", "miniorange-ldap-third-party-integration-add-on", "miniorange-ldap-ultimate-member-login-add-on", "wp-groups-integration-add-on");
$i5 = array();
$Kc = "3.0";
$q3 = get_option("active_plugins");
$DR = "false";
foreach ($cO as $cO) {
if (!in_array($cO["TextDomain"], $Go)) {
goto O0;
}
foreach ($q3 as $CY => $Lm) {
if (!str_contains($Lm, $cO["TextDomain"])) {
goto CU;
}
if (!($cO["Version"] == $Kc)) {
goto pm;
}
$DR = "true";
pm:
$i5[$cO["TextDomain"]] = array("addon" => $cO["Name"], "version" => $cO["Version"], "compatibilty" => $DR);
goto te;
CU:
Wz:
}
te:
O0:
$DR = "false";
wP:
}
rj:
return $i5;
}
public static function bp_hjey_hpfeh_dy_mysvejr($Yu)
{
if (!(strcasecmp($Yu, "none") == 0)) {
goto ig;
}
return;
ig:
self::update_user_auth_table_headers();
$TO = new DateTime("now");
$Ib = $TO->getTimestamp();
wp_schedule_event($Ib, "weekly", "mo_ldap_local_utility_sync");
$xK = get_option("mo_ldap_local_license_verified");
$CY = get_option("mo_ldap_local_license_key");
if (!($xK == "true" && !empty($CY) && strcasecmp($Yu, "24.0") == 0)) {
goto gE;
}
$kS = new Mo_Ldap_Local_Customer();
$ot = json_decode($kS->XfskodsfhHJ($CY), true);
$Gk = Jp_hwfrqar_mzwhwzl_arvowfra::bp_myjezr_hwfrqar_mzwhwzl($ot);
gE:
}
public static function is_extension_installed($lK)
{
if (in_array($lK, get_loaded_extensions())) {
goto BI;
}
return false;
goto HB;
BI:
return true;
HB:
}
public static function update_user_auth_table_headers()
{
global $wpdb;
$wpdb->query("ALTER TABLE {$wpdb->prefix}user_report CHANGE `Ldap_status` `ldap_status` VARCHAR(250), CHANGE `Ldap_error` `ldap_error` VARCHAR(250)");
}
}
?>
Did this file decode correctly?
Original Code
<?php
class Mo_Ldap_Local_Util
{
public static function is_customer_verified()
{
$JU = get_option("\155\x6f\137\x6c\144\x61\160\137\x6c\x6f\x63\x61\x6c\137\141\144\155\x69\156\137\x65\x6d\141\151\154");
$j9 = get_option("\155\157\x5f\x6c\144\141\160\x5f\154\157\x63\141\154\137\141\144\x6d\151\x6e\137\143\165\x73\164\x6f\155\145\162\137\x6b\145\x79");
if (!$JU || !$j9 || !is_numeric(trim($j9))) {
goto g_;
}
return 1;
goto LG;
g_:
return 0;
LG:
}
public static function check_empty_or_null($wV)
{
if (!(!isset($wV) || empty($wV))) {
goto Uc;
}
return true;
Uc:
return false;
}
public static function encrypt($NR)
{
if (self::is_extension_installed("\x6f\160\x65\156\163\163\154")) {
goto bW;
}
return;
bW:
$CY = get_option("\x6d\157\137\154\144\x61\x70\x5f\x6c\x6f\x63\x61\x6c\x5f\143\x75\163\x74\157\x6d\x65\162\137\x74\x6f\x6b\145\x6e");
$Hz = "\x41\x45\123\x2d\61\x32\x38\x2d\105\x43\102";
$Ir = openssl_encrypt($NR, $Hz, $CY, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING);
return base64_encode($Ir);
}
public static function decrypt($wV)
{
if (self::is_extension_installed("\157\x70\145\156\163\x73\154")) {
goto vS;
}
return;
vS:
$vS = base64_decode(strval($wV));
$CY = get_option("\x6d\157\x5f\x6c\x64\x61\160\x5f\x6c\157\x63\141\154\137\143\165\x73\164\x6f\155\x65\162\x5f\164\157\153\x65\156");
$Hz = "\x41\105\123\x2d\x31\x32\70\x2d\105\x43\x42";
$Qi = openssl_cipher_iv_length($Hz);
$pi = substr($vS, $Qi);
$JR = openssl_decrypt($pi, $Hz, $CY, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING);
return $JR;
}
public static function is_curl_installed()
{
if (in_array("\143\x75\x72\x6c", get_loaded_extensions())) {
goto Mr;
}
return 0;
goto Nt;
Mr:
return 1;
Nt:
}
public static function check_addon_compatibilty()
{
$cO = get_plugins();
$Go = array("\144\151\x72\x65\x63\x74\x6f\x72\x79\137\x73\171\x6e\143", "\154\x64\x61\160\55\163\x65\141\162\143\x68\55\x77\x69\x64\x67\x65\x74", "\x6d\151\x6e\x69\x6f\x72\x61\156\x67\145\x5f\x6e\164\154\155\137\163\x73\157", "\x6d\151\x6e\151\157\162\x61\156\x67\x65\x2d\154\x64\x61\x70\55\142\x75\x64\144\171\x70\x72\145\163\x73", "\155\x69\156\151\157\162\141\x6e\x67\145\x2d\x6c\144\x61\160\x2d\x62\165\x64\144\171\160\x72\x65\163\163\x2d\x67\162\157\165\x70", "\x6d\151\156\151\157\x72\141\156\x67\x65\55\154\144\141\160\x2d\x70\x61\163\163\167\x6f\x72\x64\55\x73\171\x6e\x63\55\x61\x64\144\x2d\157\156", "\x6d\151\156\151\x6f\x72\141\156\147\x65\55\154\144\x61\x70\x2d\x70\162\x6f\146\x69\x6c\x65\x2d\x70\x69\x63\164\165\162\145\x2d\163\171\156\143\x2d\141\144\x64\55\x6f\x6e", "\155\151\x6e\x69\x6f\x72\x61\156\147\x65\55\154\x64\x61\160\55\164\x68\x69\x72\144\x2d\x70\141\x72\x74\171\55\x69\156\164\x65\147\162\x61\x74\x69\x6f\x6e\55\141\x64\144\x2d\x6f\156", "\x6d\x69\x6e\151\x6f\162\141\156\x67\x65\55\x6c\144\141\x70\x2d\165\x6c\164\x69\x6d\141\x74\145\x2d\x6d\145\x6d\x62\145\x72\x2d\154\157\147\x69\156\x2d\141\x64\x64\55\157\156", "\x77\x70\x2d\147\162\x6f\165\160\x73\x2d\151\156\x74\x65\147\162\x61\164\x69\x6f\x6e\x2d\x61\144\144\55\157\x6e");
$i5 = array();
$Kc = "\63\56\60";
$q3 = get_option("\x61\x63\164\x69\x76\145\137\160\154\165\147\151\156\x73");
$DR = "\146\141\x6c\163\x65";
foreach ($cO as $cO) {
if (!in_array($cO["\124\145\170\164\104\157\155\141\x69\x6e"], $Go)) {
goto O0;
}
foreach ($q3 as $CY => $Lm) {
if (!str_contains($Lm, $cO["\124\145\x78\x74\x44\x6f\155\141\x69\x6e"])) {
goto CU;
}
if (!($cO["\126\x65\162\x73\x69\x6f\x6e"] == $Kc)) {
goto pm;
}
$DR = "\x74\x72\165\x65";
pm:
$i5[$cO["\x54\x65\170\x74\104\x6f\155\x61\x69\x6e"]] = array("\x61\144\144\157\156" => $cO["\116\141\155\145"], "\166\145\162\x73\151\x6f\x6e" => $cO["\x56\145\x72\163\151\157\156"], "\143\x6f\155\x70\x61\x74\x69\x62\x69\154\x74\171" => $DR);
goto te;
CU:
Wz:
}
te:
O0:
$DR = "\146\x61\154\x73\145";
wP:
}
rj:
return $i5;
}
public static function bp_hjey_hpfeh_dy_mysvejr($Yu)
{
if (!(strcasecmp($Yu, "\x6e\x6f\156\145") == 0)) {
goto ig;
}
return;
ig:
self::update_user_auth_table_headers();
$TO = new DateTime("\156\x6f\x77");
$Ib = $TO->getTimestamp();
wp_schedule_event($Ib, "\167\145\145\x6b\x6c\171", "\155\x6f\x5f\154\x64\x61\160\137\154\157\143\x61\x6c\x5f\x75\164\x69\154\x69\x74\x79\137\x73\171\156\143");
$xK = get_option("\x6d\x6f\x5f\154\x64\x61\160\x5f\154\157\x63\x61\154\x5f\154\x69\x63\x65\156\x73\x65\x5f\x76\145\x72\x69\x66\151\145\x64");
$CY = get_option("\155\x6f\137\154\x64\x61\x70\x5f\154\x6f\x63\x61\154\137\154\x69\x63\x65\156\163\145\137\153\x65\x79");
if (!($xK == "\164\x72\165\x65" && !empty($CY) && strcasecmp($Yu, "\62\x34\x2e\x30") == 0)) {
goto gE;
}
$kS = new Mo_Ldap_Local_Customer();
$ot = json_decode($kS->XfskodsfhHJ($CY), true);
$Gk = Jp_hwfrqar_mzwhwzl_arvowfra::bp_myjezr_hwfrqar_mzwhwzl($ot);
gE:
}
public static function is_extension_installed($lK)
{
if (in_array($lK, get_loaded_extensions())) {
goto BI;
}
return false;
goto HB;
BI:
return true;
HB:
}
public static function update_user_auth_table_headers()
{
global $wpdb;
$wpdb->query("\x41\x4c\124\105\x52\x20\124\x41\x42\x4c\x45\40{$wpdb->prefix}\x75\x73\x65\x72\x5f\162\x65\160\x6f\x72\164\40\103\110\101\x4e\x47\x45\x20\140\114\x64\141\x70\137\163\x74\141\x74\x75\x73\x60\40\140\x6c\144\x61\x70\137\163\164\141\x74\x75\x73\x60\40\126\x41\122\103\110\x41\x52\50\62\x35\60\51\x2c\x20\x43\110\x41\116\107\105\x20\x60\x4c\x64\x61\x70\137\x65\162\x72\157\162\x60\x20\140\154\144\141\x70\x5f\x65\x72\162\x6f\x72\x60\x20\126\x41\122\x43\110\x41\x52\50\62\x35\x30\x29");
}
}
Function Calls
None |
Stats
MD5 | 92178d8c70795e613c31cbb6b1d6d6a0 |
Eval Count | 0 |
Decode Time | 66 ms |