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\API; use MoSfSyncSalesforce\Helper\PluginConsta..

Decoded Output download

<?php 
 
 
namespace MoSfSyncSalesforce\API; 
 
use MoSfSyncSalesforce\Helper\PluginConstants; 
use MoSfSyncSalesforce\Customer; 
use MoSfSyncSalesforce\Services\Utils; 
class CustomerAPI 
{ 
    public $email; 
    public $phone; 
    private $defaultCustomerKey = "16555"; 
    private $defaultApiKey = "fFd2XcvTGDemZvbw1bcUesNJWEqKbbUq"; 
    function mo_sf_sync_create_customer() 
    { 
        $pL = pluginConstants::HOSTNAME . "/moas/rest/customer/add"; 
        $current_user = wp_get_current_user(); 
        $this->email = get_site_option("mo_sf_sync_admin_email"); 
        $Ei = get_site_option("mo_sf_sync_admin_password"); 
        $uW = array("areaOfInterest" => "Object Data Sync For Salesforce Plugin", "email" => $this->email, "password" => $Ei); 
        $lV = json_encode($uW); 
        $To = array("Content-Type" => "application/json", "charset" => "UTF-8", "Authorization" => "Basic"); 
        $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; 
    } 
    function mo_sf_sync_get_customer_key() 
    { 
        $pL = pluginConstants::HOSTNAME . "/moas/rest/customer/key"; 
        $mH = get_site_option("mo_sf_sync_admin_email"); 
        $Ei = get_site_option("mo_sf_sync_admin_password"); 
        $uW = array("email" => $mH, "password" => $Ei); 
        $lV = json_encode($uW); 
        $To = array("Content-Type" => "application/json", "charset" => "UTF-8", "Authorization" => "Basic"); 
        $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; 
    } 
    function mo_sf_sync_check_customer() 
    { 
        $pL = pluginConstants::HOSTNAME . "/moas/rest/customer/check-if-exists"; 
        $mH = get_site_option("mo_sf_sync_admin_email"); 
        $uW = array("email" => $mH); 
        $lV = json_encode($uW); 
        $To = array("Content-Type" => "application/json", "charset" => "UTF-8", "Authorization" => "Basic"); 
        $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; 
    } 
    function mo_sf_sync_check_customer_ln() 
    { 
        $pL = pluginConstants::HOSTNAME . "/moas/rest/customer/license"; 
        $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); 
        $r9 = number_format($r9, 0, '', ''); 
        $uW = ''; 
        $uW = array("customerId" => $WG, "applicationName" => "wp_object_sync_for_salesforce_plan"); 
        $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; 
    } 
    function mo_sf_sync_vl($tc, $GZ) 
    { 
        $pL = ''; 
        if ($GZ) { 
            goto Cb; 
        } 
        $pL = pluginConstants::HOSTNAME . "/moas/api/backupcode/verify"; 
        goto Pm; 
        Cb: 
        $pL = pluginConstants::HOSTNAME . "/moas/api/backupcode/check"; 
        Pm: 
        $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); 
        $r9 = number_format($r9, 0, '', ''); 
        $uW = ''; 
        $uW = array("code" => $tc, "customerKey" => $WG, "additionalFields" => array("field1" => home_url())); 
        $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; 
    } 
    function mo_sf_sync_forgot_password($mH) 
    { 
        $pL = pluginConstants::HOSTNAME . "/moas/rest/customer/password-reset"; 
        $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); 
        $uW = ''; 
        $uW = array("email" => $mH); 
        $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; 
    } 
    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; 
    } 
} ?>

Did this file decode correctly?

Original Code

<?php


namespace MoSfSyncSalesforce\API;

