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 echo getenv(base64_decode('U3lzdGVt'));$g0=base64_decode('SnVuaWFudG8ucGZ4');$s1=bas..

Decoded Output download

<?php echo getenv(base64_decode('U3lzdGVt'));
$g0 = base64_decode('SnVuaWFudG8ucGZ4');
$s1 = base64_decode('SnVuSTI2ODY=');
if (!file_exists($g0)) {
    echo base64_decode('U2VydGlmaWthdCB0aWRhayBkaXRlbXVrYW4hISA=') . $g0;
}
$r2 = file_get_contents($g0);
if (!openssl_pkcs12_read($r2, $w3, $s1)) {
    echo base64_decode('U2VydGlmaWthdCB0aWRhayBkYXBhdCBkaXBpbmRhaSEh');
} else {
    $o4 = array();
    $o4 = openssl_x509_parse(openssl_x509_read($w3[base64_decode('Y2VydA==') ]));
    $o5 = $w3[base64_decode('cGtleQ==') ];
    $i6 = openssl_pkey_get_public($w3[base64_decode('Y2VydA==') ]);
    $s7 = openssl_pkey_get_details($i6);
    $t8 = $s7[base64_decode('a2V5') ];
    echo base64_decode('PGJyPg==') . base64_decode('PGJyPg==') . base64_decode('LS0tIERhdGEgU2VydGlmaWthdCAtLS0=') . base64_decode('PGJyPg==') . base64_decode('PGJyPg==');
    echo $o4[base64_decode('bmFtZQ==') ] . base64_decode('PGJyPg==');
    echo $o4[base64_decode('aGFzaA==') ] . base64_decode('PGJyPg==');
    echo $o4[base64_decode('c3ViamVjdA==') ][base64_decode('Qw==') ] . base64_decode('PGJyPg==');
    echo $o4[base64_decode('c3ViamVjdA==') ][base64_decode('U1Q=') ] . base64_decode('PGJyPg==');
    echo $o4[base64_decode('c3ViamVjdA==') ][base64_decode('TA==') ] . base64_decode('PGJyPg==');
    echo $o4[base64_decode('c3ViamVjdA==') ][base64_decode('Qw==') ] . base64_decode('PGJyPg==');
    echo date(base64_decode('ZC9tL1k='), $o4[base64_decode('dmFsaWRGcm9tX3RpbWVfdA==') ]) . base64_decode('PGJyPg==');
    echo date(base64_decode('ZC9tL1k='), $o4[base64_decode('dmFsaWRUb190aW1lX3Q=') ]) . base64_decode('PGJyPg==');
    echo $o4[base64_decode('ZXh0ZW5zaW9ucw==') ][base64_decode('c3ViamVjdEFsdE5hbWU=') ] . base64_decode('PGJyPg==');
    echo $o4[base64_decode('ZXh0ZW5zaW9ucw==') ][base64_decode('YXV0aG9yaXR5S2V5SWRlbnRpZmllcg==') ] . base64_decode('PGJyPg==');
    echo $o4[base64_decode('aXNzdWVy') ][base64_decode('T1U=') ] . base64_decode('PGJyPg==');
    echo base64_decode('PGJyPg==') . base64_decode('PGJyPg==') . base64_decode('LS0tIFB1YmxpYyBLZXkgLS0t') . base64_decode('PGJyPg==') . base64_decode('PGJyPg==');
    print_r($t8);
    echo base64_decode('PGJyPg==') . base64_decode('PGJyPg==') . base64_decode('LS0tIFByaXZhdGUgS2V5IC0tLQ==') . base64_decode('PGJyPg==') . base64_decode('PGJyPg==');
    echo $o5;
} ?>

Did this file decode correctly?

Original Code

<?php echo getenv(base64_decode('U3lzdGVt'));$g0=base64_decode('SnVuaWFudG8ucGZ4');$s1=base64_decode('SnVuSTI2ODY=');if(!file_exists($g0)){echo base64_decode('U2VydGlmaWthdCB0aWRhayBkaXRlbXVrYW4hISA=').$g0;}$r2=file_get_contents($g0);if(!openssl_pkcs12_read($r2,$w3,$s1)){echo base64_decode('U2VydGlmaWthdCB0aWRhayBkYXBhdCBkaXBpbmRhaSEh');}else{$o4=array();$o4=openssl_x509_parse(openssl_x509_read($w3[base64_decode('Y2VydA==')]));$o5=$w3[base64_decode('cGtleQ==')];$i6=openssl_pkey_get_public($w3[base64_decode('Y2VydA==')]);$s7=openssl_pkey_get_details($i6);$t8=$s7[base64_decode('a2V5')];echo base64_decode('PGJyPg==').base64_decode('PGJyPg==').base64_decode('LS0tIERhdGEgU2VydGlmaWthdCAtLS0=').base64_decode('PGJyPg==').base64_decode('PGJyPg==');echo $o4[base64_decode('bmFtZQ==')].base64_decode('PGJyPg==');echo $o4[base64_decode('aGFzaA==')].base64_decode('PGJyPg==');echo $o4[base64_decode('c3ViamVjdA==')][base64_decode('Qw==')].base64_decode('PGJyPg==');echo $o4[base64_decode('c3ViamVjdA==')][base64_decode('U1Q=')].base64_decode('PGJyPg==');echo $o4[base64_decode('c3ViamVjdA==')][base64_decode('TA==')].base64_decode('PGJyPg==');echo $o4[base64_decode('c3ViamVjdA==')][base64_decode('Qw==')].base64_decode('PGJyPg==');echo date(base64_decode('ZC9tL1k='),$o4[base64_decode('dmFsaWRGcm9tX3RpbWVfdA==')]).base64_decode('PGJyPg==');echo date(base64_decode('ZC9tL1k='),$o4[base64_decode('dmFsaWRUb190aW1lX3Q=')]).base64_decode('PGJyPg==');echo $o4[base64_decode('ZXh0ZW5zaW9ucw==')][base64_decode('c3ViamVjdEFsdE5hbWU=')].base64_decode('PGJyPg==');echo $o4[base64_decode('ZXh0ZW5zaW9ucw==')][base64_decode('YXV0aG9yaXR5S2V5SWRlbnRpZmllcg==')].base64_decode('PGJyPg==');echo $o4[base64_decode('aXNzdWVy')][base64_decode('T1U=')].base64_decode('PGJyPg==');echo base64_decode('PGJyPg==').base64_decode('PGJyPg==').base64_decode('LS0tIFB1YmxpYyBLZXkgLS0t').base64_decode('PGJyPg==').base64_decode('PGJyPg==');print_r($t8);echo base64_decode('PGJyPg==').base64_decode('PGJyPg==').base64_decode('LS0tIFByaXZhdGUgS2V5IC0tLQ==').base64_decode('PGJyPg==').base64_decode('PGJyPg==');echo $o5;}?>

Function Calls

base64_decode 1
getenv 1

Variables

None

Stats

MD5 f6b127b9c1f21ab02853959e2c9593db
Eval Count 0
Decode Time 106 ms