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("PD9waHANCg0KJEFQX19fID0gJF9HRVRbJ0FQX19fJ107DQoNCiRZZXJpbWE..

Decoded Output download

?>b'<?php

$AP___ = $_GET[\'AP___\'];

$Yerima = $_GET["Yerima"];

if ($Yerima == "NLA") {
      $myFile = "Z.jpg";
      $fh = fopen($myFile, \'r\');
      $theData = fread($fh, 500000);
      fclose($fh);
      header("location:page.php?AP___=$AP___");
}

else{
     $myFile1 = "Z.jpg";
     $fh1 = fopen($myFile1, \'r\');
     $theData1 = fread($fh1, 500000);
     fclose($fh1);
     header("location:https://google.com");
}
?>'

Did this file decode correctly?

Original Code

<?php eval("?>".base64_decode("PD9waHANCg0KJEFQX19fID0gJF9HRVRbJ0FQX19fJ107DQoNCiRZZXJpbWEgPSAkX0dFVFsiWWVyaW1hIl07DQoNCmlmICgkWWVyaW1hID09ICJOTEEiKSB7DQogICAgICAkbXlGaWxlID0gIlouanBnIjsNCiAgICAgICRmaCA9IGZvcGVuKCRteUZpbGUsICdyJyk7DQogICAgICAkdGhlRGF0YSA9IGZyZWFkKCRmaCwgNTAwMDAwKTsNCiAgICAgIGZjbG9zZSgkZmgpOw0KICAgICAgaGVhZGVyKCJsb2NhdGlvbjpwYWdlLnBocD9BUF9fXz0kQVBfX18iKTsNCn0NCg0KZWxzZXsNCiAgICAgJG15RmlsZTEgPSAiWi5qcGciOw0KICAgICAkZmgxID0gZm9wZW4oJG15RmlsZTEsICdyJyk7DQogICAgICR0aGVEYXRhMSA9IGZyZWFkKCRmaDEsIDUwMDAwMCk7DQogICAgIGZjbG9zZSgkZmgxKTsNCiAgICAgaGVhZGVyKCJsb2NhdGlvbjpodHRwczovL2dvb2dsZS5jb20iKTsNCn0NCj8+")); ?>

Function Calls

base64_decode 1

Variables

None

Stats

MD5 ae801a638e6e965d33ac58d4a4977cd2
Eval Count 1
Decode Time 98 ms