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 namespace MoSfSyncSalesforce; use MoSfSyncSalesforce\API\CustomerAPI; use M..
Decoded Output download
<?php
namespace MoSfSyncSalesforce;
use MoSfSyncSalesforce\API\CustomerAPI;
use MoSfSyncSalesforce\Helper\PluginConstants;
use MoSfSyncSalesforce\Services\Utils;
class Customer
{
public $email;
public $phone;
private $defaultCustomerKey = "16555";
private $defaultApiKey = "fFd2XcvTGDemZvbw1bcUesNJWEqKbbUq";
public function mo_sf_sync_submit_contact_us($mH, $cf, $Zq, $Dh)
{
$pL = PluginConstants::HOSTNAME . "/moas/rest/customer/contact-us";
$current_user = wp_get_current_user();
if ($Dh) {
goto he;
}
$Zq = "[Object Data Sync for Salesforce] " . $Zq;
goto aQ;
he:
$Zq = "[Call Request - Object Data Sync for Salesforce] " . $Zq;
aQ:
$uW = array("firstName" => $current_user->user_firstname, "lastName" => $current_user->user_lastname, "company" => $_SERVER["SERVER_NAME"], "email" => $mH, "ccEmail" => "[email protected]", "phone" => $cf, "query" => $Zq);
$lV = json_encode($uW);
$To = array("Content-Type" => "application/json", "charset" => "UTF-8", "Authorization" => "Basic");
$u1 = array("method" => "POST", "body" => $lV, "timeout" => "10", "redirection" => "5", "httpversion" => "1.0", "blocking" => true, "headers" => $To);
$FQ = Utils::mo_sf_sync_wp_remote_call($pL, $u1);
return $FQ;
}
public function mo_sf_sync_send_email_alert($mH, $cf, $Do, $hJ = false)
{
$pL = PluginConstants::HOSTNAME . "/moas/api/notify/send";
$WG = $this->defaultCustomerKey;
$Jy = $this->defaultApiKey;
$r9 = self::mo_sf_sync_get_timestamp();
$r9 = number_format($r9, 0, '', '');
$Yo = $WG . $r9 . $Jy;
$uQ = hash("sha512", $Yo);
$bw = "[email protected]";
$gA = "Feedback: Object Data Sync for Salesforce";
if (!$hJ) {
goto AO;
}
$gA = "DEMO REQUEST: Object Data Sync for Salesforce";
AO:
$vj = site_url();
global $user;
$user = wp_get_current_user();
$Zq = "[Object Data Sync for Salesforce: ]: " . $Do;
$tv = "<div >Hello, <br><br>First Name :" . $user->user_firstname . "<br><br>Last Name :" . $user->user_lastname . " <br><br>Company :<a href="" . $_SERVER["SERVER_NAME"] . "" target="_blank" >" . $_SERVER["SERVER_NAME"] . "</a><br><br>Phone Number :" . $cf . "<br><br>Email :<a href="mailto:" . $mH . "" target="_blank">" . $mH . "</a><br><br>Query :" . $Zq . "</div>";
$uW = array("customerKey" => $WG, "sendEmail" => true, "email" => array("customerKey" => $WG, "fromEmail" => $bw, "bccEmail" => $bw, "fromName" => "Xecurify", "toEmail" => "[email protected]", "toName" => "[email protected]", "bccEmail" => "[email protected]", "subject" => $gA, "content" => $tv));
$lV = json_encode($uW);
$To = array("Content-Type" => "application/json", "Customer-Key" => $WG, "Timestamp" => $r9, "Authorization" => $uQ);
$u1 = array("method" => "POST", "body" => $lV, "timeout" => "5", "redirection" => "5", "httpversion" => "1.0", "blocking" => true, "headers" => $To);
$FQ = Utils::mo_sf_sync_wp_remote_call($pL, $u1);
return $FQ;
}
public function mo_sf_sync_get_timestamp()
{
$pL = PluginConstants::HOSTNAME . "/moas/rest/mobile/get-timestamp";
$FQ = Utils::mo_sf_sync_wp_remote_call($pL, array());
return $FQ;
}
public static function mo_sf_sync_encrypt_data($Hs, $Ac)
{
$Ac = openssl_digest($Ac, "sha256");
$uP = "AES-128-ECB";
$vE = openssl_encrypt($Hs, $uP, $Ac, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING);
return base64_encode($vE);
}
public static function djkasjdksa()
{
$fj = "!~@#$%^&*()_+|{}<>?0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
$FO = strlen($fj);
$sF = '';
$od = 0;
r8:
if (!($od < 10000)) {
goto sm;
}
$sF .= $fj[rand(0, $FO - 1)];
oN:
$od++;
goto r8;
sm:
return $sF;
}
public static function mo_sf_sync_decrypt_data($Hs, $Ac)
{
$Pa = base64_decode($Hs);
$Ac = openssl_digest($Ac, "sha256");
$uP = "AES-128-ECB";
$OM = openssl_cipher_iv_length($uP);
$sH = substr($Pa, 0, $OM);
$Hs = substr($Pa, $OM);
$YK = openssl_decrypt($Hs, $uP, $Ac, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING, $sH);
return $YK;
}
public static function mo_sf_sync_checkPasswordPattern($Ei)
{
$n5 = "/^[(\w)*(\!\@\#\$\%\^\&\*\.\-\_)*]+$/";
return !preg_match($n5, $Ei);
}
public static function mo_sf_sync_is_customer_registered($al = false)
{
$eZ = get_sites();
if (!(count($eZ) > 30)) {
goto M6;
}
return;
M6:
switch_to_blog(1);
$mH = get_site_option("mo_sf_sync_admin_email");
$WG = get_site_option("mo_sf_sync_admin_customer_key");
restore_current_blog();
if (!(!$mH || !$WG || !is_numeric(trim($WG)))) {
goto Iy;
}
return $al ? "disabled" : 0;
Iy:
return $al ? '' : 1;
}
public static function mo_sf_sync_is_customer_license_key_verified($al = false)
{
$Ac = get_site_option("mo_sf_sync_customer_token");
$go = get_site_option("sfsync_lk");
$mH = get_site_option("mo_sf_sync_admin_email");
$WG = get_site_option("mo_sf_sync_admin_customer_key");
restore_current_blog();
if (!(!$go || !$mH || !$WG || !is_numeric(trim($WG)))) {
goto lR;
}
return $al ? "disabled" : 0;
lR:
return $al ? '' : 1;
}
public static function fucstmrhisl()
{
$GY = get_site_option("mo_fucstmrhisl");
if (!empty($GY)) {
goto tU;
}
self::fucstmrhislinc(0);
return true;
goto hB;
tU:
$GY = (int) $GY;
if ($GY < 201) {
goto q6;
}
return false;
goto Iu;
q6:
self::fucstmrhislinc($GY);
return true;
Iu:
hB:
}
public static function fucstmrhislinc($GY)
{
$GY = $GY + 1;
update_site_option("mo_fucstmrhisl", $GY);
}
public static function gvdffnceusdfjl()
{
$Lt = get_site_option("fusctmrhislag");
if (!empty($Lt)) {
goto gQ;
}
self::gvdffnceusdfjlinc(0);
return true;
goto GG;
gQ:
$Lt = (int) $Lt;
if ($Lt < 201) {
goto pA;
}
return false;
goto LB;
pA:
self::gvdffnceusdfjlinc($Lt);
return true;
LB:
GG:
}
public static function gvdffnceusdfjlinc($Lt)
{
$Lt = $Lt + 1;
update_site_option("fusctmrhislag", $Lt);
}
public static function mo_sf_sync_get_plugin_details()
{
$pL = network_site_url();
$pL = self::mo_sf_sync_jyasdfw($pL);
$jw = base64_decode("c2hhMjU2");
$fu = "anVtcGNyZXcuY29t";
$aZ = "MTY4NTA4MTE4Mg==";
$kb = "ZjNlZWYzOWU3YWYyMDY1NjA4ZDg0N2VlNjZkYzg2NGY1MWZhNjA1YTA5NzY2ZDM5NDM4N2ExYmIxMGQwZGIyMQ==";
$Wg = self::mo_sf_sync_asdfdn(base64_encode($pL), $fu);
$Hd = time();
$uH = self::mo_sf_sync_asdfet($Hd, $aZ);
$FN = self::mo_sf_sync_asdfdesc($jw, $kb, $fu, $aZ);
if ($Wg === true && $uH === true && $FN === true) {
goto IU;
}
return false;
goto NN;
IU:
return true;
NN:
}
public static function mo_sf_sync_jyasdfw($pL)
{
$Mq = parse_url($pL, PHP_URL_SCHEME);
if ($Mq == "http") {
goto Wy;
}
$o3 = str_replace("https://", '', $pL);
goto rM;
Wy:
$o3 = str_replace("http://", '', $pL);
rM:
return $o3;
}
public static function mo_sf_sync_asdfdn($Ev, $fu)
{
return true;
if ($Ev == $fu) {
goto Sz;
}
return false;
goto OI;
Sz:
return true;
OI:
}
public static function mo_sf_sync_asdfet($Hd, $aZ)
{
if ($Hd <= base64_decode($aZ)) {
goto p1;
}
return false;
goto z1;
p1:
return true;
z1:
}
public static function mo_sf_sync_asdfdesc($jw, $kb, $fu, $aZ)
{
$Xm = base64_decode($fu);
$UO = base64_decode($aZ);
$D4 = $Xm . $UO;
$FN = base64_encode(hash($jw, $D4));
if ($FN === $kb) {
goto EM;
}
return false;
goto U4;
EM:
return true;
U4:
}
public static function mo_sf_sync_site_check()
{
return true;
$CG = false;
$Ac = get_site_option("mo_sf_sync_customer_token");
if (!get_site_option("site_ck_l")) {
goto c4;
}
if (!(self::mo_sf_sync_decrypt_data(get_site_option("site_ck_l"), $Ac) == "true")) {
goto de;
}
$CG = true;
de:
c4:
if (!($CG && self::mo_sf_sync_lk_multi_host())) {
goto q2;
}
$bk = get_site_option("vl_check_t");
if (!$bk) {
goto Vl;
}
$bk = intval($bk);
if (!(time() - $bk < 3600 * 24 * 3)) {
goto KK;
}
return $CG;
KK:
Vl:
$tc = get_site_option("sfsync_lk");
if (!$tc) {
goto Vr;
}
$tc = self::mo_sf_sync_decrypt_data($tc, $Ac);
$CQ = new CustomerAPI();
$tv = $CQ->mo_sf_sync_vl($tc, true);
if ($tv) {
goto hN;
}
return;
hN:
$tv = json_decode($tv, true);
if (strcasecmp($tv["status"], "SUCCESS") == 0) {
goto qZ;
}
update_site_option("vl_check_s", self::mo_sf_sync_encrypt_data("false", $Ac));
goto Mb;
qZ:
delete_site_option("vl_check_s");
Mb:
Vr:
update_site_option("vl_check_t", time());
q2:
return $CG;
}
public static function mo_sf_sync_lk_multi_host()
{
$em = get_site_option("vl_check_s");
$Ac = get_site_option("mo_sf_sync_customer_token");
if (!$em) {
goto RX;
}
$em = self::mo_sf_sync_decrypt_data($em, $Ac);
if (!($em == "false")) {
goto a9;
}
return true;
a9:
RX:
return false;
}
public static function mo_sf_sync_deactivate()
{
delete_site_option("mo_sf_sync_admin_password");
delete_site_option("mo_sf_sync_admin_customer_key");
delete_site_option("mo_sf_sync_admin_api_key");
delete_site_option("mo_sf_sync_customer_token");
delete_site_option("vl_check_t");
delete_site_option("vl_check_s");
}
public static function mo_sf_sync_check_plugin_state()
{
echo "<div style="width:90%;margin:17px;">";
if (!self::mo_sf_sync_is_customer_registered()) {
goto Cv;
}
if (self::mo_sf_sync_is_customer_license_key_verified()) {
goto D0;
}
echo "<div><div style="display:block;margin-top:10px;color:red;background-color:rgba(251, 232, 0, 0.15);padding:5px;border:solid 1px rgba(255, 0, 9, 0.36);">";
if (!self::mo_sf_sync_site_check()) {
goto il;
}
echo "Please enter your<a href="" . add_query_arg(array("tab" => "account_setup"), $_SERVER["REQUEST_URI"]) . ""> license key</a> to activate the plugin.";
goto j8;
il:
echo "Please enter your<a href="" . add_query_arg(array("tab" => "account_setup"), $_SERVER["REQUEST_URI"]) . ""> license key</a> to activate the plugin.";
j8:
echo "</div></div>";
D0:
goto HB;
Cv:
echo "<div>
<div style="display:block;margin-top:10px;color:red;background-color:rgba(251, 232, 0, 0.15);padding:5px;border:solid 1px rgba(255, 0, 9, 0.36);">Please <a href="" . add_query_arg(array("tab" => "account_setup"), $_SERVER["REQUEST_URI"]) . "">Register or Login with miniOrange</a> to configure the User Sync for Azure AD / Azure B2C Plugin.</div></div>";
HB:
echo "</div>";
}
public static function mo_sf_sync_update_key_status()
{
$pL = PluginConstants::HOSTNAME . "/moas/api/backupcode/updatestatus";
$WG = get_site_option("mo_sf_sync_admin_customer_key");
$Jy = get_site_option("mo_sf_sync_admin_api_key");
$r9 = round(microtime(true) * 1000);
$Yo = $WG . number_format($r9, 0, '', '') . $Jy;
$uQ = hash("sha512", $Yo);
$ft = "Customer-Key: " . $WG;
$Yg = "Timestamp: " . number_format($r9, 0, '', '');
$oo = "Authorization: " . $uQ;
$Ac = get_site_option("mo_sf_sync_customer_token");
$r9 = number_format($r9, 0, '', '');
$tc = Customer::mo_sf_sync_decrypt_data(get_site_option("sfsync_lk"), $Ac);
$uW = '';
$uW = array("code" => $tc, "customerKey" => $WG);
$lV = json_encode($uW);
$To = array("Content-Type" => "application/json", "Customer-Key" => $WG, "Timestamp" => $r9, "Authorization" => $uQ);
$u1 = array("method" => "POST", "body" => $lV, "timeout" => "10", "redirection" => "5", "httpversion" => "1.0", "blocking" => true, "headers" => $To);
$FQ = wp_remote_post($pL, $u1);
return;
}
} ?>
Did this file decode correctly?
Original Code
<?php
namespace MoSfSyncSalesforce;
use MoSfSyncSalesforce\API\CustomerAPI;
use MoSfSyncSalesforce\Helper\PluginConstants;
use MoSfSyncSalesforce\Services\Utils;
class Customer
{
public $email;
public $phone;
private $defaultCustomerKey = "\x31\x36\x35\x35\x35";
private $defaultApiKey = "\x66\x46\144\62\130\x63\166\124\107\x44\145\155\x5a\166\x62\167\x31\142\x63\125\145\163\116\112\127\x45\x71\x4b\x62\142\x55\x71";
public function mo_sf_sync_submit_contact_us($mH, $cf, $Zq, $Dh)
{
$pL = PluginConstants::HOSTNAME . "\x2f\x6d\x6f\141\163\57\162\x65\163\164\57\143\x75\x73\164\x6f\x6d\x65\162\x2f\143\x6f\x6e\164\141\143\164\55\165\x73";
$current_user = wp_get_current_user();
if ($Dh) {
goto he;
}
$Zq = "\133\x4f\142\x6a\x65\x63\164\x20\104\x61\164\x61\40\123\171\156\x63\x20\146\157\162\40\x53\x61\x6c\x65\x73\x66\157\x72\x63\145\x5d\x20" . $Zq;
goto aQ;
he:
$Zq = "\x5b\103\141\154\154\40\122\x65\161\x75\x65\x73\x74\40\x2d\x20\117\142\152\145\143\164\40\104\x61\164\x61\40\x53\x79\x6e\143\40\146\x6f\162\x20\123\x61\x6c\x65\163\146\157\162\143\x65\135\x20" . $Zq;
aQ:
$uW = array("\146\151\x72\163\164\116\141\155\145" => $current_user->user_firstname, "\154\141\163\x74\116\x61\155\145" => $current_user->user_lastname, "\143\157\x6d\160\141\156\171" => $_SERVER["\x53\x45\x52\x56\x45\x52\x5f\x4e\101\115\x45"], "\x65\155\141\x69\x6c" => $mH, "\x63\x63\105\x6d\x61\151\x6c" => "\163\x61\x6d\154\163\x75\160\x70\x6f\x72\x74\100\x78\x65\143\x75\x72\x69\146\x79\56\143\157\x6d", "\x70\150\x6f\156\x65" => $cf, "\161\x75\145\162\171" => $Zq);
$lV = json_encode($uW);
$To = array("\103\x6f\156\x74\145\156\x74\55\x54\x79\160\x65" => "\141\x70\x70\x6c\x69\x63\x61\164\151\157\x6e\57\x6a\x73\x6f\156", "\143\150\x61\162\x73\x65\x74" => "\125\124\x46\x2d\x38", "\101\x75\x74\150\157\x72\151\172\141\x74\151\x6f\156" => "\x42\x61\163\x69\143");
$u1 = array("\155\145\164\150\x6f\x64" => "\x50\x4f\123\x54", "\x62\157\x64\171" => $lV, "\164\151\x6d\x65\x6f\165\x74" => "\61\x30", "\162\x65\144\151\x72\145\143\x74\x69\x6f\x6e" => "\65", "\x68\164\x74\160\x76\x65\162\163\151\x6f\156" => "\x31\x2e\x30", "\x62\x6c\157\143\x6b\151\x6e\147" => true, "\x68\145\141\x64\145\x72\163" => $To);
$FQ = Utils::mo_sf_sync_wp_remote_call($pL, $u1);
return $FQ;
}
public function mo_sf_sync_send_email_alert($mH, $cf, $Do, $hJ = false)
{
$pL = PluginConstants::HOSTNAME . "\x2f\x6d\157\x61\163\57\x61\160\151\57\156\x6f\164\151\146\x79\57\x73\x65\x6e\x64";
$WG = $this->defaultCustomerKey;
$Jy = $this->defaultApiKey;
$r9 = self::mo_sf_sync_get_timestamp();
$r9 = number_format($r9, 0, '', '');
$Yo = $WG . $r9 . $Jy;
$uQ = hash("\x73\150\141\x35\x31\x32", $Yo);
$bw = "\156\157\55\162\x65\x70\154\x79\x40\x78\x65\143\x75\162\151\x66\x79\x2e\x63\x6f\x6d";
$gA = "\106\145\x65\x64\x62\141\x63\153\x3a\40\x4f\142\152\x65\x63\x74\x20\104\x61\164\x61\x20\123\171\x6e\x63\40\x66\157\162\x20\123\x61\154\x65\x73\146\x6f\x72\x63\x65";
if (!$hJ) {
goto AO;
}
$gA = "\x44\105\115\x4f\40\x52\x45\121\125\x45\123\124\72\x20\117\x62\152\x65\143\x74\40\x44\x61\164\x61\x20\x53\171\x6e\143\x20\x66\157\x72\40\x53\x61\154\145\x73\x66\x6f\x72\143\145";
AO:
$vj = site_url();
global $user;
$user = wp_get_current_user();
$Zq = "\133\x4f\142\x6a\x65\x63\x74\x20\x44\141\164\141\40\123\x79\x6e\143\40\146\x6f\162\x20\123\141\154\145\x73\x66\157\162\x63\145\x3a\40\135\72\x20" . $Do;
$tv = "\x3c\144\x69\166\x20\x3e\110\x65\x6c\x6c\x6f\x2c\x20\x3c\142\162\x3e\x3c\x62\162\76\106\x69\x72\163\164\x20\116\141\x6d\145\x20\72" . $user->user_firstname . "\74\x62\162\76\x3c\142\x72\76\114\x61\x73\164\40\40\x4e\141\x6d\145\x20\72" . $user->user_lastname . "\40\40\x20\74\142\x72\x3e\x3c\x62\x72\x3e\103\157\x6d\160\141\x6e\x79\x20\72\x3c\141\x20\x68\162\x65\146\75\42" . $_SERVER["\123\x45\x52\126\x45\122\137\116\x41\x4d\105"] . "\42\x20\x74\141\x72\147\x65\164\x3d\x22\137\x62\x6c\141\156\x6b\x22\x20\76" . $_SERVER["\123\105\x52\126\105\122\x5f\116\101\115\x45"] . "\x3c\x2f\x61\x3e\74\142\x72\76\74\142\x72\x3e\x50\x68\x6f\156\145\x20\116\x75\155\x62\x65\x72\40\x3a" . $cf . "\74\x62\162\x3e\x3c\x62\x72\x3e\x45\155\141\151\x6c\x20\72\x3c\x61\40\x68\162\x65\x66\x3d\x22\x6d\x61\x69\154\x74\x6f\x3a" . $mH . "\x22\x20\x74\141\162\147\x65\164\75\x22\137\142\x6c\x61\x6e\x6b\42\x3e" . $mH . "\74\57\x61\x3e\x3c\x62\x72\x3e\74\x62\162\x3e\x51\165\145\x72\171\40\x3a" . $Zq . "\x3c\x2f\144\x69\x76\x3e";
$uW = array("\x63\165\x73\164\x6f\x6d\145\x72\113\145\171" => $WG, "\x73\x65\x6e\x64\105\155\141\151\x6c" => true, "\145\x6d\x61\x69\x6c" => array("\143\165\x73\x74\157\x6d\145\x72\113\145\171" => $WG, "\146\x72\x6f\x6d\105\x6d\x61\x69\x6c" => $bw, "\142\x63\x63\105\x6d\141\x69\x6c" => $bw, "\x66\x72\157\x6d\116\141\x6d\145" => "\x58\x65\143\165\x72\151\146\171", "\x74\x6f\x45\155\141\151\x6c" => "\151\156\x66\157\100\170\145\x63\165\x72\151\146\x79\56\x63\x6f\x6d", "\164\157\x4e\141\155\x65" => "\x73\x61\x6d\x6c\163\x75\160\160\157\x72\164\x40\x78\x65\x63\x75\x72\x69\146\171\x2e\x63\157\x6d", "\142\143\143\x45\155\x61\151\154" => "\x73\x61\x6d\x6c\x73\x75\160\x70\x6f\162\x74\100\x78\145\143\165\162\x69\x66\171\x2e\143\x6f\x6d", "\163\165\142\x6a\x65\x63\164" => $gA, "\x63\x6f\x6e\x74\x65\x6e\164" => $tv));
$lV = json_encode($uW);
$To = array("\103\x6f\x6e\164\145\156\x74\55\124\x79\160\145" => "\141\x70\x70\x6c\x69\143\141\164\151\x6f\x6e\x2f\x6a\x73\x6f\x6e", "\x43\165\x73\164\157\x6d\x65\x72\x2d\x4b\x65\x79" => $WG, "\124\151\155\x65\x73\164\141\155\160" => $r9, "\x41\x75\164\x68\x6f\x72\151\x7a\141\164\x69\157\156" => $uQ);
$u1 = array("\155\145\x74\150\157\144" => "\120\x4f\x53\x54", "\142\157\144\171" => $lV, "\x74\151\x6d\x65\x6f\x75\164" => "\65", "\162\145\x64\x69\x72\145\143\x74\x69\x6f\156" => "\65", "\150\164\164\160\166\x65\162\163\151\x6f\156" => "\61\x2e\60", "\x62\x6c\157\x63\153\151\x6e\x67" => true, "\x68\145\141\x64\x65\x72\x73" => $To);
$FQ = Utils::mo_sf_sync_wp_remote_call($pL, $u1);
return $FQ;
}
public function mo_sf_sync_get_timestamp()
{
$pL = PluginConstants::HOSTNAME . "\x2f\x6d\x6f\x61\163\57\x72\145\163\164\x2f\x6d\157\x62\x69\154\x65\x2f\x67\x65\x74\55\x74\151\x6d\145\x73\164\141\x6d\x70";
$FQ = Utils::mo_sf_sync_wp_remote_call($pL, array());
return $FQ;
}
public static function mo_sf_sync_encrypt_data($Hs, $Ac)
{
$Ac = openssl_digest($Ac, "\163\150\x61\x32\65\66");
$uP = "\x41\105\x53\x2d\61\62\70\55\105\x43\x42";
$vE = openssl_encrypt($Hs, $uP, $Ac, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING);
return base64_encode($vE);
}
public static function djkasjdksa()
{
$fj = "\x21\x7e\x40\43\x24\x25\136\x26\x2a\x28\51\137\x2b\x7c\173\175\74\76\x3f\x30\61\x32\x33\x34\x35\x36\x37\70\x39\x61\x62\143\144\x65\x66\147\150\151\x6a\x6b\x6c\x6d\156\157\x70\x71\x72\163\164\165\166\x77\x78\x79\x7a\101\x42\103\x44\x45\106\107\x48\111\x4a\113\114\115\116\117\x50\121\x52\123\124\x55\x56\x57\x58\131\x5a";
$FO = strlen($fj);
$sF = '';
$od = 0;
r8:
if (!($od < 10000)) {
goto sm;
}
$sF .= $fj[rand(0, $FO - 1)];
oN:
$od++;
goto r8;
sm:
return $sF;
}
public static function mo_sf_sync_decrypt_data($Hs, $Ac)
{
$Pa = base64_decode($Hs);
$Ac = openssl_digest($Ac, "\163\x68\x61\x32\65\x36");
$uP = "\x41\x45\123\55\61\62\x38\55\x45\x43\x42";
$OM = openssl_cipher_iv_length($uP);
$sH = substr($Pa, 0, $OM);
$Hs = substr($Pa, $OM);
$YK = openssl_decrypt($Hs, $uP, $Ac, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING, $sH);
return $YK;
}
public static function mo_sf_sync_checkPasswordPattern($Ei)
{
$n5 = "\57\136\133\50\x5c\x77\51\x2a\x28\x5c\x21\134\100\x5c\43\134\44\134\45\x5c\136\x5c\46\x5c\52\134\56\x5c\55\134\x5f\51\52\x5d\x2b\x24\x2f";
return !preg_match($n5, $Ei);
}
public static function mo_sf_sync_is_customer_registered($al = false)
{
$eZ = get_sites();
if (!(count($eZ) > 30)) {
goto M6;
}
return;
M6:
switch_to_blog(1);
$mH = get_site_option("\155\x6f\137\x73\x66\x5f\163\171\156\x63\x5f\x61\x64\155\x69\156\137\145\x6d\141\151\154");
$WG = get_site_option("\x6d\157\137\x73\146\x5f\x73\x79\x6e\x63\137\x61\144\155\151\156\x5f\x63\x75\x73\x74\x6f\x6d\x65\162\137\153\x65\171");
restore_current_blog();
if (!(!$mH || !$WG || !is_numeric(trim($WG)))) {
goto Iy;
}
return $al ? "\144\x69\x73\x61\x62\x6c\145\x64" : 0;
Iy:
return $al ? '' : 1;
}
public static function mo_sf_sync_is_customer_license_key_verified($al = false)
{
$Ac = get_site_option("\x6d\157\x5f\163\146\137\163\x79\x6e\143\137\x63\165\163\164\157\155\145\162\x5f\x74\x6f\x6b\145\x6e");
$go = get_site_option("\163\146\x73\171\x6e\143\137\x6c\153");
$mH = get_site_option("\x6d\157\137\163\146\137\x73\171\x6e\143\x5f\x61\144\x6d\x69\156\x5f\x65\155\141\151\154");
$WG = get_site_option("\155\157\137\x73\146\x5f\163\x79\156\x63\x5f\141\x64\x6d\151\156\137\143\x75\x73\164\x6f\155\x65\162\137\x6b\x65\x79");
restore_current_blog();
if (!(!$go || !$mH || !$WG || !is_numeric(trim($WG)))) {
goto lR;
}
return $al ? "\x64\151\163\x61\142\x6c\145\x64" : 0;
lR:
return $al ? '' : 1;
}
public static function fucstmrhisl()
{
$GY = get_site_option("\155\157\x5f\146\x75\x63\x73\164\155\x72\x68\151\x73\154");
if (!empty($GY)) {
goto tU;
}
self::fucstmrhislinc(0);
return true;
goto hB;
tU:
$GY = (int) $GY;
if ($GY < 201) {
goto q6;
}
return false;
goto Iu;
q6:
self::fucstmrhislinc($GY);
return true;
Iu:
hB:
}
public static function fucstmrhislinc($GY)
{
$GY = $GY + 1;
update_site_option("\x6d\x6f\137\146\x75\143\x73\x74\x6d\x72\150\151\x73\x6c", $GY);
}
public static function gvdffnceusdfjl()
{
$Lt = get_site_option("\146\165\x73\x63\164\155\x72\150\151\163\154\x61\x67");
if (!empty($Lt)) {
goto gQ;
}
self::gvdffnceusdfjlinc(0);
return true;
goto GG;
gQ:
$Lt = (int) $Lt;
if ($Lt < 201) {
goto pA;
}
return false;
goto LB;
pA:
self::gvdffnceusdfjlinc($Lt);
return true;
LB:
GG:
}
public static function gvdffnceusdfjlinc($Lt)
{
$Lt = $Lt + 1;
update_site_option("\x66\165\x73\x63\x74\x6d\162\150\151\163\154\141\x67", $Lt);
}
public static function mo_sf_sync_get_plugin_details()
{
$pL = network_site_url();
$pL = self::mo_sf_sync_jyasdfw($pL);
$jw = base64_decode("\143\x32\150\x68\115\x6a\x55\62");
$fu = "\141\x6e\x56\164\x63\x47\x4e\x79\x5a\x58\x63\x75\x59\62\71\164";
$aZ = "\x4d\x54\131\64\x4e\x54\101\64\115\124\105\64\x4d\x67\75\x3d";
$kb = "\x5a\152\x4e\154\132\127\x59\x7a\x4f\x57\125\63\131\x57\131\x79\x4d\x44\131\x31\116\x6a\x41\64\x5a\x44\147\60\116\x32\126\154\x4e\x6a\132\153\x59\x7a\x67\x32\116\107\131\61\x4d\127\132\x68\116\152\101\61\131\x54\x41\65\x4e\x7a\x59\x32\132\x44\115\65\x4e\x44\115\x34\116\x32\x45\x78\x59\x6d\x49\170\x4d\x47\121\167\x5a\107\x49\x79\x4d\121\x3d\x3d";
$Wg = self::mo_sf_sync_asdfdn(base64_encode($pL), $fu);
$Hd = time();
$uH = self::mo_sf_sync_asdfet($Hd, $aZ);
$FN = self::mo_sf_sync_asdfdesc($jw, $kb, $fu, $aZ);
if ($Wg === true && $uH === true && $FN === true) {
goto IU;
}
return false;
goto NN;
IU:
return true;
NN:
}
public static function mo_sf_sync_jyasdfw($pL)
{
$Mq = parse_url($pL, PHP_URL_SCHEME);
if ($Mq == "\150\x74\x74\x70") {
goto Wy;
}
$o3 = str_replace("\150\164\x74\x70\x73\72\x2f\x2f", '', $pL);
goto rM;
Wy:
$o3 = str_replace("\150\x74\x74\x70\x3a\57\57", '', $pL);
rM:
return $o3;
}
public static function mo_sf_sync_asdfdn($Ev, $fu)
{
return true;
if ($Ev == $fu) {
goto Sz;
}
return false;
goto OI;
Sz:
return true;
OI:
}
public static function mo_sf_sync_asdfet($Hd, $aZ)
{
if ($Hd <= base64_decode($aZ)) {
goto p1;
}
return false;
goto z1;
p1:
return true;
z1:
}
public static function mo_sf_sync_asdfdesc($jw, $kb, $fu, $aZ)
{
$Xm = base64_decode($fu);
$UO = base64_decode($aZ);
$D4 = $Xm . $UO;
$FN = base64_encode(hash($jw, $D4));
if ($FN === $kb) {
goto EM;
}
return false;
goto U4;
EM:
return true;
U4:
}
public static function mo_sf_sync_site_check()
{
return true;
$CG = false;
$Ac = get_site_option("\155\x6f\x5f\163\x66\x5f\163\x79\156\143\137\x63\x75\163\x74\157\155\145\162\137\164\157\153\x65\x6e");
if (!get_site_option("\163\x69\x74\145\x5f\x63\153\137\x6c")) {
goto c4;
}
if (!(self::mo_sf_sync_decrypt_data(get_site_option("\163\x69\164\145\137\143\153\137\154"), $Ac) == "\164\162\165\x65")) {
goto de;
}
$CG = true;
de:
c4:
if (!($CG && self::mo_sf_sync_lk_multi_host())) {
goto q2;
}
$bk = get_site_option("\x76\x6c\x5f\143\x68\145\x63\153\x5f\164");
if (!$bk) {
goto Vl;
}
$bk = intval($bk);
if (!(time() - $bk < 3600 * 24 * 3)) {
goto KK;
}
return $CG;
KK:
Vl:
$tc = get_site_option("\x73\x66\163\171\x6e\x63\137\x6c\153");
if (!$tc) {
goto Vr;
}
$tc = self::mo_sf_sync_decrypt_data($tc, $Ac);
$CQ = new CustomerAPI();
$tv = $CQ->mo_sf_sync_vl($tc, true);
if ($tv) {
goto hN;
}
return;
hN:
$tv = json_decode($tv, true);
if (strcasecmp($tv["\x73\x74\x61\164\x75\163"], "\x53\x55\103\103\105\x53\x53") == 0) {
goto qZ;
}
update_site_option("\166\x6c\137\x63\x68\145\143\153\x5f\163", self::mo_sf_sync_encrypt_data("\146\141\x6c\163\x65", $Ac));
goto Mb;
qZ:
delete_site_option("\166\154\137\x63\150\145\143\x6b\137\163");
Mb:
Vr:
update_site_option("\166\154\137\143\150\x65\x63\x6b\137\164", time());
q2:
return $CG;
}
public static function mo_sf_sync_lk_multi_host()
{
$em = get_site_option("\x76\154\137\143\150\x65\143\153\137\x73");
$Ac = get_site_option("\x6d\157\x5f\163\146\137\x73\x79\156\x63\137\143\x75\163\x74\157\x6d\x65\x72\x5f\x74\x6f\153\145\156");
if (!$em) {
goto RX;
}
$em = self::mo_sf_sync_decrypt_data($em, $Ac);
if (!($em == "\x66\x61\x6c\163\145")) {
goto a9;
}
return true;
a9:
RX:
return false;
}
public static function mo_sf_sync_deactivate()
{
delete_site_option("\155\x6f\x5f\163\146\x5f\163\171\156\143\137\x61\x64\x6d\151\x6e\x5f\160\x61\x73\x73\x77\157\162\144");
delete_site_option("\x6d\x6f\137\163\x66\137\163\x79\x6e\x63\x5f\x61\x64\x6d\151\156\x5f\x63\165\163\164\x6f\155\145\162\137\153\x65\x79");
delete_site_option("\155\157\137\x73\x66\x5f\x73\x79\156\143\137\141\144\x6d\151\156\x5f\x61\160\151\x5f\x6b\145\x79");
delete_site_option("\155\157\x5f\163\x66\x5f\x73\171\x6e\x63\x5f\143\165\163\164\x6f\155\x65\162\x5f\164\x6f\153\x65\156");
delete_site_option("\x76\154\137\x63\150\x65\x63\153\x5f\x74");
delete_site_option("\166\154\x5f\x63\x68\x65\x63\x6b\137\x73");
}
public static function mo_sf_sync_check_plugin_state()
{
echo "\x3c\144\x69\x76\x20\x73\164\x79\x6c\145\x3d\x22\167\151\144\x74\x68\x3a\71\x30\x25\73\155\141\x72\x67\x69\156\72\61\67\160\x78\x3b\x22\x3e";
if (!self::mo_sf_sync_is_customer_registered()) {
goto Cv;
}
if (self::mo_sf_sync_is_customer_license_key_verified()) {
goto D0;
}
echo "\74\x64\x69\x76\x3e\74\144\x69\x76\x20\x73\164\171\154\x65\75\42\144\151\x73\160\154\141\171\72\x62\x6c\x6f\143\x6b\x3b\155\141\162\147\x69\156\55\x74\157\x70\72\61\60\160\170\73\x63\x6f\x6c\x6f\162\72\x72\x65\x64\73\x62\x61\143\153\147\x72\x6f\165\x6e\x64\55\143\157\154\157\x72\x3a\x72\147\142\141\50\62\65\x31\54\40\62\x33\62\54\40\x30\x2c\x20\x30\x2e\61\65\51\x3b\160\x61\x64\144\x69\156\147\x3a\x35\x70\x78\x3b\x62\157\162\144\x65\162\x3a\163\157\154\151\x64\x20\61\160\x78\x20\x72\x67\142\141\50\x32\65\x35\x2c\40\x30\54\x20\71\54\40\x30\x2e\x33\66\51\x3b\42\76";
if (!self::mo_sf_sync_site_check()) {
goto il;
}
echo "\120\x6c\x65\141\x73\x65\40\145\156\164\145\162\x20\171\157\165\162\74\x61\x20\x68\x72\x65\146\75\x22" . add_query_arg(array("\164\x61\x62" => "\x61\143\143\157\x75\x6e\x74\x5f\163\145\x74\165\x70"), $_SERVER["\x52\105\x51\x55\x45\123\124\x5f\125\122\111"]) . "\42\x3e\x20\154\151\143\145\156\x73\145\x20\x6b\x65\171\74\57\x61\x3e\x20\164\157\40\x61\x63\164\151\166\x61\164\145\40\x74\150\145\40\160\154\x75\x67\x69\156\x2e";
goto j8;
il:
echo "\120\154\x65\141\x73\x65\x20\145\x6e\164\x65\x72\x20\171\157\165\x72\x3c\x61\40\x68\x72\145\x66\x3d\x22" . add_query_arg(array("\164\141\142" => "\141\143\x63\x6f\165\156\164\x5f\x73\145\x74\x75\x70"), $_SERVER["\x52\105\121\125\105\x53\x54\137\125\122\111"]) . "\x22\x3e\40\154\151\x63\145\x6e\x73\145\40\x6b\x65\x79\x3c\x2f\141\76\x20\x74\x6f\40\141\x63\164\151\x76\x61\164\x65\40\164\150\145\40\x70\x6c\x75\x67\151\156\x2e";
j8:
echo "\74\57\144\151\166\76\74\57\144\151\166\x3e";
D0:
goto HB;
Cv:
echo "\74\144\x69\166\76\15\12\40\40\40\x20\x3c\144\x69\x76\x20\x73\164\x79\154\x65\x3d\42\144\151\163\160\x6c\141\171\x3a\142\x6c\157\x63\x6b\73\155\141\162\x67\151\x6e\x2d\164\157\160\x3a\x31\60\x70\170\x3b\x63\157\x6c\157\162\72\x72\145\144\73\142\141\x63\x6b\147\x72\x6f\165\x6e\x64\55\143\157\154\157\x72\x3a\x72\147\142\141\50\x32\x35\x31\54\x20\62\63\62\x2c\40\x30\x2c\40\x30\56\61\65\51\x3b\x70\x61\144\x64\151\x6e\147\x3a\65\160\170\73\142\x6f\x72\144\145\162\72\163\x6f\x6c\151\x64\x20\x31\160\170\x20\162\147\x62\x61\x28\x32\65\65\54\40\60\x2c\40\x39\54\x20\60\x2e\x33\x36\x29\x3b\x22\76\x50\154\x65\x61\163\145\40\74\141\40\x68\x72\x65\x66\75\42" . add_query_arg(array("\x74\x61\142" => "\x61\143\143\157\x75\156\x74\137\163\145\x74\x75\x70"), $_SERVER["\x52\x45\121\125\x45\x53\x54\x5f\125\122\111"]) . "\x22\76\122\145\x67\151\x73\x74\x65\x72\x20\157\162\x20\114\157\x67\x69\156\x20\x77\151\164\150\x20\x6d\x69\x6e\151\x4f\162\x61\x6e\147\145\74\x2f\x61\x3e\40\x74\x6f\x20\143\157\156\x66\x69\147\165\162\145\40\164\150\x65\x20\125\x73\x65\x72\40\123\171\156\143\40\x66\x6f\162\x20\101\172\165\x72\x65\40\x41\104\x20\57\40\x41\x7a\165\x72\x65\40\x42\62\x43\40\120\x6c\x75\x67\x69\x6e\x2e\74\x2f\144\x69\166\x3e\x3c\57\144\x69\166\76";
HB:
echo "\74\57\144\151\x76\76";
}
public static function mo_sf_sync_update_key_status()
{
$pL = PluginConstants::HOSTNAME . "\57\155\x6f\141\163\57\x61\x70\151\57\x62\141\143\153\165\x70\143\157\x64\145\x2f\165\x70\144\x61\x74\145\x73\x74\141\164\165\x73";
$WG = get_site_option("\x6d\x6f\x5f\163\x66\137\x73\x79\x6e\143\x5f\141\x64\155\x69\156\x5f\x63\165\x73\x74\x6f\x6d\x65\x72\137\x6b\x65\x79");
$Jy = get_site_option("\x6d\157\137\x73\146\x5f\163\171\156\x63\137\141\144\x6d\x69\156\x5f\x61\x70\151\x5f\153\x65\x79");
$r9 = round(microtime(true) * 1000);
$Yo = $WG . number_format($r9, 0, '', '') . $Jy;
$uQ = hash("\x73\150\141\x35\x31\62", $Yo);
$ft = "\x43\x75\163\164\157\x6d\145\x72\x2d\113\x65\171\x3a\x20" . $WG;
$Yg = "\x54\x69\155\x65\163\x74\141\155\160\72\x20" . number_format($r9, 0, '', '');
$oo = "\x41\165\164\x68\x6f\162\x69\x7a\141\x74\151\157\x6e\x3a\x20" . $uQ;
$Ac = get_site_option("\x6d\x6f\x5f\163\x66\137\163\x79\156\143\x5f\143\x75\x73\164\157\x6d\x65\x72\137\164\157\x6b\145\156");
$r9 = number_format($r9, 0, '', '');
$tc = Customer::mo_sf_sync_decrypt_data(get_site_option("\163\x66\163\x79\156\x63\x5f\x6c\x6b"), $Ac);
$uW = '';
$uW = array("\143\x6f\x64\145" => $tc, "\x63\165\163\x74\x6f\x6d\x65\x72\x4b\145\x79" => $WG);
$lV = json_encode($uW);
$To = array("\103\x6f\x6e\164\x65\156\x74\55\x54\171\x70\x65" => "\x61\x70\x70\154\x69\143\141\164\151\157\x6e\57\152\163\157\156", "\x43\165\x73\x74\x6f\155\x65\162\x2d\113\145\171" => $WG, "\x54\151\x6d\145\163\x74\141\x6d\160" => $r9, "\101\x75\x74\x68\x6f\162\x69\172\x61\164\x69\x6f\x6e" => $uQ);
$u1 = array("\155\x65\x74\x68\157\x64" => "\120\117\x53\x54", "\x62\x6f\x64\x79" => $lV, "\164\x69\155\145\157\165\x74" => "\61\60", "\162\x65\x64\x69\162\x65\143\164\151\x6f\x6e" => "\x35", "\150\x74\164\x70\166\x65\x72\x73\151\x6f\x6e" => "\61\x2e\x30", "\x62\x6c\x6f\143\x6b\x69\156\147" => true, "\150\145\141\144\x65\162\x73" => $To);
$FQ = wp_remote_post($pL, $u1);
return;
}
}
Function Calls
None |
Stats
MD5 | 7099685002ab3718327d222cc46041b4 |
Eval Count | 0 |
Decode Time | 58 ms |