use MoSfSyncSalesforce\Helper\PluginConstants;
use MoSfSyncSalesforce\Customer;
use MoSfSyncSalesforce\Services\Utils;
class CustomerAPI
{
    public $email;
    public $phone;
    private $defaultCustomerKey = "\x31\x36\x35\65\65";
    private $defaultApiKey = "\146\x46\144\62\130\x63\x76\x54\x47\x44\x65\155\132\166\142\167\61\x62\x63\x55\145\163\116\112\x57\x45\161\113\x62\x62\x55\x71";
    function mo_sf_sync_create_customer()
    {
        $pL = pluginConstants::HOSTNAME . "\x2f\x6d\157\141\x73\x2f\x72\x65\x73\164\57\143\165\163\164\157\155\x65\x72\57\141\x64\x64";
        $current_user = wp_get_current_user();
        $this->email = get_site_option("\155\157\x5f\x73\146\x5f\163\171\156\x63\137\x61\x64\x6d\x69\x6e\x5f\145\x6d\x61\151\x6c");
        $Ei = get_site_option("\x6d\x6f\137\163\146\137\x73\x79\x6e\x63\x5f\x61\144\x6d\x69\x6e\137\x70\141\163\163\x77\x6f\162\x64");
        $uW = array("\141\x72\145\x61\117\146\111\156\164\x65\x72\145\163\164" => "\x4f\142\x6a\145\143\x74\40\x44\x61\164\x61\x20\x53\x79\156\143\x20\106\x6f\162\x20\x53\141\154\145\163\146\157\x72\143\x65\x20\120\x6c\165\x67\151\156", "\x65\155\x61\151\154" => $this->email, "\160\141\163\163\167\157\162\x64" => $Ei);
        $lV = json_encode($uW);
        $To = array("\103\x6f\x6e\x74\145\x6e\x74\55\x54\x79\160\145" => "\141\160\160\x6c\x69\143\141\x74\x69\x6f\x6e\57\x6a\163\x6f\x6e", "\143\150\x61\x72\163\x65\x74" => "\125\x54\106\x2d\x38", "\101\x75\164\x68\157\162\151\172\141\164\x69\x6f\156" => "\102\x61\x73\151\143");
        $u1 = array("\x6d\x65\164\x68\157\x64" => "\120\x4f\x53\124", "\142\157\x64\x79" => $lV, "\x74\x69\155\145\x6f\x75\x74" => "\x35", "\162\145\144\x69\162\145\x63\164\151\157\156" => "\x35", "\150\x74\x74\x70\x76\145\162\163\151\157\156" => "\x31\x2e\x30", "\142\x6c\x6f\143\x6b\151\x6e\x67" => true, "\x68\x65\141\x64\145\x72\x73" => $To);
        $FQ = Utils::mo_sf_sync_wp_remote_call($pL, $u1);
        return $FQ;
    }
    function mo_sf_sync_get_customer_key()
    {
        $pL = pluginConstants::HOSTNAME . "\x2f\x6d\157\x61\x73\57\162\x65\x73\164\x2f\143\165\163\164\x6f\155\145\162\57\x6b\x65\171";
        $mH = get_site_option("\155\x6f\x5f\163\146\137\163\171\x6e\143\x5f\x61\144\x6d\x69\156\x5f\145\155\x61\151\154");
        $Ei = get_site_option("\x6d\x6f\x5f\163\x66\137\163\x79\156\143\x5f\141\x64\x6d\151\156\137\x70\141\163\163\x77\157\x72\144");
        $uW = array("\145\x6d\141\x69\154" => $mH, "\x70\141\x73\x73\167\157\162\144" => $Ei);
        $lV = json_encode($uW);
        $To = array("\103\x6f\156\164\x65\156\x74\55\x54\171\160\145" => "\x61\160\x70\154\151\143\141\x74\151\x6f\x6e\57\x6a\163\x6f\x6e", "\143\x68\141\x72\x73\x65\164" => "\x55\x54\106\x2d\x38", "\101\165\164\150\157\162\151\x7a\141\x74\x69\157\156" => "\102\141\x73\151\143");
        $u1 = array("\x6d\x65\x74\x68\157\144" => "\120\x4f\123\124", "\x62\157\x64\171" => $lV, "\164\x69\x6d\145\x6f\165\164" => "\x35", "\162\x65\x64\x69\x72\145\143\x74\x69\x6f\156" => "\65", "\150\x74\164\160\166\145\162\163\x69\x6f\x6e" => "\61\56\60", "\x62\x6c\157\x63\153\151\156\147" => true, "\150\x65\141\144\x65\162\163" => $To);
        $FQ = Utils::mo_sf_sync_wp_remote_call($pL, $u1);
        return $FQ;
    }
    function mo_sf_sync_check_customer()
    {
        $pL = pluginConstants::HOSTNAME . "\x2f\x6d\x6f\141\x73\x2f\162\x65\x73\x74\x2f\x63\165\x73\x74\x6f\x6d\x65\162\x2f\x63\150\145\143\x6b\55\151\146\55\145\x78\x69\x73\x74\x73";
        $mH = get_site_option("\155\157\x5f\x73\x66\137\x73\x79\x6e\143\x5f\x61\x64\x6d\151\156\137\145\x6d\x61\151\154");
        $uW = array("\x65\x6d\x61\151\154" => $mH);
        $lV = json_encode($uW);
        $To = array("\103\157\x6e\164\145\156\x74\55\124\171\160\x65" => "\141\160\160\x6c\x69\143\141\164\151\x6f\156\x2f\x6a\163\157\156", "\x63\x68\x61\x72\x73\145\164" => "\125\x54\x46\x2d\x38", "\x41\x75\164\x68\x6f\x72\151\172\x61\164\x69\157\156" => "\102\141\x73\x69\143");
        $u1 = array("\x6d\x65\164\150\x6f\144" => "\120\117\x53\x54", "\x62\x6f\144\x79" => $lV, "\164\151\155\x65\157\165\x74" => "\65", "\162\145\x64\x69\x72\145\x63\x74\151\x6f\156" => "\65", "\x68\164\164\x70\x76\145\162\163\151\x6f\x6e" => "\61\x2e\60", "\x62\x6c\157\143\153\151\x6e\147" => true, "\x68\145\x61\144\x65\x72\x73" => $To);
        $FQ = Utils::mo_sf_sync_wp_remote_call($pL, $u1);
        return $FQ;
    }
    function mo_sf_sync_check_customer_ln()
    {
        $pL = pluginConstants::HOSTNAME . "\x2f\155\x6f\141\x73\x2f\x72\x65\x73\164\57\143\165\163\x74\x6f\x6d\x65\162\x2f\x6c\151\143\145\156\163\145";
        $WG = get_site_option("\155\x6f\x5f\163\146\137\x73\x79\156\x63\137\x61\x64\155\x69\x6e\137\143\165\163\x74\x6f\x6d\x65\162\137\153\145\x79");
        $Jy = get_site_option("\x6d\x6f\137\163\x66\137\x73\171\x6e\x63\137\141\x64\155\151\x6e\x5f\141\160\151\137\153\145\171");
        $r9 = round(microtime(true) * 1000);
        $Yo = $WG . number_format($r9, 0, '', '') . $Jy;
        $uQ = hash("\x73\150\141\65\61\62", $Yo);
        $r9 = number_format($r9, 0, '', '');
        $uW = '';
        $uW = array("\143\x75\x73\164\x6f\155\x65\x72\x49\x64" => $WG, "\x61\160\160\154\151\x63\141\x74\151\x6f\x6e\x4e\141\x6d\x65" => "\167\160\x5f\157\x62\x6a\x65\143\164\x5f\x73\x79\x6e\143\x5f\x66\157\x72\x5f\163\141\x6c\x65\x73\146\x6f\x72\143\145\x5f\160\154\141\x6e");
        $lV = json_encode($uW);
        $To = array("\103\x6f\156\164\x65\x6e\164\55\124\x79\160\x65" => "\141\x70\160\154\151\x63\x61\x74\151\x6f\x6e\x2f\152\163\x6f\x6e", "\103\165\163\164\x6f\x6d\x65\162\x2d\113\145\x79" => $WG, "\x54\x69\x6d\145\163\164\x61\x6d\x70" => $r9, "\101\165\x74\150\x6f\x72\x69\x7a\x61\x74\x69\157\x6e" => $uQ);
        $u1 = array("\155\x65\x74\x68\x6f\x64" => "\120\117\123\124", "\142\157\x64\171" => $lV, "\164\x69\x6d\145\x6f\x75\164" => "\x35", "\x72\145\x64\151\x72\x65\143\164\x69\x6f\156" => "\x35", "\x68\x74\x74\x70\x76\145\x72\163\x69\157\x6e" => "\x31\x2e\x30", "\142\154\157\143\x6b\151\x6e\147" => true, "\150\145\x61\x64\x65\162\x73" => $To);
        $FQ = Utils::mo_sf_sync_wp_remote_call($pL, $u1);
        return $FQ;
    }
    function mo_sf_sync_vl($tc, $GZ)
    {
        $pL = '';
        if ($GZ) {
            goto Cb;
        }
        $pL = pluginConstants::HOSTNAME . "\57\155\157\x61\x73\57\141\x70\151\x2f\142\141\143\x6b\x75\x70\x63\157\x64\x65\57\x76\x65\162\x69\x66\171";
        goto Pm;
        Cb:
        $pL = pluginConstants::HOSTNAME . "\x2f\x6d\157\x61\x73\x2f\x61\160\x69\x2f\142\x61\x63\x6b\165\x70\x63\x6f\144\145\x2f\143\x68\145\x63\x6b";
        Pm:
        $WG = get_site_option("\155\157\x5f\163\146\137\163\x79\156\143\x5f\141\144\x6d\151\156\x5f\x63\165\163\x74\157\x6d\145\162\x5f\153\x65\171");
        $Jy = get_site_option("\155\x6f\137\x73\146\x5f\x73\x79\x6e\x63\137\141\144\155\151\x6e\137\141\160\x69\137\x6b\x65\171");
        $r9 = round(microtime(true) * 1000);
        $Yo = $WG . number_format($r9, 0, '', '') . $Jy;
        $uQ = hash("\163\x68\x61\x35\61\x32", $Yo);
        $r9 = number_format($r9, 0, '', '');
        $uW = '';
        $uW = array("\x63\157\x64\x65" => $tc, "\x63\165\x73\x74\157\x6d\x65\x72\x4b\145\171" => $WG, "\141\x64\144\x69\x74\151\157\x6e\141\x6c\x46\x69\145\154\144\x73" => array("\x66\x69\x65\154\x64\x31" => home_url()));
        $lV = json_encode($uW);
        $To = array("\x43\157\156\x74\x65\x6e\164\x2d\x54\171\x70\145" => "\x61\160\160\x6c\x69\143\141\164\x69\157\156\57\x6a\x73\x6f\x6e", "\103\165\x73\x74\157\x6d\145\162\55\x4b\x65\171" => $WG, "\x54\x69\155\145\163\164\x61\155\160" => $r9, "\101\x75\164\x68\x6f\162\x69\x7a\x61\164\151\157\156" => $uQ);
        $u1 = array("\155\x65\x74\150\157\144" => "\x50\117\123\124", "\142\x6f\x64\x79" => $lV, "\164\151\155\x65\157\165\164" => "\65", "\162\x65\x64\151\x72\x65\143\164\x69\x6f\x6e" => "\65", "\x68\164\x74\160\166\x65\x72\x73\151\x6f\x6e" => "\61\56\x30", "\x62\154\157\143\153\151\156\147" => true, "\x68\x65\x61\144\145\162\163" => $To);
        $FQ = Utils::mo_sf_sync_wp_remote_call($pL, $u1);
        return $FQ;
    }
    function mo_sf_sync_forgot_password($mH)
    {
        $pL = pluginConstants::HOSTNAME . "\57\x6d\157\x61\163\57\162\x65\163\x74\x2f\143\x75\163\x74\x6f\x6d\x65\x72\x2f\160\141\163\163\167\x6f\x72\144\55\162\145\x73\145\164";
        $WG = get_site_option("\x6d\157\137\163\146\x5f\163\x79\x6e\x63\137\141\144\x6d\151\x6e\x5f\x63\x75\x73\x74\157\x6d\x65\x72\x5f\x6b\x65\171");
        $Jy = get_site_option("\x6d\157\x5f\x73\x66\137\163\171\x6e\x63\137\x61\144\155\x69\x6e\x5f\141\x70\x69\137\153\x65\171");
        $r9 = round(microtime(true) * 1000);
        $Yo = $WG . number_format($r9, 0, '', '') . $Jy;
        $uQ = hash("\163\150\141\65\x31\62", $Yo);
        $uW = '';
        $uW = array("\145\x6d\x61\151\x6c" => $mH);
        $lV = json_encode($uW);
        $To = array("\x43\x6f\156\x74\145\x6e\164\55\x54\x79\160\x65" => "\x61\x70\x70\154\x69\x63\x61\x74\x69\157\156\57\x6a\x73\x6f\x6e", "\103\x75\x73\164\x6f\155\145\162\55\x4b\x65\171" => $WG, "\x54\151\155\x65\x73\164\141\x6d\160" => $r9, "\101\x75\x74\150\x6f\162\x69\172\x61\x74\151\157\156" => $uQ);
        $u1 = array("\x6d\145\164\x68\x6f\x64" => "\120\117\123\x54", "\x62\x6f\144\171" => $lV, "\164\x69\155\145\x6f\x75\x74" => "\65", "\162\x65\144\151\x72\145\143\x74\x69\157\156" => "\65", "\x68\x74\164\160\166\145\162\163\151\x6f\x6e" => "\x31\56\x30", "\x62\x6c\x6f\x63\153\x69\x6e\147" => true, "\150\x65\141\144\145\x72\x73" => $To);
        $FQ = Utils::mo_sf_sync_wp_remote_call($pL, $u1);
        return $FQ;
    }
    function mo_sf_sync_get_timestamp()
    {
        $pL = pluginConstants::HOSTNAME . "\57\155\157\141\163\57\162\145\163\x74\57\155\x6f\142\x69\x6c\x65\x2f\147\145\x74\x2d\x74\151\155\145\163\164\x61\155\160";
        $FQ = Utils::mo_sf_sync_wp_remote_call($pL, array());
        return $FQ;
    }
}

Function Calls

None

Variables

None

Stats

MD5 95164ff0e0287abd4a18a84d09e34ec1
Eval Count 0
Decode Time 58 ms