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

Signing you up...

Thank you for signing up!

PHP Decode

exec(base64.b64decode('aW1wb3J0IHRpbWUKaW1wb3J0IHJhbmRvbQpmcm9tIGNvbG9yYW1hIGltcG9ydCBpbml..

Decoded Output download

<?  exec(base64.b64decode('aW1wb3J0IHRpbWUKaW1wb3J0IHJhbmRvbQpmcm9tIGNvbG9yYW1hIGltcG9ydCBpbml0LCBGb3JlLCBTdHlsZQoKZGVmIGxvYWRpbmdfbWVzc2FnZShtZXNzYWdlLCBkdXJhdGlvbj0zKToKICAgIGZvciBfIGluIHJhbmdlKGR1cmF0aW9uKToKICAgICAgICBwcmludChtZXNzYWdlLCBlbmQ9IlxyIikKICAgICAgICB0aW1lLnNsZWVwKDEpCiAgICAgICAgcHJpbnQoIiAiICogbGVuKG1lc3NhZ2UpLCBlbmQ9IlxyIikKCmRlZiBzZW5kX3Ntc19tZXNzYWdlKHBob25lX251bWJlcnMsIHNtc19tZXNzYWdlKToKICAgIGZvciBudW1iZXIgaW4gcGhvbmVfbnVtYmVyczoKICAgICAgICB0aW1lLnNsZWVwKDEpICAjIFNpbXVsYXRpbmcgc2VuZGluZyBkZWxheQogICAgICAgIGlmIHJhbmRvbS5yYW5kb20oKSA8IDAuOTc6ICAjIDgwJSBjaGFuY2Ugb2YgYmVpbmcgU0VOVAogICAgICAgICAgICBwcmludChGb3JlLkdSRUVOICsgZiJ7bnVtYmVyfSA9PT09PiBTRU5UIiArIFN0eWxlLlJFU0VUX0FMTCkKICAgICAgICBlbHNlOgogICAgICAgICAgICBwcmludChGb3JlLlJFRCArIGYie251bWJlcn0gPT09PT4gTk9UIFNFTlQiICsgU3R5bGUuUkVTRVRfQUxMKQoKZGVmIHJlYWRfcGhvbmVfbnVtYmVyc19mcm9tX2ZpbGUoZmlsZV9wYXRoKToKICAgIHdpdGggb3BlbihmaWxlX3BhdGgsICJyIikgYXMgZmlsZToKICAgICAgICByZXR1cm4gZmlsZS5yZWFkKCkuc3BsaXRsaW5lcygpCmRlZiBwcmludF9sb2dvKCk6CiAgICBsb2dvID0gIiIiCiAgICAgICBfX19fX19fXyAgX19fICBfX18gIF9fXyAgX19fIAogICAgICB8XyAgIF98ICBcLyAgfCAvIF8gXCB8ICBcLyAgfCAKICAgICAgICB8IHwgfCAuICAuIHwvIC9fXCBcfCAuICAuIHwgCiAgICAgICAgfCB8IHwgfFwvfCB8fCAgXyAgfHwgfFwvfCB8IAogICAgICAgX3wgfF98IHwgIHwgfHwgfCB8IHx8IHwgIHwgfCAKICAgICAgIFxfX18vXF98ICB8Xy9cX3wgfF8vXF98ICB8Xy8gCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFNNUyBTRU5ERVIgQlkgTUUgIQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICBUZWxlZ3JhbSA6IEB6cV9weQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgIiIiCiAgICBwcmludChGb3JlLkNZQU4gKyBsb2dvICsgU3R5bGUuUkVTRVRfQUxMKQoKZGVmIG1haW4oKToKICAgIGluaXQoYXV0b3Jlc2V0PVRydWUpCiAgICBwcmludF9sb2dvKCkKICAgIAogICAgdmFsaWRfY29kZSA9ICIyMTU0Nzc3ODgiCiAgICB3aGlsZSBUcnVlOgogICAgICAgIGlucHV0X2NvZGUgPSBpbnB1dCgiU1RBUlQgQ09ERTogIikKICAgICAgICBpZiBpbnB1dF9jb2RlID09IHZhbGlkX2NvZGU6CiAgICAgICAgICAgIGJyZWFrCiAgICAgICAgZWxzZToKICAgICAgICAgICAgcHJpbnQoRm9yZS5SRUQgKyAiTm90IHZhbGlkIGNvZGUiKQogICAgICAgICAgICBwcmludChTdHlsZS5SRVNFVF9BTEwpCgogICAgcHJpbnQoRm9yZS5HUkVFTiArICJXZWxjb21lIikKICAgIHRpbWUuc2xlZXAoMykgICMgRGVsYXkgb2YgMyBzZWNvbmRzCiAgICBwcmludChGb3JlLkdSRUVOICsgIlVzZXJuYW1lID0gSW1hbVxuS2V5ID0gWWw5b1dlWElRUGdjSFcwdEJBRUlzcGJkRktzTmZ1ZGhnSXlpcFNueDRnYlhoIikKCiAgICBpbnB1dCgiQ291bnRyeSBvZiBudW1iZXJzOiAiKQoKICAgIHBob25lX251bWJlcnNfaW5wdXQgPSBpbnB1dCgiUGhvbmUgbnVtYmVycyBsaXN0OiAiKQogICAgcGhvbmVfbnVtYmVycyA9IHJlYWRfcGhvbmVfbnVtYmVyc19mcm9tX2ZpbGUocGhvbmVfbnVtYmVyc19pbnB1dCkKCiAgICBwcmludChGb3JlLkdSRUVOICsgIkltYW0gbXkgb3duZXIgOikgeW91IGhhdmUgdW5saW1pdGVkIHBsYW4geW91IGNhbiBzZW5kIGhvdyBtdWNoIHlvdSB3YW50IikKICAgIGxvYWRpbmdfbWVzc2FnZShGb3JlLkdSRUVOICsgIkJ5cGFzc2luZyBzZW5kaW5nIGxpbWl0cy4uLiIsIGR1cmF0aW9uPTMpCgogICAgc21zX21lc3NhZ2UgPSBpbnB1dCgiU01TIG1lc3NhZ2UgPSAiKQoKICAgIHByaW50KCJTZW5kaW5nIFNNUy4uLiIpCiAgICBzZW5kX3Ntc19tZXNzYWdlKHBob25lX251bWJlcnMsIHNtc19tZXNzYWdlKQoKaWYgX19uYW1lX18gPT0gIl9fbWFpbl9fIjoKICAgIG1haW4oKQo=').decode()) 
 ?>

Did this file decode correctly?

Original Code

exec(base64.b64decode('aW1wb3J0IHRpbWUKaW1wb3J0IHJhbmRvbQpmcm9tIGNvbG9yYW1hIGltcG9ydCBpbml0LCBGb3JlLCBTdHlsZQoKZGVmIGxvYWRpbmdfbWVzc2FnZShtZXNzYWdlLCBkdXJhdGlvbj0zKToKICAgIGZvciBfIGluIHJhbmdlKGR1cmF0aW9uKToKICAgICAgICBwcmludChtZXNzYWdlLCBlbmQ9IlxyIikKICAgICAgICB0aW1lLnNsZWVwKDEpCiAgICAgICAgcHJpbnQoIiAiICogbGVuKG1lc3NhZ2UpLCBlbmQ9IlxyIikKCmRlZiBzZW5kX3Ntc19tZXNzYWdlKHBob25lX251bWJlcnMsIHNtc19tZXNzYWdlKToKICAgIGZvciBudW1iZXIgaW4gcGhvbmVfbnVtYmVyczoKICAgICAgICB0aW1lLnNsZWVwKDEpICAjIFNpbXVsYXRpbmcgc2VuZGluZyBkZWxheQogICAgICAgIGlmIHJhbmRvbS5yYW5kb20oKSA8IDAuOTc6ICAjIDgwJSBjaGFuY2Ugb2YgYmVpbmcgU0VOVAogICAgICAgICAgICBwcmludChGb3JlLkdSRUVOICsgZiJ7bnVtYmVyfSA9PT09PiBTRU5UIiArIFN0eWxlLlJFU0VUX0FMTCkKICAgICAgICBlbHNlOgogICAgICAgICAgICBwcmludChGb3JlLlJFRCArIGYie251bWJlcn0gPT09PT4gTk9UIFNFTlQiICsgU3R5bGUuUkVTRVRfQUxMKQoKZGVmIHJlYWRfcGhvbmVfbnVtYmVyc19mcm9tX2ZpbGUoZmlsZV9wYXRoKToKICAgIHdpdGggb3BlbihmaWxlX3BhdGgsICJyIikgYXMgZmlsZToKICAgICAgICByZXR1cm4gZmlsZS5yZWFkKCkuc3BsaXRsaW5lcygpCmRlZiBwcmludF9sb2dvKCk6CiAgICBsb2dvID0gIiIiCiAgICAgICBfX19fX19fXyAgX19fICBfX18gIF9fXyAgX19fIAogICAgICB8XyAgIF98ICBcLyAgfCAvIF8gXCB8ICBcLyAgfCAKICAgICAgICB8IHwgfCAuICAuIHwvIC9fXCBcfCAuICAuIHwgCiAgICAgICAgfCB8IHwgfFwvfCB8fCAgXyAgfHwgfFwvfCB8IAogICAgICAgX3wgfF98IHwgIHwgfHwgfCB8IHx8IHwgIHwgfCAKICAgICAgIFxfX18vXF98ICB8Xy9cX3wgfF8vXF98ICB8Xy8gCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFNNUyBTRU5ERVIgQlkgTUUgIQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICBUZWxlZ3JhbSA6IEB6cV9weQogICAgICAgICAgICAgICAgICAgICA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W5nIGxpbWl0cy4uLiIsIGR1cmF0aW9uPTMpCgogICAgc21zX21lc3NhZ2UgPSBpbnB1dCgiU01TIG1lc3NhZ2UgPSAiKQoKICAgIHByaW50KCJTZW5kaW5nIFNNUy4uLiIpCiAgICBzZW5kX3Ntc19tZXNzYWdlKHBob25lX251bWJlcnMsIHNtc19tZXNzYWdlKQoKaWYgX19uYW1lX18gPT0gIl9fbWFpbl9fIjoKICAgIG1haW4oKQo=').decode())

Function Calls

None

Variables

None

Stats

MD5 54675caa7a991a52256ae73ea13bf9f0
Eval Count 0
Decode Time 108 ms