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 /* __________________________________________________ | Obfuscated by YAK P..

Decoded Output download

<?php 
/*   __________________________________________________ 
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.14  | 
    |              on 2024-05-03 14:03:41              | 
    |    GitHub: https://github.com/pk-fr/yakpro-po    | 
    |__________________________________________________| 
*/ 
 
echo "<script>
    require(['Magento_Customer/js/customer-data'], function ($) {
\xa        $.reload(['customer', 'compare-products', 'last-ordered-items', 'cart']);\xd
    });

    function mo_invalidate($, fullname, fistname) {\xd\xa        $('.greet.welcome').html('<span data-bind="text: new String(\'Welcome, %1!\').replace(\'%1\', customer().firstname)">Welcome, ' + fistname + '!</span>');
        $('.customer-name span').html(fullname);\xd\xa    }
</script>\xd

\xa"; 
$c9 = \Magento\Framework\App\ObjectManager::getInstance(); 
$NM = $c9->create("Magento\Customer\Model\Session"); 
if (!$NM->isLoggedIn()) { 
    goto kb; 
} 
$Chi = $NM->getCustomer()->getName(); 
$CST = $NM->getCustomer()->getFirstname(); 
if (empty($Chi)) { 
    goto JX; 
} 
echo "        <script>\xd\xa            require(function ($, script) {\xd\xa
                $(window).load(function () {
\xa\xd\xa                    var delay = 0;
                    while (delay < 5000) {
                        setTimeout(function () {\xd
                            mo_invalidate($, ""; 
print_r($Chi); 
echo "", ""; 
print_r($CST); 
echo "");\xd
                        }, delay);\xd\xa                        delay += 100;\xd
                    }\xd

\xa                });
\xa\xd\xa\xd\xa            });
        </script>
\xa\xd
        "; 
JX: 
kb: 
 ?>

Did this file decode correctly?

Original Code

<?php
/*   __________________________________________________
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.14  |
    |              on 2024-05-03 14:03:41              |
    |    GitHub: https://github.com/pk-fr/yakpro-po    |
    |__________________________________________________|
*/

