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-27 05:40:18              | 
    |    GitHub: https://github.com/pk-fr/yakpro-po    | 
    |__________________________________________________| 
*/ 
 
echo "<script>\xd
    require(['Magento_Customer/js/customer-data'], function($) { $.reload(['customer','compare-products','last-ordered-items','cart','wishlist','payments','product_data_storage','review','recently_viewed_product','recently_compared_product','captcha','instant-purchase','persistent']);});
\xd\xa    function mo_invalidate($, fullname, fistname) {\xd
        $('.greet.welcome').html('<span data-bind="text: new String(\'Welcome, %1!\').replace(\'%1\', customer().firstname)">Welcome, ' + fistname + '!</span>');\xd
        $('.customer-name span').html(fullname);\xd
    }\xd\xa</script>\xd
\xd\xa"; 
$rS = \Magento\Framework\App\ObjectManager::getInstance(); 
$sy = $rS->create("Magento\Customer\Model\Session"); 
if (!$sy->isLoggedIn()) { 
    goto tYw; 
} 
$X7 = $sy->getCustomer()->getName(); 
$sm = $sy->getCustomer()->getFirstname(); 
if (empty($X7)) { 
    goto z4x; 
} 
echo "        <script>
            require(function ($, script) {\xd\xa
                $(window).load(function () {\xd

\xa                    var delay = 0;\xd
                    while (delay < 5000) {\xd\xa                        setTimeout(function () {
                            mo_invalidate($, ""; 
print_r($X7); 
echo "", ""; 
print_r($sm); 
echo "");\xd\xa                        }, delay);\xd
                        delay += 100;\xd
                    }
                  \xd\xa                });
\xa\xd\xa                
\xa            });\xd\xa        </script>\xd\xa\xd\xa        "; 
z4x: 
tYw: 
 ?>

Did this file decode correctly?

Original Code

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

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

Function Calls

None

Variables

None

Stats

MD5 228c616db6a6680a78c11b681e33ea2d
Eval Count 0
Decode Time 40 ms