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 echo "Hello World"; ?> <?php $_F=__FILE__;$_X='Pz48P3BocA0KNWNoMiAiSDVsb..
Decoded Output download
<?php
echo "Hello World";
?>
<?php $_F=__FILE__;$_X='Pz48P3BocA0KNWNoMiAiSDVsbDIgVzJybGQiOw0KPz4=';
eval(base64_decode('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLC
cxMjM0NTZhb3VpZScsJ2FvdWllMTIzNDU2Jyk7JF9SPWVyZWdfcmVwbGFjZSgnX19GS
UxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));?>
<?php
$po = '<' . '?php';
$pc = '?' . '>';
$input = 'file.php';
$code = file_get_contents($input);
$encoded = base64_encode($code);
$encoded_script = <<<EOL
$po
eval(base64_decode($encoded));
$pc
EOL;
file_put_contents('encoded.php', $encoded_script); ?>
Did this file decode correctly?
Original Code
<?php
echo "Hello World";
?>
<?php $_F=__FILE__;$_X='Pz48P3BocA0KNWNoMiAiSDVsbDIgVzJybGQiOw0KPz4=';
eval(base64_decode('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLC
cxMjM0NTZhb3VpZScsJ2FvdWllMTIzNDU2Jyk7JF9SPWVyZWdfcmVwbGFjZSgnX19GS
UxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));?>
<?php
$po = '<' . '?php';
$pc = '?' . '>';
$input = 'file.php';
$code = file_get_contents($input);
$encoded = base64_encode($code);
$encoded_script = <<<EOL
$po
eval(base64_decode($encoded));
$pc
EOL;
file_put_contents('encoded.php', $encoded_script);
Function Calls
None |
Stats
MD5 | 9916a52a06fbf5ef6d5abc92f0ed3075 |
Eval Count | 0 |
Decode Time | 76 ms |