echo "\74\x73\x63\162\151\160\164\x3e\15\12\40\x20\40\40\162\145\x71\x75\151\x72\145\x28\x5b\x27\115\x61\x67\x65\156\164\157\x5f\103\x75\x73\164\157\x6d\145\x72\57\x6a\x73\x2f\x63\165\163\164\157\x6d\145\162\x2d\x64\x61\164\x61\47\135\54\40\x66\x75\x6e\143\164\151\x6f\156\40\x28\44\51\x20\173\15\xa\40\x20\x20\40\40\40\x20\40\x24\x2e\x72\145\x6c\x6f\141\x64\x28\133\47\143\x75\x73\x74\x6f\x6d\145\x72\47\54\40\x27\x63\x6f\155\x70\x61\x72\x65\55\x70\162\x6f\144\165\143\x74\x73\47\x2c\40\x27\x6c\141\163\164\55\157\162\144\x65\x72\145\144\55\151\164\x65\155\x73\x27\x2c\40\47\143\x61\162\164\47\135\x29\x3b\xd\12\40\40\x20\x20\x7d\x29\73\15\12\15\12\40\40\x20\40\146\165\156\x63\164\151\157\156\40\x6d\x6f\137\x69\x6e\166\141\154\x69\144\x61\164\x65\x28\44\54\x20\146\165\x6c\154\156\x61\x6d\x65\x2c\x20\146\151\163\x74\156\141\155\x65\x29\x20\x7b\xd\xa\x20\x20\x20\40\x20\40\x20\40\x24\50\47\56\x67\162\145\x65\x74\56\x77\x65\154\x63\x6f\x6d\145\x27\51\56\x68\164\x6d\154\x28\47\74\x73\x70\x61\x6e\40\144\141\164\x61\x2d\142\x69\x6e\x64\75\42\x74\x65\x78\x74\72\x20\x6e\145\x77\40\123\164\x72\x69\x6e\147\x28\134\x27\127\145\x6c\x63\157\155\x65\54\40\x25\x31\x21\134\47\x29\x2e\162\x65\160\x6c\x61\143\x65\50\134\47\45\x31\x5c\47\x2c\40\x63\165\x73\164\x6f\155\x65\x72\50\51\56\146\x69\162\163\x74\156\141\x6d\145\51\42\76\x57\x65\154\x63\x6f\155\x65\x2c\x20\47\x20\53\40\146\151\163\164\x6e\x61\155\145\x20\x2b\40\x27\x21\x3c\x2f\x73\160\141\156\76\47\x29\73\15\12\40\40\x20\40\40\40\40\40\x24\50\x27\56\x63\165\163\164\x6f\155\x65\162\55\x6e\x61\x6d\145\40\163\160\x61\156\47\51\x2e\150\164\155\154\50\x66\x75\x6c\x6c\156\x61\155\145\x29\73\xd\xa\40\40\40\x20\175\15\12\74\57\x73\x63\x72\x69\160\164\x3e\xd\12\15\xa";
$c9 = \Magento\Framework\App\ObjectManager::getInstance();
$NM = $c9->create("\115\141\147\x65\156\x74\157\134\103\x75\163\x74\x6f\x6d\145\x72\x5c\115\x6f\x64\x65\154\134\x53\x65\x73\163\x69\157\x6e");
if (!$NM->isLoggedIn()) {
    goto kb;
}
$Chi = $NM->getCustomer()->getName();
$CST = $NM->getCustomer()->getFirstname();
if (empty($Chi)) {
    goto JX;
}
echo "\40\x20\40\x20\40\x20\40\x20\74\x73\143\162\151\x70\x74\76\xd\xa\40\x20\40\40\40\x20\x20\40\40\x20\40\40\x72\x65\161\165\x69\x72\145\50\146\165\156\143\x74\x69\157\156\x20\50\x24\54\x20\163\x63\162\151\160\164\x29\x20\x7b\xd\xa\15\12\x20\x20\40\x20\40\x20\x20\40\x20\x20\x20\40\40\x20\x20\x20\x24\50\167\x69\156\x64\157\167\51\56\x6c\157\141\144\x28\146\165\156\143\164\151\x6f\x6e\40\x28\51\x20\x7b\15\xa\xd\xa\40\x20\x20\40\40\40\x20\40\x20\40\40\40\x20\40\40\x20\x20\40\x20\x20\x76\141\162\40\144\x65\x6c\141\x79\40\x3d\x20\x30\73\15\12\40\40\40\40\40\40\x20\x20\40\x20\40\x20\x20\40\40\x20\x20\x20\x20\x20\x77\x68\151\154\145\40\x28\144\145\x6c\141\171\x20\x3c\x20\x35\x30\x30\x30\x29\40\173\15\12\x20\40\40\x20\40\40\40\40\x20\x20\x20\40\x20\x20\x20\x20\40\40\x20\x20\40\40\40\40\163\145\164\x54\151\155\145\x6f\x75\x74\x28\146\x75\x6e\x63\x74\151\157\x6e\x20\50\51\40\173\xd\12\x20\x20\x20\x20\x20\x20\x20\x20\x20\40\x20\40\x20\40\40\x20\40\x20\x20\40\x20\x20\x20\x20\40\40\40\x20\155\157\137\x69\x6e\x76\141\154\151\144\141\164\x65\x28\44\x2c\x20\42";
print_r($Chi);
echo "\x22\54\40\42";
print_r($CST);
echo "\x22\x29\x3b\xd\12\40\40\40\40\x20\x20\x20\40\40\x20\40\40\x20\40\x20\x20\x20\x20\40\x20\40\40\x20\x20\175\x2c\40\144\x65\x6c\x61\171\x29\x3b\xd\xa\x20\40\40\40\x20\x20\40\40\40\x20\x20\x20\40\40\x20\x20\x20\40\x20\40\x20\x20\x20\x20\x64\x65\154\x61\171\x20\x2b\75\40\61\x30\60\x3b\xd\12\x20\x20\40\40\40\x20\x20\40\x20\x20\x20\x20\x20\40\x20\40\40\x20\x20\40\x7d\xd\12\15\xa\40\x20\40\x20\40\40\40\x20\40\40\x20\40\40\x20\40\x20\x7d\51\73\15\xa\xd\xa\xd\xa\x20\x20\x20\x20\40\40\40\x20\40\40\x20\40\x7d\x29\x3b\15\12\x20\x20\x20\40\40\40\x20\x20\x3c\x2f\x73\143\x72\x69\160\x74\x3e\15\xa\xd\12\x20\40\x20\40\40\40\40\x20";
JX:
kb:

Function Calls

None

Variables

None

Stats

MD5 ecfc796ab8d5217444ebab5f6513f750
Eval Count 0
Decode Time 46 ms